/*
Theme Name: Astra Child
Template: astra
Author: Power Mocho
Description: Astra Child Theme
Version: 2.6.2
*/

:root {
    --pm-gold: #D1AE5E;
    --pm-dark: #063846;
    --pm-navy: #0A3238;
    --pm-text: #05141D;
    --pm-gray: #444444;
    --pm-light: #F0F5FA;
}

/* BASE - AUMENTEI PRA 15PX */
html {
    font-size: 15px;
}

/* RESET ASTRA */
body.blog #primary.content-area,
body.category #primary.content-area,
body.search #primary.content-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.blog .site-content > .ast-container,
.archive .site-content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

/* HEADER */
.blog-header {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    margin-bottom: 32px;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pm-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--pm-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* BUSCADOR - 1 BOTÃO SÓ */
.blog-search {
    max-width: 500px;
    margin: 0 auto 48px;
    padding: 0 20px;
}

.blog-search .search-form {
    display: flex;
    gap: 8px;
}

.blog-search .search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}

.blog-search .search-submit {
    padding: 14px 28px;
    background: var(--pm-dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 15px;
    white-space: nowrap;
}

.blog-search .search-submit:hover {
    background: var(--pm-gold);
    color: var(--pm-dark);
}

/* FEATURED */
.blog-featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 40px;
    background-color: var(--pm-dark);
    border-radius: 20px;
    align-items: center;
}

.featured-thumbnail img {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    object-fit: cover;
}

.featured-content h2 a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
}

.featured-content p {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    margin: 16px 0 32px;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid var(--pm-gold);
    color: var(--pm-gold) !important;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 15px;
}

.read-more-btn:hover {
    background: var(--pm-gold);
    color: var(--pm-dark) !important;
}

/* CATEGORIAS */
body.blog .pm-categorias-filtro,
body.category .pm-categorias-filtro {
    max-width: 1100px;
    margin: 0 auto 48px auto;
    padding: 0 20px;
}
body.blog .pm-categorias-inner,
body.category .pm-categorias-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
body.blog .pm-cat-btn,
body.category .pm-cat-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid var(--pm-gold);
    border-radius: 10px;
    background: transparent;
    color: var(--pm-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
    text-align: center;
}
body.blog .pm-cat-btn:hover,
body.category .pm-cat-btn:hover,
body.blog .pm-cat-btn.active,
body.category .pm-cat-btn.active {
    background: var(--pm-gold);
    color: var(--pm-dark);
    transform: translateY(-2px);
}

/* GRID - FONTE MAIOR */
body.blog .blog-posts-grid,
body.category .blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

body.blog .grid-post,
body.category .grid-post {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

body.blog .grid-post:hover,
body.category .grid-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

body.blog .grid-thumbnail img,
body.category .grid-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

body.blog .grid-content,
body.category .grid-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

body.blog .post-category,
body.category .post-category {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--pm-gold);
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

body.blog .post-title,
body.category .post-title {
    font-size: 1.125rem;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--pm-text);
    font-weight: 800;
    text-transform: uppercase;
}

body.blog .post-title a,
body.category .post-title a {
    text-decoration: none;
    color: inherit;
}

/* META GRID - COM AVATAR E FONTE MAIOR */
body.blog .post-meta-grid,
body.category .post-meta-grid {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--pm-gray);
}

body.blog .post-author-avatar img,
body.category .post-author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
}

body.blog .post-author,
body.category .post-author {
    color: var(--pm-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
}

body.blog .post-sep,
body.category .post-sep {
    opacity: 0.5;
}

body.blog .post-readtime,
body.category .post-readtime {
    font-weight: 700;
}

body.blog .post-date,
body.category .post-date {
    text-transform: uppercase;
    font-size: 12px;
}

body.blog .post-excerpt,
body.category .post-excerpt {
    font-size: 15px;
    line-height: 1.65;
    color: var(--pm-gray);
    margin: 0 0 18px 0;
    flex-grow: 1;
}

body.blog .pm-ler-mais,
body.category .pm-ler-mais {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: var(--pm-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-top: auto;
}
body.blog .pm-ler-mais:hover,
body.category .pm-ler-mais:hover {
    color: var(--pm-dark);
}

/* PAGINAÇÃO - SEM FAIXA BRANCA */
.blog-pagination {
    text-align: center;
    margin: 0;
    padding: 0 20px 48px 20px;
    background: transparent !important;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: var(--pm-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    background: #fff;
}

.blog-pagination .page-numbers.current {
    background: var(--pm-dark);
    color: #fff;
    border-color: var(--pm-dark);
}

.blog-pagination .page-numbers:hover {
    background: var(--pm-gold);
    border-color: var(--pm-gold);
    color: var(--pm-dark);
}

/* CTA - CORRIGE FORMULÁRIO */
body.blog .pm-blog-cta-form,
body.category .pm-blog-cta-form {
    background: var(--pm-gold);
    padding: 60px 20px 80px 20px;
    margin-top: 0;
    margin-bottom: 0;
}

body.blog .pm-blog-cta-form h2,
body.category .pm-blog-cta-form h2 {
    text-align: center;
    color: var(--pm-dark);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 32px 0;
    font-weight: 700;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body.blog .pm-form-wrapper,
body.category .pm-form-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    z-index: 3;
}

/* REMOVE ESPAÇO BRANCO */
body.blog .site-content,
body.blog #content,
body.blog .site-main,
body.blog #main,
body.category .site-content,
body.category #content,
body.category .site-main,
body.category #main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.blog .ast-container,
body.category .ast-container {
    padding-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    body.blog .blog-posts-grid,
    body.category .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-featured-post {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 24px;
    }
    
    .featured-thumbnail img {
        height: 260px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .blog-header {
        padding: 40px 20px;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1.0625rem;
    }
    
    .blog-search .search-form {
        flex-direction: column;
    }
    
    .blog-search .search-submit {
        width: 100%;
    }
    
    .blog-featured-post {
        margin: 0 20px 48px 20px;
        padding: 20px;
    }
    
    .featured-thumbnail img {
        height: 200px;
    }
    
    .featured-content h2 a {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .featured-content p {
        font-size: 1rem;
        margin: 14px 0 20px;
    }
    
    body.blog .pm-categorias-filtro,
    body.category .pm-categorias-filtro {
        margin: 0 0 32px 0;
        padding: 0;
    }
    
    body.blog .pm-categorias-inner,
    body.category .pm-categorias-inner {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 20px 10px 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    body.blog .pm-categorias-inner::-webkit-scrollbar,
    body.category .pm-categorias-inner::-webkit-scrollbar {
        display: none;
    }
    
    body.blog .pm-cat-btn,
    body.category .pm-cat-btn {
        flex-shrink: 0;
        padding: 9px 18px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    body.blog .blog-posts-grid,
    body.category .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
        margin-bottom: 32px;
    }
    
    body.blog .grid-thumbnail img,
    body.category .grid-thumbnail img {
        height: 200px;
    }
    
    body.blog .grid-content,
    body.category .grid-content {
        padding: 20px;
    }
    
    .blog-pagination {
        padding: 0 20px 32px 20px;
    }
    
    .blog-pagination .page-numbers {
        padding: 8px 14px;
        margin: 0 2px;
        font-size: 14px;
    }
    
    body.blog .pm-blog-cta-form,
    body.category .pm-blog-cta-form {
        padding: 40px 20px 50px 20px;
    }
    
    body.blog .pm-blog-cta-form h2,
    body.category .pm-blog-cta-form h2 {
        font-size: 1.625rem;
        padding: 0 10px;
    }
    
    body.blog .pm-form-wrapper,
    body.category .pm-form-wrapper {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 32px 16px 24px 16px;
    }
    
    .blog-header h1 {
        font-size: 1.5rem;
        padding: 0 5px;
    }
    
    .blog-header p {
        font-size: 0.9375rem;
    }
    
    .blog-featured-post {
        margin: 0 16px 40px 16px;
        padding: 18px;
        border-radius: 14px;
    }
    
    .featured-content h2 a {
        font-size: 1.375rem;
    }
    
    body.blog .blog-posts-grid,
    body.category .blog-posts-grid {
        padding: 0 16px;
    }
}

/* SINGLE POST - MOBILE */
@media (max-width: 768px) {
    body.single .ast-container,
    body.single-post .ast-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    body.single .entry-title,
    body.single-post .entry-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
    }
    
    body.single .entry-content,
    body.single-post .entry-content {
        font-size: 1.0625rem !important;
        line-height: 1.7 !important;
    }
    
    body.single .entry-content img,
    body.single-post .entry-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    body.single .post-thumb img,
    body.single-post .post-thumb img {
        height: 200px !important;
        object-fit: cover;
    }
    
    body.single blockquote,
    body.single-post blockquote {
        margin: 18px 0 !important;
        padding: 14px !important;
        font-size: 1rem !important;
    }
    
    body.single .entry-content ul,
    body.single .entry-content ol,
    body.single-post .entry-content ul,
    body.single-post .entry-content ol {
        padding-left: 18px !important;
    }
    
    body.single table,
    body.single-post table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    body.single .entry-meta,
    body.single-post .entry-meta {
        font-size: 12px !important;
        flex-wrap: wrap;
    }
    
    body.single .ast-related-posts-wrapper .ast-related-posts,
    body.single-post .ast-related-posts-wrapper .ast-related-posts {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    body.single .ast-container,
    body.single-post .ast-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    body.single .entry-title,
    body.single-post .entry-title {
        font-size: 1.5rem !important;
    }
    
    body.single .entry-content,
    body.single-post .entry-content {
        font-size: 1rem !important;
    }
}

/* TELAS GRANDES */
@media (min-width: 1440px) {
    .blog-header {
        padding: 50px 20px;
    }
    
    .blog-header h1 {
        font-size: 2.75rem;
    }
    
    .blog-header p {
        font-size: 1.125rem;
    }
    
    .blog-featured-post {
        padding: 40px;
        gap: 40px;
    }
    
    .featured-thumbnail img {
        height: 300px;
    }
    
    .featured-content h2 a {
        font-size: 2rem;
    }
    
    .featured-content p {
        font-size: 1.0625rem;
    }
    
    body.blog .blog-posts-grid,
    body.category .blog-posts-grid {
        gap: 24px;
    }
}

@media (min-width: 1920px) {
    .blog-header,
    .blog-search,
    .blog-featured-post,
    body.blog .pm-categorias-filtro,
    body.category .pm-categorias-filtro,
    body.blog .blog-posts-grid,
    body.category .blog-posts-grid {
        max-width: 1100px;
    }
}
/* MATA ESPAÇO BRANCO ANTES DO FOOTER - DEFINITIVO */
body.blog #main.site-main,
body.category #main.site-main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.blog #primary.content-area,
body.category #primary.content-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.blog .site-content,
body.category .site-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.blog .pm-blog-cta-form,
body.category .pm-blog-cta-form {
    margin-bottom: 0 !important;
}

.site-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

/* Se tiver usando Elementor Footer */
.elementor-location-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* MATA A CAIXA BRANCA DO ASTRA NO BLOG */
body.blog #primary.content-area,
body.blog #main.site-main,
body.blog .ast-container,
body.category #primary.content-area,
body.category #main.site-main,
body.category .ast-container {
    background: transparent !important;
    box-shadow: none !important;
}

/* HEADER - OCUPA 100% DA LARGURA SEM CAIXA */
.blog-header {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: transparent !important;
    margin: 0 auto;
    max-width: 100% !important;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--pm-gold);
    line-height: 1.2;
    margin: 0 auto 16px auto;
    max-width: 900px;
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--pm-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* BUSCADOR - TAMBÉM SEM CAIXA */
.blog-search {
    max-width: 500px;
    margin: 0 auto 48px;
    padding: 0 20px;
    background: transparent !important;
    box-shadow: none !important;
}

/* GARANTE FUNDO CINZA DO SITE */
body.blog,
body.category {
    background-color: #F0F5FA !important;
}
/* SINGLE - CONTINUE LENDO IGUAL CATEGORY */
body.single .blog-posts-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
    max-width:1100px;
    margin:0 auto 60px;
    padding:0 20px;
}
body.single .grid-post{
    background:#fff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 16px rgba(0,0,0,0.06);
    transition:.3s;
    display:flex;
    flex-direction:column;
}
body.single .grid-post:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 24px rgba(0,0,0,0.1);
}
body.single .grid-thumbnail img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
}
body.single .grid-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex-grow:1;
}
body.single .post-category{
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    color:var(--pm-gold);
    margin-bottom:10px;
    letter-spacing:.8px;
}
body.single .post-title{
    font-size:1.125rem;
    line-height:1.35;
    margin:0 0 12px;
    font-weight:800;
    text-transform:uppercase;
}
body.single .post-title a{color:inherit;text-decoration:none}
body.single .post-meta-grid{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    font-size:15px;
    font-weight:600;
    margin-bottom:14px;
    color:var(--pm-gray);
}
body.single .post-author-avatar img{width:24px;height:24px;border-radius:50%}
body.single .post-author{color:var(--pm-gold);font-weight:700;text-transform:uppercase;font-size:12px}
body.single .post-sep{opacity:.5}
body.single .post-date{text-transform:uppercase;font-size:12px}
body.single .post-readtime{font-weight:700}
body.single .post-excerpt{font-size:15px;line-height:1.65;color:var(--pm-gray);margin:0 0 18px;flex-grow:1}
body.single .pm-ler-mais{display:block;text-align:right;font-size:14px;font-weight:700;color:var(--pm-gold);text-decoration:underline;text-underline-offset:3px;margin-top:auto}

@media (max-width:1024px){
    body.single .blog-posts-grid{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media (max-width:768px){
    body.single .blog-posts-grid{grid-template-columns:1fr;gap:20px;padding:0 20px;margin-bottom:32px}
    body.single .grid-content{padding:20px}
    body.single .grid-thumbnail img{height:200px}
}