/* Comportamento de rolagem suave */
html {
    scroll-behavior: smooth;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo geral do corpo */
body {
    font-family: 'Georgia', serif;
    font-size: 18px;
    line-height: 1.8;
    color: #0F1A2B;
    background-color: #F4F1EB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Estilo do container do cabeçalho */
.header-container {
    position: relative;
}

/* Cabeçalho */
header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/header.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #FFFFFF;
    padding: 2.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.slogan {
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #B88A44;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    
      
}

/* Estilo do logotipo no cabeçalho */
.header-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: block;
    border-radius: 30%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: solid #B88A44 2px 
}

/* Estilo do botão do menu hamburguer */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background-color: #B88A44;
    width: 25px;
    height: 3px;
    display: block;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Estilo quando o menu está aberto */
.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

nav a {
    color: #B88A44;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #85683e;
}

/* Conteúdo principal */
main {
    flex: 1 0 auto;
    padding: 3rem 1rem;
    max-width: 700px;
    margin: 0 auto;
}

section {
    margin-bottom: 4rem;
    background-color: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Títulos */
h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #0F1A2B;
    border-bottom: 2px solid #1a2b49;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0F1A2B;
}

h4 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #0F1A2B;
}

/* Parágrafos e citações */
p {
    margin-bottom: 1.5rem;
}

blockquote {
    font-style: italic;
    color: #555;
    border-left: 4px solid #1a2b49;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.article-meta {
    font-size: 1rem;
    color: #777;
    margin-bottom: 1.5rem;
    font-style: italic;
}

ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

ol li {
    margin-bottom: 1rem;
}

/* Estilo da imagem na seção Sobre */
.sobre-imagem {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: solid rgb(238, 238, 236) 2px 
}

/* Estilo da lista de artigos */
#artigos-lista article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

#artigos-lista article:last-child {
    border-bottom: none;
}

/* Estilo das imagens dos artigos */
.artigo-imagem {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

/* Estilo do link "Leia Mais" */
.leia-mais {
    color: #0F1A2B;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.leia-mais:hover {
    color: #0F1A2B;
    text-decoration: underline;
}

/* Estilo do link "Ver Todos os Artigos" */
.ver-todos {
    text-align: center;
    margin-top: 2rem;
}

.ver-todos a {
    color: #0F1A2B;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ver-todos a:hover {
    color: #0F1A2B;
    text-decoration: underline;
}

.cta-button {
    background-color: #0F1A2B;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2d4373;
}

/* Estilo da imagem introdutória na seção Cronologia */
.cronologia-intro {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo da linha do tempo */
.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #1a2b49;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    background-color: #1a2b49;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: 1rem;
}

.timeline-item:nth-child(even)::before {
    left: 1rem;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: -1rem;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: -1rem;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

/* Estilo dos ícones da linha do tempo */
.timeline-icon {
    position: absolute;
    top: 1.5rem;
    font-size: 1.5rem;
    color: #1a2b49;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -2.5rem;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -2.5rem;
}

/* Rodapé */
footer {
    flex-shrink: 0;
    background-color:#0F1A2B;
    color: #85683e;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    margin-top: 3rem;
}

/* Responsividade (Mobile-first) */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .slogan {
        font-size: 1.1rem;
    }

    .header-logo {
        width: 80px;
        height: 80px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color:#0F1A2B;
        padding: 1rem 0;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    nav a {
        font-size: 1.1rem;
    }

    main {
        padding: 2rem 1rem;
    }

    section {
        padding: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .sobre-imagem {
        float: none;
        margin: 0 auto 1rem;
        display: block;
    }

    .artigo-imagem {
        height: 150px;
    }

    .recurso-imagem {
        max-width: 150px;
    }

    .cronologia-intro {
        max-width: 100%;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 4rem;
        padding-right: 1rem;
        text-align: left;
    }

    .timeline-item::before {
        left: 1rem;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -1rem;
        right: auto;
        border-right: 10px solid white;
        border-left: none;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -2.5rem;
        right: auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .slogan {
        font-size: 1rem;
    }

    nav a {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    section {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Estilo da seção eBooks */
.ebook-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.ebook-item {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ebook-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ebook-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.ebook-item p {
    margin-bottom: 1rem;
}

/* Estilo das imagens dos eBooks */
.ebook-imagem {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .ebook-item {
        flex: 1 1 100%;
    }

    .ebook-imagem {
        max-width: 150px;
    }
}