.fundo {
    background-image: url('../images/fundo/graduada.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Camada vermelha escura translúcida */
.sobreposicao {
    background-color: rgba(60, 10, 10, 0.7);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.logo-central {
    width: 120px;
    height: 120px;
    margin: 2em auto 1em;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ff4d4d;
    z-index: 3;
    position: relative;
}

.logo-central img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    animation: brilhoLogo 4s infinite alternate;
}

@keyframes brilhoLogo {
    0% {
        box-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff3333;
    }
    100% {
        box-shadow: 0 0 15px #ff4d4d, 0 0 30px #cc0000;
    }
}

.texto-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.titulo-menor {
    font-size: 2em;
    font-style: italic;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px #ff4d4d;
    position: relative;
    margin-bottom: 0.2em;
}

.titulo-maior {
    font-size: 5em;
    font-style: italic;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px #ff4d4d;
    position: relative;
}

.titulo-maior::before,
.titulo-menor::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    color: #ff4d4d;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.8;
    animation: energia 2s infinite linear;
}

@keyframes energia {
    0% {
        text-shadow:
            0 0 5px #ff4d4d,
            0 0 10px #ff3333,
            0 0 15px #cc0000;
    }
    50% {
        text-shadow:
            0 0 10px #ff3333,
            0 0 20px #ff1a1a,
            0 0 30px #990000;
    }
    100% {
        text-shadow:
            0 0 5px #ff4d4d,
            0 0 10px #ff3333,
            0 0 15px #cc0000;
    }
}

.secao-cursos {
    position: relative;
    background-color: rgba(60, 10, 10, 0.8);
    transform: skewY(-5deg);
    padding: 6em 2em;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    margin-top: 120vh;
}

.curso-card {
    text-decoration: none;
    color: white;
    width: 260px;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform: skewY(5deg);
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
    border: 2px solid transparent;
    transition: transform 0.4s ease;
    padding-bottom: 2.5em;
}

.descricao-curso {
    position: absolute;
    bottom: 1em;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1em;
    font-weight: 500;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 0.4em 0.8em;
    border-radius: 10px;
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease;
}

.curso-card:hover .descricao-curso {
    transform: scale(1.05) skewY(5deg);
}

.curso-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px;
    width: 100%; height: 100%;
    border-radius: 15px;
    background: transparent;
    z-index: 1;
    box-shadow:
        0 0 10px #ff3333,
        0 0 20px #cc0000,
        0 0 30px #990000;
    animation: pulsarBorda 3s infinite ease-in-out;
}

.logo-curso {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 3px solid #ff4d4d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2em auto 0;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.logo-curso img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.logo-curso span {
    color: #ff4d4d;
    font-size: 1.8em;
    font-weight: bold;
    position: absolute;
    z-index: 1;
}

.titulo-curso {
    margin-top: 1em;
    color: transparent;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    font-style: italic;
    text-transform: uppercase;
    -webkit-text-stroke: 1px #ff4d4d;
    position: relative;
}

.titulo-curso::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    color: #ff4d4d;
    z-index: -1;
    filter: blur(4px);
    opacity: 0.7;
    animation: energia 2.5s infinite linear;
}

@keyframes pulsarBorda {
    0%, 100% {
        box-shadow:
            0 0 8px #ff3333,
            0 0 16px #cc0000,
            0 0 24px #990000;
    }
    50% {
        box-shadow:
            0 0 12px #ff4d4d,
            0 0 22px #ff1a1a,
            0 0 30px #cc0000;
    }
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .titulo-menor {
        font-size: 1.5em;
        -webkit-text-stroke: 0.7px #ff4d4d;
    }

    .titulo-maior {
        font-size: 3em;
        -webkit-text-stroke: 1.5px #ff4d4d;
    }

    .secao-cursos {
        transform: none;
        margin-top: 0;
        padding: 4em 1em;
    }

    .curso-card {
        transform: none;
        width: 90%;
        height: 250px;
    }

    .curso-card:hover {
        transform: scale(1.03);
    }

    .logo-curso {
        width: 50px;
        height: 50px;
        font-size: 1.4em;
    }

    .titulo-curso {
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .titulo-menor {
        font-size: 1.2em;
    }

    .titulo-maior {
        font-size: 2.2em;
    }
}
