@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

html,
body {
    background-color: #000;
    color: #fff;
    font-family: "Roboto Slab", serif;
    font-style: normal;
    font-optical-sizing: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1{
    font-family: "Alfa Slab One", cursive;
    font-weight: normal;
    letter-spacing: 0.5px;
    font-size: 2.0em;
    text-transform: uppercase;
}

h2{
    font-size: 1.8em;
}

a {
    color: #fff;
}

.navbar,
.footer {
    background-color: #000;
}

/* geral.css - Atualização da section-divider */
.section-divider {
    position: relative;
    white-space: nowrap;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    padding: 1rem 3rem !important;
    margin: 2rem 0;
    display: inline-block !important;
    border: 3px solid;
    border-image: linear-gradient(45deg, #fff 0%, #666 100%);
    border-image-slice: 1;
    background: linear-gradient(145deg, 
        rgba(30,30,30,0.95) 0%, 
        rgba(60,60,60,0.95) 50%, 
        rgba(30,30,30,0.95) 100%);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1),
                inset 0 2px 4px rgba(255,255,255,0.1);
    clip-path: polygon(
        0 0, 
        calc(100% - 20px) 0, 
        100% 20px, 
        100% 100%, 
        20px 100%, 
        0 calc(100% - 20px)
    );
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0) 48%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 52%);
    background-size: 300% 300%;
    animation: divider-glow 3s infinite linear;
    z-index: -1;
}

.section-divider::after {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 2rem;
    filter: drop-shadow(1px 1px 2px #000);
    opacity: 0.8;
}

@keyframes divider-glow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.section-divider:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255,255,255,0.2),
                inset 0 3px 6px rgba(255,255,255,0.2);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
}

@media (max-width: 768px) {
    .section-divider {
        font-size: 1.8rem;
        white-space: normal;
        padding: 1rem 1.5rem !important;
        display: block !important;
        padding: 0.8rem 1.5rem;
        clip-path: polygon(
            0 0, 
            calc(100% - 15px) 0, 
            100% 15px, 
            100% 100%, 
            15px 100%, 
            0 calc(100% - 15px)
        );
    }
    
    .section-divider::after {
        right: -25px;
        font-size: 1.8rem;
    }
}

/* seção de reconhecimento da onu junto com a evolução do escudo */
.recognition-section {
    background-color: black;
    position: relative;
    overflow: hidden;
    padding: 1rem 1.5rem;
}

.recognition-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/background-texture.webp');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.recognition-section .container {
    position: relative;
    z-index: 1;
}

.recognition-content {
    max-width: 800px; /* Controla a largura máxima do conteúdo */
    margin: 0 auto; /* Centraliza o bloco de conteúdo */
}

.recognition-content .title,
.recognition-content .subtitle {
    text-align: center !important; /* Centraliza títulos */
}

.recognition-content .buttons {
    justify-content: center; /* Centraliza os botões */
}

.recognition-content .content p {
    text-indent: 1.5em; /* Parágrafo com indentação */
    margin-bottom: 1.2rem; /* Espaçamento entre parágrafos */
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* Proporção 1:1 (quadrado) */
    background-color: #191919;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.7);
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    /* Previne distorção */
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .image-column {
        margin-bottom: 1rem;
    }
}

/* fim do css da seção de reconhecimento da onu junto com a evolução do escudo */

/* Evitar quebra de palavras e hifenização em títulos */
h1, h2, h3, h4, .title, .subtitle {
    hyphens: none !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    word-wrap: normal !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Ajuste para os cards de notícias */
.card-image figure.image {
    overflow: hidden; /* Contém a imagem dentro do container */
    background: #000; /* Fundo para áreas de cropped */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantém a proporção e cobre a área */
    object-position: center; /* Foco no centro da imagem */
    transition: transform 0.3s ease; /* Suave animação no hover */
}

/* Ajuste a proporção conforme necessário */
.card-image .is-4by3 {
    padding-top: 56.25%; /* Muda para 16:9 (ajuste este valor conforme sua necessidade) */
}

/* Opcional: Efeito hover para melhor interação */
.card:hover img {
    transform: scale(1.05);
}

/* Estilos para a nova seção */
.title-spacer {
    margin-bottom: 4rem !important;
    padding: 0 2rem;
}


.main-image {
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    overflow: hidden;
    display: block;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.main-image:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 50px rgba(255,255,255,0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .title-spacer {
        margin-bottom: 2.5rem !important;
        padding: 0 1rem;
    }
    
    .side-image {
        margin: 1rem 0;
        transform: none !important;
    }
    
    .side-image:hover {
        transform: translateY(-5px) !important;
    }
    
    .main-image {
        margin-top: 2rem;
    }
}


.news-card-alt {
        border: 1px solid #333;
        transition: transform 0.3s ease;
    }
    
    .news-card-alt:hover {
        transform: translateY(-5px);
        background: #1a1a1a;
    }

    .news-thumbnail {
        width: 120px;
        height: 120px;
        min-width: 120px;
        border-radius: 4px;
        overflow: hidden;
        position: relative;
    }

    .news-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .news-content {
        padding: 1rem;
        flex-grow: 1;
    }

    .news-meta {
        font-size: 0.85rem;
        color: #888;
        margin-bottom: 0.5rem;
    }

    @media (max-width: 768px) {
        .news-thumbnail {
            width: 100%;
            height: 200px;
            margin-bottom: 1rem;
        }
    }
