.ncp-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3748;
    box-sizing: border-box;
}

.ncp-wrapper *,
.ncp-wrapper *::before,
.ncp-wrapper *::after {
    box-sizing: border-box;
}

/* Container do Grid - Sem restrições de float ou flex herdadas do tema */
.ncp-grid-container {
    display: grid !important;
    gap: 28px !important;
    align-items: stretch !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Card */
.ncp-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin: 0 !important;
    float: none !important;
}

.ncp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}

/* Imagem */
.ncp-thumb-link {
    display: block !important;
    width: 100% !important;
    background: #f8fafc;
    overflow: hidden;
    line-height: 0;
}

.ncp-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.ncp-card:hover .ncp-img {
    transform: scale(1.02);
}

/* Conteúdo */
.ncp-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ncp-meta {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    color: #718096;
    margin-bottom: 12px;
}

.ncp-cat {
    text-transform: uppercase;
    font-weight: 700;
}

.ncp-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.ncp-title a {
    text-decoration: none;
}

.ncp-excerpt {
    margin: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.ncp-readmore {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

/* Botão Carregar Mais */
.ncp-action-container {
    text-align: center;
    margin: 45px 0 25px;
    width: 100%;
}

.ncp-load-btn {
    border: none;
    padding: 14px 34px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ncp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: ncp-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes ncp-spin {
    to { transform: rotate(360deg); }
}

/* Caixa de Arquivo */
.ncp-archive-full-tree {
    border-radius: 12px;
    padding: 35px;
    margin-top: 30px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.ncp-archive-header-box {
    margin-bottom: 25px;
    text-align: center;
}

.ncp-archive-tree-title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.ncp-archive-tree-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #718096;
}

.ncp-years-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ncp-year-block {
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 20px;
}

.ncp-year-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ncp-year-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.ncp-year-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.ncp-year-count {
    background: #edf2f7;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.ncp-months-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ncp-month-block {
    border: 1px solid #edf2f7;
    border-radius: 8px;
    overflow: hidden;
}

.ncp-month-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1rem;
    text-align: left;
    outline: none;
    gap: 10px;
}

.ncp-month-toggle:hover {
    background: #f1f5f9;
}

.ncp-month-title {
    font-weight: 600;
}

.ncp-badge {
    background: #e2e8f0;
    color: #2d3748;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.ncp-toggle-arrow {
    margin-left: auto;
    font-size: 0.9rem;
    color: #718096;
    transition: transform 0.2s ease;
}

.ncp-month-block.is-open .ncp-toggle-arrow {
    transform: rotate(180deg);
}

.ncp-posts-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    background: #ffffff;
}

.ncp-posts-links li {
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9;
    list-style: none !important;
}

.ncp-posts-links li:last-child {
    border-bottom: none;
}

.ncp-posts-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-size: 0.95rem;
    gap: 15px;
}

.ncp-post-link-title {
    font-weight: 500;
    flex-grow: 1;
}

.ncp-post-link-date {
    font-size: 0.8rem;
    color: #a0aec0;
    white-space: nowrap;
}
