/* Estilos específicos para página de Publicações e Eventos */

/* Seção de fundo claro */
.bg-light {
    background-color: var(--light-color);
}

/* Estilos para os Materiais Educativos */
.materiais-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.material-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.material-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.material-image {
    height: 250px;
    overflow: hidden;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.material-card:hover .material-image img {
    transform: scale(1.05);
}

.material-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.material-info h3 {
    color: var(--primary-dark-green);
    margin-bottom: 15px;
}

.material-info p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-medium-green);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: var(--primary-dark-green);
}

/* Estilos para Artigos Científicos */
.artigos-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.artigo-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.artigo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.artigo-data {
    background-color: var(--primary-dark-green);
    color: white;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.mes {
    font-size: 1.2rem;
    font-weight: bold;
}

.ano {
    font-size: 1rem;
}

.artigo-content {
    padding: 20px;
}

.artigo-content h3 {
    color: var(--primary-dark-green);
    margin-bottom: 8px;
}

.artigo-image-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artigo-image-box img {
    width: 90%;
    max-width: 250px;
}

.artigo-autores {
    font-style: italic;
    color: #666;
    margin-bottom: 5px;
}

.artigo-journal {
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.artigo-abstract {
    margin-bottom: 15px;
    line-height: 1.5;
}

.artigo-link {
    display: inline-block;
    color: var(--primary-medium-green);
    font-weight: 500;
    transition: all 0.3s ease;
}

.artigo-link:hover {
    color: var(--accent-amber);
    text-decoration: underline;
}

.ver-mais-container {
    text-align: center;
    margin-top: 30px;
}

.ver-mais-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--accent-amber);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ver-mais-button:hover {
    background-color: var(--accent-light-amber);
}

/* Estilos para Eventos */
.eventos-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.evento-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.evento-image {
    overflow: hidden;
}

.evento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-card:hover .evento-image img {
    transform: scale(1.05);
}

.evento-info {
    padding: 25px;
    position: relative;
}

.evento-data {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--accent-amber);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.evento-dia {
    font-size: 1.2rem;
    font-weight: bold;
}

.evento-mes,
.evento-ano {
    font-size: 0.9rem;
}

.evento-info h3 {
    color: var(--primary-dark-green);
    margin-bottom: 10px;
    padding-right: 100px;
}

.evento-local {
    font-weight: 500;
    color: #666;
    margin-bottom: 15px;
}

.evento-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-medium-green);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.evento-link:hover {
    color: var(--primary-dark-green);
    text-decoration: underline;
}

.evento-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.eventos-passados-titulo {
    color: var(--primary-dark-green);
    margin-bottom: 20px;
}

.eventos-passados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.evento-passado-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.evento-passado-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.evento-passado-image {
    height: 180px;
    overflow: hidden;
}

.evento-passado-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.evento-passado-item:hover .evento-passado-image img {
    transform: scale(1.05);
}

.evento-passado-info {
    padding: 20px;
}

.evento-passado-info h4 {
    color: var(--primary-dark-green);
    margin-bottom: 5px;
}

.evento-passado-data {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
}

.evento-galeria {
    margin-top: 15px;
}

.evento-galeria a {
    color: var(--primary-medium-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.evento-galeria a:hover {
    color: var(--primary-dark-green);
    text-decoration: underline;
}

/* Estilos para o menu de navegação lateral */
.side-nav {
    position: fixed;
    top: 138px;
    transform: translateY(-50%);
    background-color: var(--light-color);
    padding: 5px 16px;
    border-radius: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.side-nav::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.side-nav.visible {
    opacity: 1;
    visibility: visible;
}

.side-nav ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 1200px;
    
    list-style: none;
    padding: 0;
    margin: 0 auto;
}

.side-nav li {
    margin: 10px 0;
}

.side-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 1px 7px rgba(0, 0, 0, 0.2);
    ;
    white-space: nowrap;
}

.side-nav a:hover {
    color: var(--primary-medium-green);
    background-color: var(--light-color);
}

.side-nav a.active {
    color: white;
    background-color: var(--primary-medium-green);
}

/* Media query para esconder em telas menores */
/* @media (max-width: 1200px) {
    .side-nav {
        display: none;
    }
} */

@media (max-width: 992px) {
    .evento-card {
        grid-template-columns: 1fr;
    }

    .evento-image {
        height: 250px;
    }

    .eventos-passados {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .artigo-item {
        flex-direction: column;
    }

    .artigo-data {
        flex-direction: row;
        width: 100%;
        padding: 10px;
        gap: 10px;
        justify-content: center;
    }

    .eventos-container {
        gap: 20px;
    }
}