/* assets/css/styles.css */

/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
}

main {
    padding: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline {
    position: relative;
    padding: 10px 0;
    width: 100%;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #4CAF50;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    background-color: inherit;
    width: 50%;
    transition: all 0.5s ease;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #4CAF50;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -17px;
}

.timeline-item .content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-item .icon img {
    width: 40px;
    height: 40px;
}

.timeline-item .date {
    font-size: 14px;
    color: #777;
}

.timeline-item .content h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}

.timeline-item .content img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .timeline-item {
        width: 100%;
        left: 0;
    }
    
    .timeline-item::after {
        left: 50%;
    }
    
    .timeline::after {
        left: 50%;
    }
}
/* Modal para Imagem Ampliada */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed; /* Fixo */
    z-index: 1000; /* Ficar acima de outros elementos */
    padding-top: 100px; /* Localização vertical */
    left: 0;
    top: 0;
    width: 100%; /* Largura total */
    height: 100%; /* Altura total */
    overflow: auto; /* Habilitar scroll se necessário */
    background-color: rgba(0,0,0,0.8); /* Fundo preto com opacidade */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.modal-content:hover {
    transform: scale(1.05);
}

.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
