* {
    font-family: "Orbitron", sans-serif;
    padding: 0;
    margin: 0;
    background-color: #333;
    color: #fcce00; 
}

body {
    padding: 18px;
}

h1 {
    text-align: center;
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    color: #fcce00;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
    transform: scale(1.25);  /* Aumenta um pouco o botão ao passar o mouse */
}

.back-button svg {
    margin-left: 5px;
    fill: #fcce00;
}

.container {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.diploma-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta a quantidade de colunas automaticamente */
    gap: 20px;
    max-width: 1000px; /* Largura máxima da lista */
    margin: 20px auto; /* Centraliza a lista horizontalmente */
}

@media (max-width: 768px) { 
    .diploma-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajusta para telas menores */
    }
}

.diploma-list li {
    background-color: #444;
    border-radius: 8px;
    overflow: hidden; /* Esconde qualquer conteúdo que ultrapasse a borda arredondada */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Adiciona uma transição suave */
}

.diploma-list li:hover {
    transform: translateY(-5px); /* Move ligeiramente para cima ao passar o mouse */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.7); /* Adiciona uma sombra ao passar o mouse */
}

.diploma-list li a {
    display: block; 
    color: #fcce00;
    text-decoration: none;
    padding: 15px;
}

.diploma-list li img {
    width: 100%;
    height: 200px; /* Defina uma altura fixa */
    object-fit: cover; /* Mantém a proporção e "corta" o excesso */
    margin-bottom: 10px;
    border-radius: 12px;
}

.diploma-list li span {
    display: block;
    text-align: center;
}

a {
    text-decoration: none;
    color: #fcce00; 
    position: relative;
    overflow: hidden; 
}

a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #fcce00; 
    bottom: 0;
    left: 0;
    transition: width 0.3s ease; 
}

a:hover::before {
    width: 100%; 
}

/* Botão "Voltar ao Topo" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; 
    background: #3d3d3d;
    color: #fcce00;
    border: none;
    border-radius: 50%; 
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.8; 
    transition: opacity 0.3s ease; 
}

.back-to-top:hover {
    opacity: 1; 
}

footer {
    text-align: center;
    padding: 10px;
}

p {
    text-align: center;
}

/* Animações */
.animate__animated.animate__bounce {
    --animate-duration: 10s;
}

:root {
    --animate-duration: 800ms;
    --animate-delay: 0.9s;
}