/* ========================================
   CITAÇÕES DE NOTÍCIAS - CSS EXCLUSIVO
   Classes encapsuladas em citacoes-noticias-wrapper
   para evitar conflitos com base.css
   Estilo baseado em tvcamara/index.php
   ======================================== */
/* Container principal - encapsula tudo */
.citacoes-noticias-wrapper {
    padding: 0;
}
/* Header da seção - estilo discreto */
.citacoes-noticias-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
.citacoes-noticias-titulo {
    margin: 0;
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
}
.citacoes-noticias-titulo i {
    color: #6c757d;
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Grupos por tipo */
.citacoes-noticias-grupo {
    margin-bottom: 1.5rem;
}
.citacoes-noticias-grupo:last-child {
    margin-bottom: 0;
}
.citacoes-noticias-grupo-titulo {
    margin: 0 0 0.75rem 0;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
}
.citacoes-noticias-grupo-titulo i {
    margin-right: 0.4rem;
    color: #adb5bd;
    opacity: 0.8;
}
/* Lista de cards */
.citacoes-noticias-lista {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
/* Grid para tipos que usam layout lado a lado */
.citacoes-noticias-lista-grid {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}
.citacoes-noticias-lista-grid > div {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
/* Ajustar cards dentro do grid para ocupar 100% da coluna */
.citacoes-noticias-lista-grid .citacoes-noticias-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.citacoes-noticias-lista-grid .citacoes-noticias-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Cards base - estilo similar ao tvcamara/index.php */
.citacoes-noticias-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.citacoes-noticias-card:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.citacoes-noticias-card-body {
    padding: 0.875rem;
}
/* Card Vereador */
.citacoes-noticias-card-vereador .citacoes-noticias-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.citacoes-noticias-card-foto {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}
/* Aplicar estilos da sapl-perfil-foto-principal para padronizar imagens (SAPL e banco) */
.citacoes-noticias-card-vereador .sapl-perfil-foto-principal,
.citacoes-noticias-card-orador .sapl-perfil-foto-principal {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important; /* Foca no rosto, evita cortar cabeça */
    aspect-ratio: 1 / 1 !important; /* Garante formato quadrado */
    border-radius: 50% !important;
    border: 2px solid #e9ecef !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background-color: #f8f9fa !important;
    margin-bottom: 0 !important; /* Remove margin da classe original */
    display: block !important;
}
/* Fallback para imagens sem a classe sapl-perfil-foto-principal */
.citacoes-noticias-card-vereador .citacoes-noticias-img:not(.sapl-perfil-foto-principal),
.citacoes-noticias-card-orador .citacoes-noticias-img:not(.sapl-perfil-foto-principal) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.citacoes-noticias-card-info {
    flex: 1;
    min-width: 0;
}
.citacoes-noticias-card-titulo {
    margin: 0 0 0.4rem 0;
    font-weight: 500;
    line-height: 1.4;
}
.citacoes-noticias-card-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}
.citacoes-noticias-card-link:hover {
    color: #17a2b8;
    text-decoration: none;
}
.citacoes-noticias-card-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
/* Card Matéria */
.citacoes-noticias-card-materia .citacoes-noticias-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}
.citacoes-noticias-card-materia .citacoes-noticias-card-titulo {
    margin: 0;
    flex: 1;
}
.citacoes-noticias-card-status {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 4px;
    white-space: nowrap;
}
.citacoes-noticias-card-texto {
    margin: 0 0 0.6rem 0;
    line-height: 1.5;
    color: #495057;
}
/* Corpo da matéria (estilo pesquisar-materia.php) */
.citacoes-noticias-materia-corpo {
    margin-top: 0.75rem;
}
.citacoes-noticias-materia-corpo .row {
    margin-left: 0;
    margin-right: 0;
}
/* Coluna Esquerda - Campos principais */
.citacoes-noticias-materia-campo {
    margin-bottom: 1rem;
}
.citacoes-noticias-materia-campo:last-child {
    margin-bottom: 0;
}
.citacoes-noticias-materia-campo label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}
.citacoes-noticias-materia-campo label i {
    color: #007bff;
    margin-right: 0.4rem;
    font-size: 0.9rem;
}
.citacoes-noticias-materia-campo p {
    margin: 0;
    line-height: 1.6;
    color: #212529;
}
.citacoes-noticias-materia-campo p.text-muted {
    color: #6c757d;
}
/* Coluna Direita - Box de informações */
.citacoes-noticias-materia-info-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 2px;
    padding: 1rem;
}
.citacoes-noticias-materia-info-box h6 {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}
.citacoes-noticias-materia-info-box h6 i {
    color: #007bff;
}
.citacoes-noticias-info-item {
    margin-bottom: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e9ecef;
}
.citacoes-noticias-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.citacoes-noticias-info-item small {
    display: block;
    color: #6c757d;
    margin-bottom: 0.25rem;
}
.citacoes-noticias-info-item strong {
    display: block;
    font-size: 0.95rem;
    color: #212529;
    font-weight: 500;
}
/* Card Sessão */
.citacoes-noticias-card-sessao .citacoes-noticias-card-header {
    margin-bottom: 0.5rem;
}
.citacoes-noticias-card-data {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.citacoes-noticias-card-data i {
    margin-right: 0.3rem;
}
.citacoes-noticias-card-sessao .citacoes-noticias-card-titulo {
    margin: 0 0 0.75rem 0;
}
/* Card Orador */
.citacoes-noticias-card-orador .citacoes-noticias-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.citacoes-noticias-card-orador .citacoes-noticias-card-foto {
    width: 50px;
    height: 50px;
}
/* Aplicar estilos da sapl-perfil-foto-principal também no orador */
.citacoes-noticias-card-orador .sapl-perfil-foto-principal {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important; /* Foca no rosto, evita cortar cabeça */
    aspect-ratio: 1 / 1 !important; /* Garante formato quadrado */
    border-radius: 50% !important;
    border: 2px solid #e9ecef !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    background-color: #f8f9fa !important;
    margin-bottom: 0 !important; /* Remove margin da classe original */
    display: block !important;
}
/* Fallback para imagens sem a classe sapl-perfil-foto-principal */
.citacoes-noticias-card-orador .citacoes-noticias-img:not(.sapl-perfil-foto-principal) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.citacoes-noticias-card-subtitulo {
    margin: 0.25rem 0 0 0;
    color: #6c757d;
    line-height: 1.4;
}
.citacoes-noticias-card-subtitulo i {
    margin-right: 0.3rem;
    color: #adb5bd;
}
.citacoes-noticias-card-data-inline {
    color: #adb5bd;
}
.citacoes-noticias-card-orador .citacoes-noticias-card-texto {
    line-height: 1.6;
    color: #495057;
    font-style: italic;
    padding-left: 0.5rem;
    border-left: 3px solid #e9ecef;
}
/* Card Transmissão */
.citacoes-noticias-card-transmissao .citacoes-noticias-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.citacoes-noticias-card-transmissao .citacoes-noticias-card-titulo {
    margin: 0;
    flex: 1;
}
.citacoes-noticias-card-transmissao .badge {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
}
.citacoes-noticias-card-descricao {
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.citacoes-noticias-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.citacoes-noticias-card-meta i {
    color: #6c757d;
}

/* Card Página */
.citacoes-noticias-card-pagina {
    border-left: 3px solid #28a745;
}
.citacoes-noticias-card-pagina .citacoes-noticias-card-header {
    margin-bottom: 0.75rem;
}
.citacoes-noticias-card-pagina .citacoes-noticias-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.citacoes-noticias-card-pagina .citacoes-noticias-card-subtitle {
    color: #6c757d;
    line-height: 1.4;
}

/* Card Manifestação de Interesse */
.citacoes-noticias-card-manifestacao-interesse {
    border-left: 3px solid #ffc107;
}
.citacoes-noticias-manifestacao-info {
    font-size: 0.95rem;
    line-height: 1.6;
}
.citacoes-noticias-manifestacao-info strong {
    color: #495057;
    margin-right: 0.5rem;
}

/* Card Licitação */
.citacoes-noticias-card-licitacao {
    border-left: 3px solid #007bff;
}
.citacoes-noticias-card-licitacao .citacoes-noticias-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}
.citacoes-noticias-card-licitacao .citacoes-noticias-card-titulo {
    margin: 0;
    flex: 1;
}
.citacoes-noticias-card-licitacao .badge {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
}
.citacoes-noticias-licitacao-info {
    line-height: 1.6;
}
.citacoes-noticias-licitacao-info strong {
    color: #495057;
    margin-right: 0.5rem;
}
.citacoes-noticias-licitacao-info a {
    display: block;
    margin-top: 0.25rem;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}
.citacoes-noticias-licitacao-info a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}
/* Footer dos cards */
.citacoes-noticias-card-footer {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #f1f3f5;
}
.citacoes-noticias-card-link-more {
    display: inline-flex;
    align-items: center;
    color: #17a2b8;
    text-decoration: none;
    transition: all 0.2s ease;
}
.citacoes-noticias-card-link-more:hover {
    color: #138496;
    text-decoration: none;
}
.citacoes-noticias-card-link-more i {
    transition: transform 0.2s ease;
}
.citacoes-noticias-card-link-more:hover i {
    transform: translateX(2px);
}
/* Ajustes para integração com producao.php */
.citacoes-noticias-wrapper .card {
    border: none;
    box-shadow: none;
}
.citacoes-noticias-wrapper .card-body {
    padding: 0;
}
.citacoes-noticias-sessao-resumo {
    font-size: 0.95rem;
}
/* Responsividade */
@media (max-width: 768px) {
    .citacoes-noticias-wrapper {
        margin: 1.25rem 0;
    }    
    .citacoes-noticias-header {
        margin-bottom: 1rem;
    }   
    .citacoes-noticias-grupo {
        margin-bottom: 1.25rem;
    }   
    .citacoes-noticias-card-body {
        padding: 0.75rem;
    }
    .citacoes-noticias-card-vereador .citacoes-noticias-card-content,
    .citacoes-noticias-card-orador .citacoes-noticias-card-content {
        gap: 0.65rem;
    }
    .citacoes-noticias-card-foto {
        width: 50px;
        height: 50px;
    }
    .citacoes-noticias-card-orador .citacoes-noticias-card-foto {
        width: 45px;
        height: 45px;
    }
    .citacoes-noticias-card-titulo {
        font-size: 0.9rem;
    }
    .citacoes-noticias-card-texto {
        font-size: 0.8rem;
    }
    .citacoes-noticias-card-link-more {
        font-size: 0.75rem;
    }
    .citacoes-noticias-materia-corpo .row {
        margin-left: 0;
        margin-right: 0;
    }
    .citacoes-noticias-materia-corpo .col-md-8,
    .citacoes-noticias-materia-corpo .col-md-4 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    .citacoes-noticias-materia-info-box {
        margin-top: 1rem;
    }
}
/* ========================================
   CARDS DE VÍNCULO SAPL - UX EXCEPCIONAL
   Cards totalmente clicáveis com design moderno
   ======================================== */
.sapl-vinculo-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}
.sapl-vinculo-card:hover {
    border-color: #17a2b8;
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.2);
    transform: translateY(-4px);
}
.sapl-vinculo-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}
.sapl-vinculo-card-wrapper {
    position: relative;
}
/* Ícone e indicador de clicável */
.sapl-vinculo-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}
.sapl-vinculo-card:hover .sapl-vinculo-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.4);
}
/* Indicador de clicável (aparece no hover) */
.sapl-vinculo-card-click-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(23, 162, 184, 0.95);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sapl-vinculo-card:hover .sapl-vinculo-card-click-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(-10px);
}
.sapl-vinculo-card-click-indicator i {
    font-size: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}
/* Header do card */
.sapl-vinculo-card-header {
    padding: .5rem 1.5rem 1rem 1.5rem;
    border-bottom: 2px solid #f1f3f5;
    position: relative;
}
.sapl-vinculo-card-titulo {
    margin: 0;
    font-size: 1.5rem;
    color: #212529;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.sapl-vinculo-card-titulo-link {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sapl-vinculo-card-titulo-link:hover {
    color: #17a2b8;
    text-decoration: none;
}
.sapl-vinculo-card-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.2);
}
.sapl-vinculo-card-status {
    display: inline-block;
    margin-left: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #28a745;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
}
/* Corpo do card */
.sapl-vinculo-card-body {
    padding: .5rem 1.5rem .5rem 1.5rem;
}
.sapl-vinculo-card-ementa,
.sapl-vinculo-card-assunto {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
}
.sapl-vinculo-card-ementa p,
.sapl-vinculo-card-assunto p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-height: none;
}
/* Grid de informações */
.sapl-vinculo-card-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.sapl-vinculo-card-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #17a2b8;
    transition: all 0.2s ease;
}
.sapl-vinculo-card-info-item i {
    color: #17a2b8;
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.sapl-vinculo-card-info-item .label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 0.5rem;
    min-width: 80px;
}
.sapl-vinculo-card-info-item .value {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
    flex: 1;
}

/* Footer com CTA destacado */
.sapl-vinculo-card-footer {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sapl-vinculo-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
    flex: 1;
    text-decoration: none;
    cursor: pointer;
}
.sapl-vinculo-card-cta:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    transform: translateX(4px);
    color: #ffffff;
    text-decoration: none;
}
.sapl-vinculo-card-cta i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.sapl-vinculo-card:hover .sapl-vinculo-card-cta i {
    transform: translateX(4px);
}
/* Botão de nova aba */
.sapl-vinculo-card-newtab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.875rem;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
    flex-shrink: 0;
    align-self: stretch;
}
.sapl-vinculo-card-newtab:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    transform: scale(1.05);
    color: #ffffff;
    text-decoration: none;
}
.sapl-vinculo-card-newtab i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.sapl-vinculo-card-newtab:hover i {
    transform: rotate(45deg);
}
/* Variações por tipo */
.sapl-vinculo-card-norma {
    border-left: 2px solid #28a745;
}
.sapl-vinculo-card-norma .sapl-vinculo-card-icon {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.sapl-vinculo-card-norma:hover {
    border-color: #28a745;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}
.sapl-vinculo-card-norma .sapl-vinculo-card-badge {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
}
.sapl-vinculo-card-norma .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}
.sapl-vinculo-card-norma:hover .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.sapl-vinculo-card-norma .sapl-vinculo-card-info-item {
    border-left-color: #28a745;
}
.sapl-vinculo-card-norma .sapl-vinculo-card-info-item i {
    color: #28a745;
}
.sapl-vinculo-card-docadm {
    border-left: 2px solid #007bff;
}
.sapl-vinculo-card-docadm .sapl-vinculo-card-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.sapl-vinculo-card-docadm:hover {
    border-color: #007bff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
}
.sapl-vinculo-card-docadm .sapl-vinculo-card-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}
.sapl-vinculo-card-docadm .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}
.sapl-vinculo-card-docadm:hover .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}
.sapl-vinculo-card-docadm .sapl-vinculo-card-info-item {
    border-left-color: #007bff;
}
.sapl-vinculo-card-docadm .sapl-vinculo-card-info-item i {
    color: #007bff;
}
.sapl-vinculo-card-materia {
    border-left: 2px solid #17a2b8;
}
.sapl-vinculo-card-materia .sapl-vinculo-card-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}
.sapl-vinculo-card-materia:hover {
    border-color: #17a2b8;
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.2);
}
.sapl-vinculo-card-materia .sapl-vinculo-card-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.2);
}
.sapl-vinculo-card-materia .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
}
.sapl-vinculo-card-materia:hover .sapl-vinculo-card-cta {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}
.sapl-vinculo-card-materia .sapl-vinculo-card-info-item {
    border-left-color: #17a2b8;
}
.sapl-vinculo-card-materia .sapl-vinculo-card-info-item i {
    color: #17a2b8;
}
/* Responsividade */
@media (max-width: 768px) {
    .sapl-vinculo-card {
        margin-bottom: 1.5rem;
    }  
    .sapl-vinculo-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        top: 1rem;
        right: 1rem;
    } 
    .sapl-vinculo-card-header {
        padding: .5rem 1.5rem 1rem 1.5rem;
        padding-right: 4rem;
    } 
    .sapl-vinculo-card-titulo {
        font-size: 1.25rem;
    }
    .sapl-vinculo-card-body {
        padding: .5rem 1.5rem .5rem 1.5rem;
    }
    .sapl-vinculo-card-info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .sapl-vinculo-card-info-item {
        padding: 0.625rem;
    }
    .sapl-vinculo-card-info-item .label {
        min-width: 70px;
        font-size: 0.75rem;
    }
    .sapl-vinculo-card-info-item .value {
        font-size: 0.85rem;
    }
    .sapl-vinculo-card-footer {
        padding: 1rem 1.25rem;
    }
    .sapl-vinculo-card-cta {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    .sapl-vinculo-card-click-indicator {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}
/* ========================================
   ESTILOS PARA CARDS DE PÁGINAS
   Versão mais visual e com campos grandes
   ======================================== */
/* Bloco de ementa/assunto para páginas */
.sapl-vinculo-card-ementa-pagina,
.sapl-vinculo-card-assunto-pagina {
    margin-bottom: 1.5rem;
    padding: .5rem 1rem .5rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 2px solid #17a2b8;
}
.sapl-vinculo-card-ementa-pagina h5,
.sapl-vinculo-card-assunto-pagina h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
}
.sapl-vinculo-card-ementa-pagina p,
.sapl-vinculo-card-assunto-pagina p {
    margin: 0 0 1rem 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.6;
    color: #212529;
}
/* Container de botões integrado ao bloco */
.sapl-vinculo-card-botoes-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
/* Botões de Texto Integral e Compilado */
.sapl-vinculo-card-btn-texto-integral,
.sapl-vinculo-card-btn-texto-compilado {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.sapl-vinculo-card-btn-texto-integral {
    background: #dc3545;
}
.sapl-vinculo-card-btn-texto-integral:hover {
    background: #c82333;
    color: #ffffff;
    text-decoration: none;
}
.sapl-vinculo-card-btn-texto-compilado {
    background: #17a2b8;
}
.sapl-vinculo-card-btn-texto-compilado:hover {
    background: #138496;
    color: #ffffff;
    text-decoration: none;
}
/* Bloco de Texto Integral separado (quando não há ementa) */
.sapl-vinculo-card-texto-integral-wrapper {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}
.sapl-vinculo-card-texto-integral-wrapper-flex {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
/* Grid de informações */
.sapl-vinculo-card-info-grid-pagina {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
/* Cards de informação individuais */
.sapl-vinculo-card-info-item-pagina {
    padding: .5rem 1rem .5rem 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.sapl-vinculo-card-info-item-pagina-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sapl-vinculo-card-info-item-pagina-value {
    font-size: 1.1rem;
    color: #212529;
}
/* Variações de cor para borda esquerda dos cards de informação */
.sapl-vinculo-card-info-item-pagina-verde {
    border-left: 2px solid #28a745;
}
.sapl-vinculo-card-info-item-pagina-azul {
    border-left: 2px solid #17a2b8;
}
.sapl-vinculo-card-info-item-pagina-azul-forte {
    border-left: 2px solid #007bff;
}
.sapl-vinculo-card-info-item-pagina-amarelo {
    border-left: 2px solid #ffc107;
}
.sapl-vinculo-card-info-item-pagina-roxo {
    border-left: 2px solid #6f42c1;
}
.sapl-vinculo-card-info-item-pagina-vermelho {
    border-left: 2px solid #dc3545;
}
/* Variações de cor para bloco de ementa/assunto */
.sapl-vinculo-card-ementa-pagina-verde {
    border-left-color: #28a745;
}
.sapl-vinculo-card-texto-integral-wrapper-verde {
    border-left-color: #28a745;
}
/* Responsividade para cards de páginas */
@media (max-width: 768px) {
    .sapl-vinculo-card-info-grid-pagina {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sapl-vinculo-card-ementa-pagina,
    .sapl-vinculo-card-assunto-pagina,
    .sapl-vinculo-card-texto-integral-wrapper {
        padding: .5rem 1rem .5rem 1rem;
    }
    .sapl-vinculo-card-botoes-container {
        gap: 0.5rem;
    }
    .sapl-vinculo-card-btn-texto-integral,
    .sapl-vinculo-card-btn-texto-compilado {
        font-size: 0.85rem;
        padding: 0.45rem 0.875rem;
    }
}
/* ========================================
   ITENS EM DESTAQUE - CSS ENCAPSULADO
   Layout de 3 linhas: Título, Subtítulo, Ementa
   ======================================== */
.itens-destaque-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.itens-destaque-item {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 25px 20px;
    transition: background-color 0.2s ease;
}
.itens-destaque-item:last-child {
    border-bottom: none;
}
.itens-destaque-item:hover {
    background-color: #e9ecef;
}
.itens-destaque-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.itens-destaque-item-link:hover {
    text-decoration: none;
}
/* Linha 1: Título */
.itens-destaque-item-titulo {
    color: #2c5f7c;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
/* Linha 2: Subtítulo (norma/materia/docadm vindo do SAPL) */
.itens-destaque-item-subtitulo {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    line-height: 1.4;
}
/* Linha 3: Ementa da norma/materia/docadm */
.itens-destaque-item-ementa {
    color: #2c5f7c;
    margin: 0;
    word-wrap: break-word;
}
/* Responsividade */
@media (max-width: 768px) {
    .itens-destaque-item {
        padding: 20px 15px;
    }
    .itens-destaque-item-titulo {
        font-size: 1.3rem;
    }
    .itens-destaque-item-ementa {
        font-size: 1rem;
    }
}