#books {
    background-image: url('../../images/backgrounds/livros.webp');
    background-size: cover;
    background-position: center;
    min-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    padding: 0 10%;
}

.books-content {
    max-width: 800px;
    text-align: left;
}

.books-content h2 {
    font-size: 48px;
    font-weight: bold;
}

.books-content p {
    font-size: 20px;
    margin-top: 20px;
}

#books .col-md-4 a {
    text-decoration: none;
}

#books .cta-card {
    background-color: rgba(255, 255, 255, 0);
    /* Tornar o fundo transparente */
    border: 2px solid #dc3545;
    /* Borda com a cor original */
    color: #fff;
    /* Cor do texto */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Alinha o conteúdo verticalmente ao centro */
    min-height: 280px;
    margin-top: 20px;
}

#books .call-to-action .col-md-4:nth-child(2) .cta-card {
    justify-content: center;
    /* Centraliza o conteúdo do segundo card */
}

#books .cta-card h3 {
    font-size: 16px;
    /* Tamanho menor para o texto do título */
    margin-bottom: 10px;
}

#books .cta-card h4 {
    position: relative;
    display: inline-block;
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    z-index: 1;

}

.cta-card strong {
    background: linear-gradient(transparent 70%, #ff3d3d 70%);
    /* Cria um efeito de marca-texto vermelho */
}


#books .cta-card p {
    font-size: 14px;
    /* Tamanho menor para o texto do parágrafo */
    margin-bottom: 20px;
}


#books .cta-card img {
    margin-bottom: 20px;
    width: 150px;
    display: block;
    /* Garante que o img se comporte como um bloco */
    margin-left: auto;
    /* Centraliza horizontalmente */
    margin-right: auto;
    /* Centraliza horizontalmente */
    border: none;
    /* Remove qualquer borda herdada */
    box-shadow: none;
    /* Remove qualquer sombra que possa estar sendo aplicada */
}


#books .cta-card:hover {
    background-color: #dc3545;
    /* Adiciona a cor de fundo ao passar o mouse */
    color: #fff;
    /* Muda a cor do texto para branco */
}

#books .cta-card:hover .cta-btn {
    background-color: #fff;
    color: #dc3545;
}

#books .cta-btn {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

/* Books2 */

#books2 {
    background-image: url('../../images/backgrounds/livros2.webp');
    background-size: cover;
    background-position: right bottom;
    min-height: 1080px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #fff;
    padding: 0 10%;
}

#books2 h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: left;
    /* Alinhamento à esquerda */
    color: white;
    /* Ajuste conforme necessário para combinar com o tema */
}


#books2 .flip-card {
    background-color: transparent;
    width: 300px;
    height: 350px;
    perspective: 1000px;
    margin: 0 auto;
    /* Garante que o card esteja centralizado */
}

#books2 .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

#books2 .flip-card-front,
#books2 .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

#books2 .flip-card-front {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

#books2 .flip-card-front h4 {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

#books2 .flip-card-front p {
    font-size: 14px;
    margin: 5px 0;
}

#books2 .flip-card-back {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    transform: rotateY(180deg);
}

#books2 .flip-card-back p {
    font-size: 16px;
    text-align: justify;
}

#books2 .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}



/* Spoiler */
#books2 .cloud {
    background: #ffffff;
    padding: 40px;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    margin: 20px 0;
    color: #1c4c80;
    max-width: 800px;
    /* Aumenta a largura máxima */
    width: 100%;
    /* Faz com que ocupe toda a largura disponível */
}

#books2 .spoiler .cloud p a {
    font-size: 25px;
}

#books2 .spoiler .cloud p a:hover {
    color: #1c4c80;
    text-decoration: none;
}


#books2 .cloud:before,
#books2 .cloud:after {
    content: '';
    position: absolute;
    background: #ffffff;
    width: 60px;
    /* Aumenta o tamanho dos círculos */
    height: 60px;
    /* Aumenta o tamanho dos círculos */
    border-radius: 50%;
}

#books2 .cloud:before {
    top: -30px;
    left: 40px;
    box-shadow: -15px 10px 0px rgba(0, 0, 0, 0.1);
}

#books2 .cloud:after {
    top: -30px;
    right: 40px;
    box-shadow: 15px 10px 0px rgba(0, 0, 0, 0.1);
}

#books2 .spoiler {
    background-color: transparent;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    color: white;
}

#books2 .spoiler h4 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #dc3545;
}

#books2 .spoiler p {
    font-size: 18px;
    max-width: none;
}

#books2 .cta-link {
    color: #ffc107;
    font-weight: bold;
    text-decoration: none;
}

#books2 .cta-link:hover {
    color: #ffffff;
    text-decoration: underline;
}