/*
Theme Name: Universidade Doula na Missão
Author: Universidade Doula na Missão
Description: Tema customizado para o blog da Universidade com foco acadêmico.
Version: 1.0
*/

:root {
    --color-1: #734858; 
    --color-2: #59163B; 
    --color-3: #7A4B5B; 
    --color-4: #5E2625; 
    --color-5: #D9857E; 
    --bg-light: #FBF9F8; 
    --text-dark: #3A2E32;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--color-2); font-weight: 700; }
a { text-decoration: none; transition: var(--transition); color: var(--color-1); }
a:hover { color: var(--color-5); }

/* --- CABEÇALHO --- */
header { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 1rem 5%; background-color: #fff; position: sticky; top: 0; 
    z-index: 1000; border-bottom: 1px solid rgba(89, 22, 59, 0.1); 
}
.logo-img { max-height: 50px; width: auto; display: block; }
nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; }
nav a { color: var(--text-dark); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }
nav a:hover { color: var(--color-5); }
.btn-nav { border: 1px solid var(--color-5); padding: 0.6rem 1.8rem; color: var(--color-5) !important; font-weight: 700; border-radius: 4px; }
.btn-nav:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- RODAPÉ --- */
footer { background-color: #fff; text-align: center; padding: 4rem; font-size: 0.85rem; border-top: 1px solid #eee; }

/* --- LAYOUT DA RAIZ DO BLOG (INDEX) --- */
.blog-container { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; min-height: 70vh; }
.blog-page-title { font-size: 3.5rem; text-align: center; margin-bottom: 0.5rem; }
.blog-page-subtitle { text-align: center; font-size: 1.1rem; font-weight: 300; color: var(--color-3); max-width: 600px; margin: 0 auto 4rem auto; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 3rem; margin-bottom: 4rem; }

.post-card { 
    background-color: #fff; border: 1px solid rgba(89, 22, 59, 0.1); 
    border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; 
    transition: var(--transition); 
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(89, 22, 59, 0.08); }

.post-card-thumbnail { width: 100%; height: 220px; overflow: hidden; background: #eee; }
.post-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }

.post-card-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-date { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--color-5); margin-bottom: 0.8rem; }
.post-card h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 1rem; }
.post-card h2 a { color: var(--color-2); }
.post-card h2 a:hover { color: var(--color-5); }
.post-card-excerpt { font-size: 0.95rem; font-weight: 300; color: var(--text-dark); margin-bottom: 1.5rem; flex-grow: 1; }

.btn-read-more { 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; 
    letter-spacing: 1px; color: var(--color-1); align-self: flex-start;
    border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.btn-read-more:hover { color: var(--color-5); border-bottom-color: var(--color-5); }

/* --- PAGINAÇÃO --- */
.blog-pagination { text-align: center; margin-top: 2rem; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: 0.5rem; align-items: center; }
.blog-pagination .page-numbers { 
    padding: 0.6rem 1.2rem; border-radius: 4px; background: #fff; 
    color: var(--text-dark); font-weight: 600; border: 1px solid rgba(89, 22, 59, 0.1);
    transition: var(--transition); 
}
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover { background: var(--color-2); color: #fff; border-color: var(--color-2); }

/* --- INTERNA DO ARTIGO (SINGLE) --- */
.single-post-container { max-width: 800px; }
.back-to-blog { margin-bottom: 2.5rem; }
.btn-back { font-size: 0.85rem; font-weight: 600; color: var(--color-1); display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 1px; }
.btn-back:hover { color: var(--color-5); transform: translateX(-5px); }

.post-single .post-meta-date { font-size: 0.85rem; font-weight: 600; color: var(--color-5); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 1rem; }
.post-single h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 2.5rem; }
.post-single-thumbnail { width: 100%; margin-bottom: 3rem; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.post-single-thumbnail img { width: 100%; height: auto; display: block; }

.post-content { font-size: 1.1rem; font-weight: 300; color: var(--text-dark); line-height: 1.8; }
.post-content p { margin-bottom: 2rem; }
.post-content strong { font-weight: 600; color: var(--color-2); }
.post-content h2, .post-content h3 { margin: 3rem 0 1.5rem 0; }
.post-content h2 { font-size: 2rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 2rem 0; border: 1px solid rgba(89, 22, 59, 0.1); }

.post-content blockquote {
    margin: 3rem auto; max-width: 850px; padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-5); border-right: 4px solid var(--color-5);
    background-color: #fff; font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-style: italic; color: var(--color-2); text-align: center;
}

/* --- POSTS RELACIONADOS --- */
.related-posts-section { margin-top: 6rem; padding-top: 4rem; border-top: 1px solid rgba(89, 22, 59, 0.1); }
.related-posts-section h3 { font-size: 2rem; margin-bottom: 2rem; }
.related-posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.related-card { background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid rgba(89, 22, 59, 0.1); transition: var(--transition); }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(89, 22, 59, 0.08); }
.related-thumb { width: 100%; height: 160px; overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.related-card:hover .related-thumb img { transform: scale(1.05); }
.related-card h4 { padding: 1.2rem; font-size: 1.1rem; line-height: 1.4; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 1000px) {
    header { flex-direction: column; gap: 1.5rem; }
    nav ul { display: none; } /* Oculta menu no mobile do blog, adicione um menu sanduíche depois se desejar */
    .blog-page-title { font-size: 2.5rem; }
    .post-single h1 { font-size: 2.2rem; }
}