/* Basic Reset & Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Franklin Gothic Bold';
    src: url('../fonts/FranklinGothic-Bold.woff2') format('woff2'),
         url('../fonts/FranklinGothic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: 'Franklin Gothic Bold', Arial, sans-serif; /* Fallback para Arial ou sans-serif */
}

body {
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Preenchimento nas laterais para telas menores */
}

/* Header Styles */
.site-header {
    background-color: #fff;
    padding: 40px 0 60px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.site-branding { /* TT350A - Blog 1 */
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    z-index: 10;
}

.hero-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.author-affiliation { /* Antônio Carlos Zambon - FT UNICAMP */
    font-size: 0.95em;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.site-title { /* Blog de Administração de Empresas */
    font-size: 2.8em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.site-description { /* Esse blog foi feito com o intuito... */
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px; /* Mais padding para o botão */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #FFA500; /* Laranja Principal */
    color: white;
    font-size: 1em;
}

.btn-primary:hover {
    background-color: #E69500; /* Laranja mais escuro no hover */
    transform: translateY(-2px);
}

.btn-secondary { /* Botão "Acessar" nos cards */
    background-color: #FFA500; /* Laranja Principal */
    color: white;
    font-size: 0.9em;
    padding: 8px 20px;
}

.btn-secondary:hover {
    background-color: #E69500; /* Laranja mais escuro no hover */
    transform: translateY(-1px);
}


/* Main Content Grid (Para a página inicial) */
.site-content {
    padding: 60px 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

/* Tópicos de Aula Section */
.aula-topics h2,
.useful-links h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
}

.topic-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: transform 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
}

.topic-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.topic-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.topic-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.topic-meta i {
    margin-right: 8px; /* Espaço entre ícone e texto */
    color: #777;
}

.topic-card p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555;
}

/* Seção de Links Uteis */
.links-uteis-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}
.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #FF8C00; /* Laranja escuro para borda */
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;

}

.icon-circle .fas {
    color: #FF8C00; /* Laranja escuro para ícone */
    font-size: 18px;
}

/* Container do conteúdo ao lado do ícone */
.item-content {
    flex-grow: 1;
    padding: 0;
    margin: 0;
}

/* Título de cada item */
.item-content h4 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
}

/* Parágrafos dentro do conteúdo do item */
.item-content p {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #666;
}

/* Links dentro dos parágrafos ou diretamente no item */
.item-content p a,
.item-content ul li a {
    color: #FF8C00; /* Laranja escuro para links */
    text-decoration: underline;
}

.item-content p a:hover,
.item-content ul li a:hover {
    color: #cc7000; /* Laranja mais escuro no hover */
}


/* Estilos para a lista aninhada (dúvidas) */
.item-content ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

/* Itens da lista aninhada */
.item-content ul li {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 3px;

}


/* Right Column Image Placeholder */
.image-placeholder {
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    display: block; 
    border-radius: 8px; 
}


/* Footer Styles */
.site-footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
    font-size: 0.9em;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}


/* Novos Estilos para o Single Post */

/* Container principal da página de post */
.site-main.single-post-container {
    padding: 60px 0;
    margin-bottom: 60px;
    background-color: #f4f4f4;
}

/* O artigo individual do post */
.single-post-article {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

/* Cabeçalho do Post */
.entry-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.entry-title {
    font-size: 3em; /* Título bem grande */
    color: #333;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.entry-meta {
    font-size: 0.95em;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.author-info img.avatar, .author-avatar {
    border-radius: 50%;
    margin-right: 10px;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.author-info a {
    color: #007bff; /* Mantendo azul para links de autor ou mude para #FF8C00 se preferir */
    text-decoration: none;
    font-weight: 600;
}

.author-info a:hover {
    text-decoration: underline;
}



/* Conteúdo do Post */
.entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;

}

.entry-content p {
    margin-bottom: 1.5em; /* Espaço entre parágrafos */
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}


/* Estilo para vídeos incorporados/
/* O WordPress envolve embeds em .wp-block-embed (e outros) */
.wp-block-embed,
.entry-content .wp-block-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 8px;
}

.wp-block-embed iframe,
.wp-block-embed object,
.wp-block-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Post Footer Notes (As "notas finais" do post) */
.post-footer-notes {
    margin-top: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
}

.post-footer-notes .closing-remark {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5em;
}

.post-footer-notes .important-note {
    font-weight: bold;
    color: #333;
    font-size: 1.05em;
    margin-top: 1em;
}

/* Responsividade Geral */
@media (max-width: 992px) {
    /* Ajustes para a página inicial */
    .main-grid {
        grid-template-columns: 1fr; /* Colunas empilhadas */
        gap: 40px;
    }
    .site-branding {
        position: static;
        text-align: center;
        margin-bottom: 20px;
        padding-top: 10px;
    }
    .site-header {
        padding: 20px 0 40px;
    }
    .top-navigation {
        padding: 10px 0;
        justify-content: center;
    }
    .top-bar {
        justify-content: center;
        flex-wrap: wrap;
    }
    .top-bar li {
        margin: 5px 15px;
    }
    .right-column .image-placeholder {
        min-height: 350px;
        margin-bottom: 30px;
    }
    .site-title {
        font-size: 2.2em;
    }
    .site-description {
        font-size: 1em;
    }

    /* Ajustes para Single Post em telas menores */
    .single-post-article {
        padding: 40px 30px; /* Mais padding para telas menores */
        margin: 0 15px; /* Pequena margem lateral para não colar nas bordas da tela */
    }
    .entry-title {
        font-size: 2.5em;
    }
    .entry-meta {
        flex-direction: column; /* Empilha autor e data */
        align-items: center;
    }
    .author-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .post-date {
        margin-left: 0;
    }
    .post-footer-notes {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    /* Ajustes para a página inicial */
    .site-header {
        padding: 15px 0 30px;
    }
    .site-title {
        font-size: 1.8em;
    }
    .site-description {
        font-size: 0.95em;
    }
    .btn-primary {
        padding: 10px 20px;
    }

    /* Ajustes para Single Post em celulares */
    .single-post-article {
        padding: 25px 15px; /* Padding reduzido */
        margin: 0 10px; /* Margem lateral ainda menor */
    }
    .entry-title {
        font-size: 2em;
    }
    .entry-content {
        font-size: 1em;
    }
    .wp-block-embed {
        padding-bottom: 65%; /* Ajuste para vídeos em telas muito pequenas */
    }
    .post-footer-notes {
        padding: 20px;
    }
    .post-footer-notes .important-note {
        font-size: 0.95em;
    }
}

/* --- ESTILOS GERAIS PARA A SEÇÃO DE COMENTÁRIOS --- */

/* Contêiner principal da seção de comentários (onde está o formulário e a lista) */
#comments {
    padding: 20px;
    background-color: #f9f9f9; /* Fundo levemente cinza para a seção inteira */
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra suave */
}

/* Título da seção de comentários ou do formulário */
.comments-title,
#reply-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

/* --- ESTILOS PARA O FORMULÁRIO DE SUBMISSÃO DE COMENTÁRIOS --- */
#respond {
    background-color: #ffffff; /* Fundo branco para o formulário */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px; /* Espaço entre o formulário e a lista de comentários */
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

#respond p {
    margin-bottom: 15px; /* Espaço entre os parágrafos do formulário */
}

#respond label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    box-sizing: border-box; /* Garante que padding e border sejam incluídos na largura */
}

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus {
    border-color: #FFA500; /* Cor da borda ao focar, agora laranja */
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2); /* Sombra suave laranja ao focar */
}

#respond textarea {
    min-height: 120px;
    resize: vertical;
}

/* Estilo para o botão de "Publicar Comentário" */
#respond #submit {
    background-color: #FFA500; /* Laranja Principal */
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
}

#respond #submit:hover {
    background-color: #E69500; /* Laranja mais escuro no hover */
    transform: translateY(-1px);
}

/* Estilo para a mensagem de login/cadastro no formulário */
.comment-notes, .logged-in-as {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 20px;
}

/* --- ESTILOS PARA A LISTA DE COMENTÁRIOS POSTADOS --- */
.comment-list {
    list-style: none; /* Remove marcadores de lista padrão */
    padding: 0;
    margin: 0;
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: 20px;
    margin-left: 50px;
    border-left: 3px solid #eee;
    padding-left: 20px;
}

/* Estilo para cada bloco de comentário individual */
article.comment-body {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* Informações do autor e meta-dados (avatar, nome, data) */
.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
}

.comment-author.vcard img.avatar {
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid #ddd;
}

.comment-author.vcard b.fn {
    font-weight: bold;
    font-size