/**
 * Concursos e Oportunidades - CSS
 * Estude Grátis
 * Estilo jornalístico premium com suporte a Google News
 */

/* ============================================================
   HERO JORNALÍSTICO
   ============================================================ */
.concursos-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f3460 100%);
    padding: 2.25rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.concursos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.concursos-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6, #10b981);
}

.concursos-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.concursos-hero-text {
    flex: 1;
    min-width: 0;
}

.concursos-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s ease-in-out infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.concursos-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title-highlight {
    color: #f59e0b;
    display: block;
}

.concursos-hero-subtitle {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 520px;
}

/* Stats Bar */
.concursos-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 220px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.1rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove borda direita na 2ª coluna */
.stat-item:nth-child(even) {
    border-right: none;
}

/* Remove borda inferior na última linha (2 últimos itens) */
.stat-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.3rem;
    text-align: center;
    line-height: 1.3;
}

/* Divisores substituídos pelas bordas do grid — ocultar elemento vazio */
.stat-divider {
    display: none;
}

/* ============================================================
   FILTROS
   ============================================================ */
.concursos-filtros-section {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
}

.concursos-filtros-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Search Bar */
.concursos-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    transition: border-color 0.2s;
}

.concursos-search-bar:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.concursos-search-icon {
    color: #94a3b8;
    font-size: 1rem;
    flex-shrink: 0;
}

.concursos-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #1e293b;
    background: transparent;
}

.concursos-search-input::placeholder {
    color: #94a3b8;
}

.concursos-search-count {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Filtros Row */
.concursos-filtros-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filtro-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filtro-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filtro-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.filtro-pill:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.filtro-pill.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

/* Filtro Estados */
.filtro-estados-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filtro-estados-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.estado-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s;
    letter-spacing: 0.02em;
}

.estado-pill:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.concurso-item--encerrado {
    opacity: 0.72;
}

.concurso-item--encerrado:hover {
    opacity: 1;
}

.estado-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 4px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 2px;
}

.estado-pill.active .estado-pill-count {
    background: rgba(255, 255, 255, 0.25);
}

.estado-pill.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}


/* ============================================================
   SEÇÃO EDITORIAL (Linha editorial)
   ============================================================ */
.section-header-jornalistico {
    margin-bottom: 1.5rem;
}

.section-linha-editorial {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.linha-editorial-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e40af;
    white-space: nowrap;
}

.linha-editorial-bar {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, transparent);
}

.lista-total-info {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
}

/* Botão de assinatura RSS */
.rss-subscribe-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ea580c;
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.rss-subscribe-link:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #fff;
}

.rss-subscribe-text {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   DESTAQUES
   ============================================================ */
.concursos-destaques-section {
    padding: 2.5rem 0;
    background: #fff;
}

.destaques-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.destaque-principal {
    grid-row: 1 / 3;
}

.destaque-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.destaque-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.destaque-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.destaque-imagem {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f3460);
}

.destaque-principal .destaque-imagem {
    height: 280px;
}

.destaque-secundario .destaque-imagem {
    height: 160px;
}

.destaque-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.destaque-card:hover .destaque-imagem img {
    transform: scale(1.04);
}

.destaque-imagem-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 3rem;
}

.placeholder-uf {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.destaque-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.destaque-chapeu {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ef4444;
}

.destaque-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
}

.destaque-principal .destaque-titulo {
    font-size: 1.3rem;
}

.destaque-resumo {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.destaque-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.destaque-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #64748b;
}

.destaque-meta .meta-vagas {
    color: #1e40af;
    font-weight: 600;
}

.destaque-meta .meta-salario {
    color: #059669;
    font-weight: 600;
}

.destaque-meta .meta-prazo {
    color: #dc2626;
}

.destaque-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

/* ============================================================
   BADGES DE STATUS
   ============================================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.badge-status--inscricoes_abertas {
    background: #dcfce7;
    color: #166534;
}

.badge-status--inscricoes_encerradas {
    background: #fee2e2;
    color: #991b1b;
}

.badge-status--previsto {
    background: #fef3c7;
    color: #92400e;
}

.badge-status--suspenso {
    background: #f3f4f6;
    color: #374151;
}

.badge-status--homologado {
    background: #ede9fe;
    color: #5b21b6;
}

.badge-estado {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    letter-spacing: 0.05em;
}

.badge-nacional {
    background: #dbeafe;
    color: #1e40af;
}

.badge-nivel {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f0fdf4;
    color: #166534;
}

/* ============================================================
   LISTA PRINCIPAL + SIDEBAR
   ============================================================ */
.concursos-lista-section {
    padding: 2.5rem 0;
    background: #f8fafc;
}

.concursos-lista-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.concursos-lista-main {
    min-width: 0;
}

/* ============================================================
   ITEM DE CONCURSO (lista)
   ============================================================ */
.concursos-lista {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.concurso-item {
    background: #fff;
    transition: background 0.15s;
}

.concurso-item:hover {
    background: #f8fafc;
}

.concurso-item--destaque {
    background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
    border-left: 3px solid #f59e0b;
}

.concurso-item-link {
    display: flex;
    align-items: stretch;
    gap: 0;
    text-decoration: none;
    color: inherit;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

.concurso-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.concurso-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.concurso-chapeu {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ef4444;
}

.concurso-item-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.concurso-item-titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s;
}

.concurso-item:hover .concurso-item-titulo {
    color: #1e40af;
}

.concurso-item-resumo {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.concurso-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.concurso-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: #64748b;
}

.concurso-item-meta .meta-orgao {
    color: #374151;
    font-weight: 500;
}

.concurso-item-meta .meta-vagas {
    color: #1e40af;
    font-weight: 600;
}

.concurso-item-meta .meta-salario {
    color: #059669;
    font-weight: 600;
}

.concurso-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.25rem;
}

.concurso-item-datas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.concurso-item-datas time,
.concurso-item-datas .prazo-inscricao {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.prazo-inscricao {
    color: #64748b !important;
}

.prazo-urgente {
    color: #dc2626 !important;
    font-weight: 600;
}

.urgente-badge {
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 100px;
    margin-left: 0.25rem;
}

.concurso-ler-mais {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e40af;
    white-space: nowrap;
    transition: gap 0.2s;
}

.concurso-item:hover .concurso-ler-mais {
    gap: 0.6rem;
}

/* Thumbnail */
.concurso-item-thumb {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1e293b, #0f3460);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.concurso-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.concurso-item-thumb--placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.75rem;
}

.concurso-item-thumb--placeholder span {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.concursos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.sidebar-widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.sidebar-widget-title i {
    color: #1e40af;
}

/* Estados sidebar */
.sidebar-estados-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-estado-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.sidebar-estado-item:hover {
    background: #eff6ff;
    color: #1e40af;
}

.sidebar-estado-item.active {
    background: #1e40af;
    color: #fff;
}

.sidebar-estado-nome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-uf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
}

.sidebar-estado-item.active .sidebar-uf-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar-estado-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 100px;
}

.sidebar-estado-item.active .sidebar-estado-count {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* CTA Widget */
.sidebar-widget--cta {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border-color: transparent;
    text-align: center;
}

.sidebar-cta-icon {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.sidebar-cta-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sidebar-cta-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sidebar-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.sidebar-cta-btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Newsletter Widget */
.sidebar-widget--newsletter {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-color: transparent;
}

.sidebar-widget--newsletter .sidebar-widget-title {
    color: #f8fafc;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar-widget--newsletter .sidebar-widget-title i {
    color: #f59e0b;
}

.sidebar-newsletter-text {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.sidebar-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-newsletter-input {
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-newsletter-input::placeholder {
    color: #64748b;
}

.sidebar-newsletter-input:focus {
    border-color: #3b82f6;
}

.sidebar-newsletter-btn {
    padding: 0.65rem;
    border-radius: 8px;
    background: #f59e0b;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.sidebar-newsletter-btn:hover {
    background: #d97706;
}

/* ============================================================
   PÁGINA DE DETALHE DO CONCURSO
   ============================================================ */
.concurso-detalhe-layout {
    padding: 2rem 0 3rem;
    background: #f8fafc;
}

.concurso-detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.concurso-detalhe-main {
    min-width: 0;
}

/* Header do Artigo */
.artigo-header {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.artigo-chapeu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.chapeu-linha {
    width: 30px;
    height: 3px;
    background: #ef4444;
    border-radius: 2px;
    flex-shrink: 0;
}

.chapeu-texto {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ef4444;
}

.artigo-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.artigo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.artigo-status--aberto {
    background: #dcfce7;
    color: #166534;
}

.artigo-status--encerrado {
    background: #fee2e2;
    color: #991b1b;
}

.artigo-status--previsto {
    background: #fef3c7;
    color: #92400e;
}

.artigo-status--suspenso {
    background: #f3f4f6;
    color: #374151;
}

.artigo-status--homologado {
    background: #ede9fe;
    color: #5b21b6;
}

.artigo-prazo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.artigo-prazo-badge.prazo-urgente {
    background: #fee2e2;
    color: #dc2626;
    animation: pulse-urgente 2s ease-in-out infinite;
}

@keyframes pulse-urgente {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.artigo-titulo {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.artigo-subtitulo {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.65;
    margin: 0 0 1.25rem;
    font-weight: 400;
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
}

/* Meta bar */
.artigo-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.artigo-autor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Link wrapper do avatar (foto real) */
.autor-avatar-link {
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.autor-avatar-link:hover {
    border-color: #3b82f6;
    transform: scale(1.06);
}

.autor-avatar-img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Fallback ícone (sem foto) */
.autor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.autor-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* Nome do autor como link clicável → /redacao */
.autor-nome-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s;
}

.autor-nome-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.autor-nome {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.artigo-data {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Share buttons */
.artigo-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-label {
    font-size: 0.78rem;
    color: #94a3b8;
    white-space: nowrap;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.share-fb {
    background: #1877f2;
    color: #fff;
}

.share-tw {
    background: #1da1f2;
    color: #fff;
}

.share-wa {
    background: #25d366;
    color: #fff;
}

.share-copy {
    background: #6b7280;
    color: #fff;
}

/* Imagem de capa */
.artigo-imagem-capa {
    margin: 0 0 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.artigo-imagem-capa img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: cover;
}

.artigo-imagem-capa figcaption {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    color: #94a3b8;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   FICHA TÉCNICA
   ============================================================ */
.concurso-ficha-tecnica {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.ficha-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.ficha-titulo i {
    color: #1e40af;
}

.ficha-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ficha-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.ficha-item--destaque {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-color: #bfdbfe;
}

.ficha-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ficha-label i {
    color: #1e40af;
}

.ficha-valor {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.ficha-valor--grande {
    font-size: 1.15rem;
    font-weight: 800;
}

.ficha-valor--salario {
    color: #059669;
}

/* Datas */
.ficha-datas {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
    margin-bottom: 1.5rem;
}

.ficha-datas-titulo {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ficha-datas-titulo i {
    color: #1e40af;
}

.ficha-datas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.ficha-data-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.ficha-data-urgente {
    background: #fff5f5;
    border-color: #fca5a5;
}

.ficha-data-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.ficha-data-valor {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Botões de ação */
.ficha-acoes {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.25rem;
}

.btn-inscricao {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-inscricao:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
    color: #fff;
}

.btn-edital {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    background: #fff;
    color: #1e40af;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #1e40af;
    transition: all 0.2s;
}

.btn-edital:hover {
    background: #1e40af;
    color: #fff;
}

/* ============================================================
   CONTEÚDO DO ARTIGO
   ============================================================ */
.artigo-conteudo {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.artigo-conteudo h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.artigo-conteudo h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.25rem 0 0.5rem;
}

.artigo-conteudo p {
    margin-bottom: 1rem;
}

.artigo-conteudo ul,
.artigo-conteudo ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.artigo-conteudo li {
    margin-bottom: 0.4rem;
}

.artigo-conteudo strong {
    color: #1e293b;
}

.artigo-conteudo a {
    color: #1e40af;
    text-decoration: underline;
}

.artigo-conteudo table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.artigo-conteudo th {
    background: #f1f5f9;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border: 1px solid #e2e8f0;
}

.artigo-conteudo td {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.artigo-conteudo tr:nth-child(even) td {
    background: #f8fafc;
}

/* Fonte */
.artigo-fonte {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.artigo-fonte a {
    color: #1e40af;
}

/* Tags */
.artigo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.artigo-tag {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}

/* Share Final */
.artigo-share-final {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.share-final-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.share-final-btns {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-final-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-final-btn:hover {
    opacity: 0.85;
}

.share-final-btn.share-fb {
    background: #1877f2;
    color: #fff;
}

.share-final-btn.share-wa {
    background: #25d366;
    color: #fff;
}

.share-final-btn.share-tw {
    background: #1da1f2;
    color: #fff;
}

/* ============================================================
   SIDEBAR DO DETALHE
   ============================================================ */
.concurso-detalhe-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 80px;
}

/* Ficha rápida */
.sidebar-widget--ficha-rapida {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ficha-rapida-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

.ficha-rapida-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ficha-rapida-item:last-of-type {
    border-bottom: none;
}

.ficha-rapida-item>i {
    color: #1e40af;
    font-size: 1rem;
    margin-top: 0.15rem;
    width: 18px;
    flex-shrink: 0;
}

.ficha-rapida-urgente>i {
    color: #dc2626;
}

.fr-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.fr-valor {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.fr-dias {
    display: block;
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 600;
}

.btn-inscricao--sidebar,
.btn-edital--sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    margin-top: 0.25rem;
}

.btn-inscricao--sidebar {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-inscricao--sidebar:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
    color: #fff;
}

.btn-edital--sidebar {
    background: #fff;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-edital--sidebar:hover {
    background: #1e40af;
    color: #fff;
}

/* Relacionados */
.sidebar-relacionados {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-relacionado-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s;
}

.sidebar-relacionado-item:last-child {
    border-bottom: none;
}

.sidebar-relacionado-item:hover {
    padding-left: 0.5rem;
}

.rel-chapeu {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ef4444;
}

.rel-titulo {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    transition: color 0.15s;
}

.sidebar-relacionado-item:hover .rel-titulo {
    color: #1e40af;
}

.rel-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rel-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.sidebar-ver-todos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar-ver-todos:hover {
    background: #dbeafe;
}

/* ============================================================
   ESTADO VAZIO
   ============================================================ */
.listagem-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.empty-text a {
    color: #1e40af;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
    .concursos-lista-layout {
        grid-template-columns: 1fr;
    }

    .concursos-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .concurso-detalhe-grid {
        grid-template-columns: 1fr;
    }

    .concurso-detalhe-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .concursos-hero {
        padding: 1.75rem 0 1.5rem;
    }

    .concursos-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .concursos-stats-bar {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 0.85rem 0.75rem;
    }

    .concursos-filtros-section {
        position: static;
    }

    .destaques-grid {
        grid-template-columns: 1fr;
    }

    .destaque-principal {
        grid-row: auto;
    }

    .concurso-item-link {
        flex-direction: column;
        padding: 1rem;
    }

    .concurso-item-thumb {
        width: 100%;
        height: 160px;
    }

    .artigo-header {
        padding: 1.25rem;
    }

    .artigo-titulo {
        font-size: 1.5rem;
    }

    .artigo-meta-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ficha-grid {
        grid-template-columns: 1fr 1fr;
    }

    .concursos-sidebar,
    .concurso-detalhe-sidebar {
        grid-template-columns: 1fr;
    }

    .filtro-estados-grid {
        max-height: 120px;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .concursos-filtros-row {
        flex-direction: column;
    }

    .ficha-grid {
        grid-template-columns: 1fr;
    }

    .ficha-acoes {
        flex-direction: column;
    }

    .btn-inscricao,
    .btn-edital {
        width: 100%;
        justify-content: center;
    }

    .share-final-btns {
        flex-direction: column;
    }

    .share-final-btn {
        justify-content: center;
    }
}

/* ============================================================
   PAGINAÇÃO — Concursos
   ============================================================ */
.paginacao {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.paginacao-info {
    font-size: 0.82rem;
    color: #64748b;
    text-align: center;
    letter-spacing: 0.01em;
}

.paginacao-info strong {
    color: #0f172a;
    font-weight: 700;
}

.paginacao-lista {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.paginacao-item {
    display: flex;
}

.paginacao-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.65rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #374151;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: all 0.18s ease;
    cursor: pointer;
    line-height: 1;
}

.paginacao-link:hover {
    border-color: #1e40af;
    color: #1e40af;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
}

/* Página atual — destaque azul profundo */
.paginacao-current {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #fff !important;
    border-color: #1e40af !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
    cursor: default;
    pointer-events: none;
}

.paginacao-current:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
}

/* Botões de nav (anterior / próximo) — estilo diferenciado */
.paginacao-nav {
    gap: 0.4rem;
    padding: 0 0.85rem;
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    font-size: 0.85rem;
    min-width: auto;
}

.paginacao-nav:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15) !important;
}

.paginacao-nav-label {
    font-size: 0.82rem;
    font-weight: 600;
}

/* Ocultar label em telas pequenas */
@media (max-width: 480px) {
    .paginacao-nav-label {
        display: none;
    }

    .paginacao-nav {
        min-width: 38px;
        padding: 0 0.65rem;
    }
}


/* Ellipsis */
.paginacao-ellipsis span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 640px) {
    .paginacao {
        padding: 1.25rem 1rem;
        gap: 0.75rem;
    }

    .paginacao-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .paginacao-link[rel="prev"],
    .paginacao-link[rel="next"] {
        min-width: 34px;
    }

    .paginacao-ellipsis span {
        min-width: 30px;
        height: 36px;
    }
}

@media (max-width: 400px) {
    .paginacao {
        padding: 1rem 0.75rem;
    }

    .paginacao-link {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}