/* --- CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #fcfcfd;
    color: #333;
}

a {
    text-decoration: none;
}

/* --- VARIÁVEIS DE CORES --- */
:root {
    --purple-dark: #1a1459;
    --purple-light: #3c357a;
    --gray-text: #666;
    --border-color: #eaeaea;
    --bg-card: #ffffff;

    /* Cores das Badges */
    --badge-green-bg: #e8f5e9;
    --badge-green-text: #2e7d32;
    --badge-orange-bg: #fff3e0;
    --badge-orange-text: #ef6c00;
    --badge-purple-bg: #f3e5f5;
    --badge-purple-text: #6a1b9a;
    --badge-red-bg: #ffebee;
    --badge-red-text: #c62828;
    --pdf-red: #d32f2f;
}

/* --- NAVBAR --- */
.navbar {
    background-color: var(--purple-light);
    ;
}

.nav-item a {
    color: #dfdeef;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-item a.active {
    color: white;
    border-bottom: 2px solid #ffaa00;
}

.nav-item .btn-top-lock {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 15px;
    border-radius: 4px;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-item .btn-top-lock i {
    margin-right: 5px;
    color: #ffaa00;
}



.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 20, 89, 0.9) 0%, rgba(26, 20, 89, 0.2) 100%);
}

.header-content {
    position: relative;
    color: white;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

/* --- CONTAINER PRINCIPAL --- */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px 20px;
}

/* --- BREADCRUMB --- */
.breadcrumb {
    font-size: 13px;
    color: var(--purple-light);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.breadcrumb a {
    color: var(--purple-light);
    transition: color 0.3s;
}

.breadcrumb span {
    color: var(--purple-dark);
    font-weight: 700;
}

/* --- CABEÇALHO DO POST --- */
.post-header {
    margin-bottom: 35px;
}

.post-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-green {
    background-color: var(--badge-green-bg);
    color: var(--badge-green-text);
}

.badge-purple {
    background-color: var(--badge-purple-bg);
    color: var(--badge-purple-text);
}

.badge-red {
    background-color: var(--badge-red-bg);
    color: var(--badge-red-text);
}

.post-header h1 {
    font-size: 32px;
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--gray-text);
    font-size: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--purple-dark);
    font-size: 16px;
}

/* --- CORPO DA NOTÍCIA --- */
.post-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

.post-body p {
    margin-bottom: 20px;
}

/* --- SEÇÕES EXTRAS (GALERIA E DOCS) --- */
.post-section {
    margin-bottom: 50px;
}

.post-section h3 {
    font-size: 18px;
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- GALERIA DE FOTOS --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* --- LISTA DE DOCUMENTOS --- */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-item {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 25px;
    transition: all 0.3s;
}

.doc-item:hover {
    border-color: var(--purple-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.doc-icon {
    background-color: var(--pdf-red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 20px;
}

.doc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.doc-size {
    font-size: 12px;
    color: var(--gray-text);
}

.doc-action {
    color: var(--gray-text);
    font-size: 18px;
    padding: 10px;
    transition: color 0.3s;
}

.doc-item:hover .doc-action {
    color: var(--purple-light);
}

/* --- BOTÕES INFERIORES DE NAVEGAÇÃO --- */
.post-actions-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.btn-outline-large {
    border: 1px solid var(--border-color);
    color: var(--purple-light);
    background-color: var(--bg-card);
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-outline-large:hover {
    background-color: var(--purple-light);
    color: white;
    text-decoration: none;
}

/* --- FOOTER CONDTECH --- */
.footer-banner-container {
    padding: 0 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-banner {
    background: linear-gradient(135deg, #241d4f 0%, #3c357a 100%);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.2);
}

.footer-text .dev-by {
    font-size: 11px;
    color: #aaa5df;
    display: block;
    margin-bottom: 2px;
}

.footer-text h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-text .orange-text {
    color: #f39c12;
}

.footer-text p {
    font-size: 12px;
    color: #ccc8f1;
    margin-top: 2px;
}

.btn-footer {
    border: 1px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s, color 0.3s;
}

.btn-footer:hover {
    background-color: var(--purple-dark);
    color: #ffffff;
    text-decoration: none;
}

/* O fundo do Modal (escuro) */
.modal {
    display: none;
    /* Oculto por padrão */
    position: fixed;
    z-index: 1000;
    /* Fica por cima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fundo preto com transparência */
    backdrop-filter: blur(5px);
    /* Efeito de desfoque opcional */
}

/* Imagem dentro do Modal */
.modal-conteudo {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 5vh;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Botão de Fechar */
.fechar {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.fechar:hover,
.fechar:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}