.content-blog html,
.content-blog body {
    box-sizing: border-box;
}

/* Tipografia */
.content-blog h1 {
    font-size: 28px;
    color: #222;
    margin-bottom: 15px;
}

.content-blog h2 {
    font-size: 22px;
    margin-top: 20px;
    color: #444;
}

.content-blog h3 {
    font-size: 20px;
    margin-top: 15px;
    color: #444;
}

.content-blog p {
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-blog .paragrafo-com-destaque .destaque-animado {
    position: relative;
    display: inline;
    padding: 0 5px;
    line-height: inherit;
    vertical-align: baseline;
    background-image: linear-gradient(90deg, rgba(255, 235, 59, 0.95), rgba(255, 235, 59, 0.95));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: 0 0;
    transition: background-size 1.5s ease-out 0.5s;
}

.content-blog .paragrafo-com-destaque .destaque-animado.ativo {
    background-size: 100% 100%;
}

/* Destaques/Citações */
.content-blog .highlight {
    background-color: #e6f2ff;
    border-left: 5px solid #007bff;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 5px;
    font-style: italic;
    text-align: justify;
    line-height: 1.6;
}

.content-blog ul,
.content-blog ol {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    -moz-text-align-last: left;
}

.content-blog li {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: inherit;
}

/* Container de imagem */
.content-blog .img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    /* necessário para tooltip */
}

.content-blog .img-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.6));
    transition: transform .5s ease;
    will-change: transform;
    object-fit: cover;
}

.content-blog .img-container figcaption {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    line-height: 1.3;
}

.content-blog .img-container:hover img {
    transform: scale(1.05);
}

/* Tooltip para imagens */
.content-blog .tooltip {
    position: absolute;
    bottom: 105%;
    /* acima da imagem */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(34, 34, 34, 0.9);
    color: #fff;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    max-width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    pointer-events: none;
    white-space: normal;
}

.content-blog .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(34, 34, 34, 0.9) transparent transparent transparent;
}

/* Mostrar tooltip ao passar o mouse */
.content-blog .img-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Ajustes para telas pequenas (smartphones) */
@media (max-width: 480px) {
    .content-blog h1 {
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .content-blog h2 {
        font-size: 18px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .content-blog h3 {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 10px;
    }

    .content-blog p {
        font-size: 15px;
        line-height: 1.5;
        text-align: justify;
    }

    .content-blog .img-container {
        margin-bottom: 12px;
    }

    .content-blog .img-container img {
        transform-origin: center center;
    }

    .content-blog .img-container figcaption {
        font-size: 13px;
        margin-top: 6px;
    }

    /* Tooltip adaptado para mobile */
    .content-blog .tooltip {
        bottom: auto;
        top: 105%;
        /* aparece abaixo da imagem */
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        font-size: 14px;
        padding: 8px 12px;
    }

    .content-blog .tooltip::after {
        top: -6px;
        /* seta apontando para cima */
        bottom: auto;
        border-color: transparent transparent rgba(34, 34, 34, 0.9) transparent;
    }
}
