/* ===================================================================
   ESTILOS GERAIS E DE CABEÇALHO (HERO)
   =================================================================== */

/* Estilos para o Campo de Busca */
.search-container {
    padding: 30px 0;
    margin: 0 auto;
    max-width: 900px; /* Alinhe com a largura do container */
}

#article-search {
    width: 100%;
    padding: 15px 20px 15px 45px; /* Adiciona padding para o ícone */
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    outline: none;
    transition: border-color 0.3s;
    
    /* Adiciona um ícone de lupa usando background */
    background: #fff url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23999" d="M416 208c0 45.9-14.9 88.3-40 122.7L473.4 457c6.7 6.7 6.7 17.7 0 24.5l-24.5 24.5c-6.7 6.7-17.7 6.7-24.5 0L329.3 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zM208 352c88.4 0 160-71.6 160-160S296.4 32 208 32 48 103.6 48 192s71.6 160 160 160z"/></svg>') no-repeat 15px center;
    background-size: 18px;
}

#article-search:focus {
    border-color: #007bff; /* Cor de destaque ao focar */
}

.hero-artigos-header {
    background-size: cover;
    background-position: center 30%;
    position: relative;
    padding: 100px 20px;
    padding-top: 10rem;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding-top: 15rem !important;
}
 

/* Garante que o conteúdo fique sobre o overlay */
.hero-content-artigos {
    position: relative;
    z-index: 2;
}

.hero-artigos-header .hero-overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.65) 0%,   /* topo um pouco mais escuro */
        rgba(0, 0, 0, 0.55) 40%, /* meio equilibrado */
        rgba(0, 0, 0, 0.75) 100% /* base mais escura */
    );
    z-index: 1;
}

/* Destaque do título principal */
.hero-artigos-header .tituloDestaque {
    color: #d4af37 ;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Título e subtítulo em branco */
.hero-artigos-header .page-title,
.hero-artigos-header .page-subtitle {
    color: #fff;
}

/* Pequeno refinamento visual */
.hero-artigos-header .page-title {
    font-size: 2.3rem;
    margin-top: 1rem;
}

.hero-artigos-header .page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}



/* Garante que o conteúdo fique sobre o overlay */
.hero-content-artigos {
    position: relative;
    z-index: 2;
}



/* Destaque do título principal */
.hero-artigos-header .tituloDestaque {
    color: #d4af37; /* dourado elegante */
    font-weight: 600;
    letter-spacing: 1px;
}

/* Título e subtítulo em branco */
.hero-artigos-header .page-title,
.hero-artigos-header .page-subtitle {
    color: #fff;
}

/* Pequeno refinamento visual */
.hero-artigos-header .page-title {
    font-size: 2.3rem;
    margin-top: 1rem;
}

.hero-artigos-header .page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 3em;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    padding-top: 20px;
}

.page-subtitle {
    font-size: 1.2em;
    color: #ccc;
    text-align: center;
    margin-bottom: 60px;
}

.all-articles-grid-container {
    padding: 60px 0;
    background-color: #f7f7f7; /* Fundo claro para contraste com o destaque escuro */
}

/* O posts-grid já deve existir no seu style.css, mas garanta que ele tenha o grid layout */
.posts-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================================================
   ESTILOS DO CARD DO ARTIGO (POSICIONAMENTO E OVERLAY)
   =================================================================== */

.post-card-standard {
    /* Propriedades para o posicionamento do overlay e link */
    position: relative; 
    height: 400px; /* Definindo uma altura para os cards de artigo */
    background-size: cover;
    background-position: center;
    border-radius: 8px; 
    overflow: hidden; 
}

.article-link-card {
    position: relative; 
}

.article-card-overlay {
    /* Faz o link ser a área clicável total */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    text-decoration: none;

    /* Implementação do Overlay Escuro e do POSICIONAMENTO DO TEXTO */
    display: flex;
    flex-direction: column; 
    justify-content: flex-end; /* ALINHA O CONTEÚDO À PARTE INFERIOR */
    
    /* Overlay Escuro */
    background-color: rgba(0, 0, 0, 0.45); 
    transition: background-color 0.3s ease;
}

 
.post-info {
    /* Garante que o conteúdo fique acima do overlay */
    position: relative;
    z-index: 11;
    
    /* Estilos de Conteúdo */
    padding: 20px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    width: 100%; 
}

/* Garante que todos os textos no post-info sejam brancos sobre o fundo escuro */
.post-info .category-tag,
.post-info .date,
.post-info h3 {
    color: #fff !important; 
}

.post-info .category-tag {
    display: inline-block;
    background-color: #d4af37; /* Fundo dourado */
    color: #333 !important; /* Texto escuro */
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.post-info h3 {
    margin: 5px 0 10px 0;
    font-size: 1.3rem;
    line-height: 1.4;
}

.post-info .date {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ===================================================================
   ESTILOS DE CTA E RODAPÉ
   =================================================================== */

/* Estilos para a Chamada para Ação (CTA) */
.cta-exclusive-area {
    background-color: #333;
    color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.container-cta {
    max-width: 800px;
    margin: 0 auto;
}

.cta-exclusive-area h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.btn-cta-exclusive {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d4af37; /* Cor de destaque similar ao gold */
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-cta-exclusive:hover {
    background-color: #f0c45d;
}