/* ===== BUTTONS ===== */
.btn-primary-custom {
    background-color: var(--primary);
    border: none;
    color: white !important;
    font-weight: 800;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.5s ease;
}

.btn-primary-custom:hover::after {
    left: 150%;
}

.btn-primary-custom:hover {
    transform: translateY(-4px);
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary-custom {
    background-color: transparent;
    border: 2.5px solid var(--border);
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary-custom:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(125, 152, 161, 0.08);
}


.btn-cta {
    background-color: var(--primary);
    color: white;
    font-weight: 800;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.4); /* Shadow Indigo */
    color: white;
}

/* ===== CONCURSOS ===== */

.concurso-filtros {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.concurso-filtro {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.concurso-filtro:hover,
.concurso-filtro.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.concurso-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.concurso-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.concurso-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
    background: rgba(248, 250, 252, 0.5); /* Subtle tint */
}

/* Status Badges with more life */
.concurso-status--aberto {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.concurso-status--previsto {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.concurso-status--encerrado {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.concurso-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* Breadcrumbs brancos para headers escuros */
.notamaxima-breadcrumb .breadcrumb-item,
.notamaxima-breadcrumb .breadcrumb-item a,
.notamaxima-breadcrumb .breadcrumb-item span {
    color: white !important;
    text-decoration: none !important;
    opacity: 0.9;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    font-weight: 600;
}

.notamaxima-breadcrumb .breadcrumb-item a:hover {
    opacity: 1;
    text-decoration: underline !important;
}

.notamaxima-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4) !important;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    padding: 0 0.75rem;
}

.notamaxima-breadcrumb .breadcrumb-item.active {
    opacity: 0.6;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 1; }
}

.concurso-deadline-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.concurso-deadline-tag i {
    color: var(--primary);
    font-size: 0.9rem;
}

.concurso-card__body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.concurso-orgao-wrapper {
    margin-bottom: 1.5rem;
}

.concurso-orgao-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 2px;
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}

.concurso-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.concurso-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-item--highlight {
    background: rgba(79, 70, 229, 0.04);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px dashed rgba(79, 70, 229, 0.2);
}

.detail-item--highlight i {
    color: var(--primary);
    font-size: 1.25rem;
}

.detail-item--highlight strong {
    color: var(--primary);
    font-size: 1rem;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-info span {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 700;
}

.detail-info strong {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 700;
}

.concurso-card__footer {
    padding: 1.25rem 1.5rem;
    background: var(--text-dark); /* Slate Profundo para ancoragem */
    border-top: none;
}

.btn-concurso-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 800;
    padding: 0.85rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-concurso-action:hover {
    background: var(--primary-light);
    transform: scale(1.02) translateY(-2px);
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-concurso-details {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-concurso-details:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.concurso-card--encerrado {
    opacity: 0.6;
    filter: grayscale(0.5);
}

/* ===== UTILITÁRIOS SEMÂNTICOS ===== */

/* Backgrounds de seção */
.section-white { background-color: #FFFFFF; }
.section-muted  { background-color: var(--bg-light); }

/* Parágrafo de introdução de seção */
.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.8;
}

/* h3 dentro de .section-header como sub-título */
.subsection-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Variante branca do botão secundário (sobre fundos escuros) */
.btn-secondary-light {
    border-color: white !important;
    color: white !important;
}

/* Variações de tamanho de .news-category */
.news-category--sm { font-size: 0.78rem; padding: 0.3rem 0.8rem; }
.news-category--xs { font-size: 0.75rem; padding: 0.25rem 0.7rem; }

/* Variação de tamanho de .card-date */
.card-date--sm { font-size: 0.8rem; margin-bottom: 0; }

/* Cores de ícone semânticas */
.icon-primary { color: var(--primary); }
.icon-danger  { color: #DC2626; }
.icon-success { color: #16A34A; }

/* Botão CTA maior no bloco nm-cta */
.btn-cta--lg {
    font-size: 1.15rem;
    padding: 1.1rem 3.5rem;
}

/* Nota de rodapé dentro do nm-cta */
.nm-cta-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0;
}

/* Itens de contato no footer com espaçamento superior */
.footer-contact-item { margin-top: 1.5rem; }

/* ===== SIDEBAR WIDGETS ===== */

.sidebar-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h5 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

/* WordPress alignment classes */
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* WordPress captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 0.4rem; }

/* WordPress post thumbnail */
.wp-post-image { max-width: 100%; height: auto; display: block; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
    flex: 1;
    padding: 0.55rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form .search-submit {
    padding: 0.55rem 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}
.page-numbers.current,
.page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.page-numbers.dots { border: none; background: none; }

/* ===== SINGLE POST NAVIGATION ===== */
.post-navigation {
    margin: 4rem 0;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-nav-item {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-nav-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.post-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.post-nav-item:hover .post-nav-title {
    color: var(--primary);
}

.post-nav-item--prev:hover {
    transform: translateX(-5px);
}

.post-nav-item--next:hover {
    transform: translateX(5px);
}

/* ===== RELATED POSTS ===== */
.related-posts {
    margin-top: 4rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.related-card {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-card__thumb {
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}

.related-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card__body {
    padding: 1.25rem;
}

.related-card__body h5 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--text-dark);
}

/* ===== SIDEBAR UPGRADE ===== */
.sidebar-popular-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-popular-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    align-items: center;
}

.sidebar-popular-thumb {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}

.sidebar-popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-popular-info h6 {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-popular-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.sidebar-popular-item:hover h6 {
    color: var(--primary);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

/* Concursos Portal Styles */
.pcon-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.08) !important;
}

.btn-concurso-action {
    background: var(--primary);
    color: white !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.pcon-card:hover .btn-concurso-action {
    background: var(--text-dark);
}

.pcon-filter-check:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.pcon-active-pill {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcon-active-pill button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    padding: 0;
    line-height: 1;
}

@media (max-width: 991px) {
    .pcon-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }
    .pcon-card__right {
        width: 100%;
        align-items: flex-start !important;
        flex-direction: row !important;
        justify-content: space-between;
    }
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    color: white !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    opacity: 0.8;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    opacity: 1;
    background-color: var(--primary-dark);
    color: white !important;
}

.scroll-to-top i {
    font-size: 1.2rem;
}
