html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Área principal do conteúdo do artigo */
.artigo-conteudo {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
    overflow-wrap: anywhere;
}

    /* Neutraliza estilos antigos de fontes e cores */
    .artigo-conteudo,
    .artigo-conteudo * {
        font-family: inherit !important;
        color: inherit;
    }

        /* Parágrafos */
        .artigo-conteudo p {
            font-size: 1rem !important;
            line-height: 1.7 !important;
            margin-bottom: 1rem;
            margin-top: 0 !important;
        }

        /* Títulos dentro do artigo */
        .artigo-conteudo h1,
        .artigo-conteudo h2,
        .artigo-conteudo h3,
        .artigo-conteudo h4,
        .artigo-conteudo h5,
        .artigo-conteudo h6 {
            font-family: inherit !important;
            color: #172a55 !important;
            font-weight: 700;
            line-height: 1.3;
            margin-top: 1.8rem;
            margin-bottom: 0.8rem;
        }

        /* Links */
        .artigo-conteudo a {
            color: #F26F35 !important;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        /* Imagens */
        .artigo-conteudo img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
        }

        /* Vídeos e outros conteúdos incorporados */
        .artigo-conteudo iframe,
        .artigo-conteudo video {
            max-width: 100%;
        }

        /* Listas */
        .artigo-conteudo ul,
        .artigo-conteudo ol {
            padding-left: 1.5rem;
            margin-bottom: 1.2rem;
        }

        .artigo-conteudo li {
            margin-bottom: 0.4rem;
        }

        /* Tabelas antigas */
        .artigo-conteudo table {
            max-width: 100%;
            border-collapse: collapse;
            margin: 1.2rem 0;
        }

        .artigo-conteudo th,
        .artigo-conteudo td {
            padding: 0.65rem;
            border: 1px solid #e2e8f0;
        }


/* Área de recomendações */
.recomendacoes-container {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
}

.recomendacoes-viewport {
    overflow: hidden;
    padding: 8px 2px 16px;
}

.recomendacoes-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 12px);
    gap: 24px;
    transition: transform 450ms ease;
    will-change: transform;
}

/* Cartão */
.recomendacao-card {
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 30px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, 0.045);
    transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}

    .recomendacao-card:hover {
        border-color: #d9e3ef;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
        transform: translateY(-3px);
    }

/* Aspa decorativa */
.recomendacao-aspa {
    height: 34px;
    color: #dce5ef;
    font-family: Georgia, serif;
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
}

/* Depoimento */
.recomendacao-texto {
    flex: 1;
    margin: 18px 0 28px;
    color: #475569;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.75;
}

/* Foto e identificação */
.recomendacao-autor {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f2f5;
}

.autor-foto {
    position: relative;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf2f7;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

    .autor-foto img {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.autor-dados {
    min-width: 0;
}

    .autor-dados h4 {
        margin: 0 0 4px;
        color: #172b4d;
        font-size: 14px;
        font-weight: 700;
    }

    .autor-dados p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        line-height: 1.5;
    }

/* Setas e paginação */
.recomendacoes-controles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.recomendacoes-seta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #dce4ed;
    border-radius: 50%;
    background: #fff;
    color: #172b4d;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

    .recomendacoes-seta svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .recomendacoes-seta:not(:disabled):hover {
        background: #f26f35;
        border-color: #f26f35;
        color: #fff;
    }

    .recomendacoes-seta:disabled {
        opacity: 0.35;
        cursor: not-allowed;
    }

.recomendacoes-pagina {
    min-width: 42px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Celular: uma recomendação por vez */
@media (max-width: 767px) {
    .recomendacoes-track {
        grid-auto-columns: 100%;
        gap: 16px;
    }

    .recomendacao-card {
        padding: 24px;
    }

    .recomendacao-texto {
        font-size: 16px;
    }

    #recomendacoes {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .recomendacoes-track,
    .recomendacao-card,
    .recomendacoes-seta {
        transition: none;
    }
}