/**
 * National Development Plan (NDP) — section page extras.
 *
 * Visual language mirrors Finance & Online Renewal (pill headers, bordered
 * panels, numbered items with accent circles + border-left cards).
 *
 * @package jpd-theme
 */

/* ── Section pill header ─────────────────────────────────────── */

.jpd-ndp__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    margin: 0 0 1.25rem;
    padding: 0.45rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #fde08d 0%, #f5c842 100%);
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Panel wrapper ───────────────────────────────────────────── */

.jpd-ndp__panel {
    padding: 1.75rem 1.65rem;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #f7f8fa;
}

/* ── Responsibility list ─────────────────────────────────────── */

.jpd-ndp__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpd-ndp__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-left: 4px solid #f5c842;
    border-radius: 0 8px 8px 0;
    background: var(--jpd-white);
    transition: box-shadow 0.2s ease;
}

.jpd-ndp__item:hover {
    box-shadow: 0 2px 8px rgba(3, 47, 60, 0.07);
}

.jpd-ndp__item-index {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(90deg, #fde08d 0%, #f5c842 100%);
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.jpd-ndp__item-text {
    color: #333333;
    font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.05rem);
    line-height: 1.7;
    padding-top: 0.2rem;
}

/* ── Projects intro ─────────────────────────────────────────── */

.jpd-ndp__projects-intro {
    margin: 2.5rem 0 1.25rem;
    color: #333;
    font-size: clamp(0.95rem, 0.35vw + 0.85rem, 1.05rem);
    line-height: 1.7;
}

/* ── Projects table ─────────────────────────────────────────── */

.jpd-ndp__projects-table {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.jpd-ndp__project-row {
    padding: 0.85rem 1.25rem;
    text-align: center;
    font-size: clamp(0.9rem, 0.3vw + 0.82rem, 1rem);
    line-height: 1.5;
    color: #1a1a1a;
}

.jpd-ndp__project-row:nth-child(odd) {
    background: linear-gradient(90deg, #f5c842 0%, #fde08d 100%);
    color: #fff;
    font-weight: 600;
}

.jpd-ndp__project-row:nth-child(even) {
    background: #fef9e7;
}

.jpd-ndp__project-row:first-child {
    background: linear-gradient(90deg, #e6a817 0%, #f5c842 100%);
    color: #fff;
    font-weight: 700;
}

.jpd-ndp__project-row:last-child {
    background: linear-gradient(90deg, #e6a817 0%, #f5c842 100%);
    color: #fff;
    font-weight: 700;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 768px) {
    .jpd-ndp__panel {
        padding: 1.25rem 1rem;
    }

    .jpd-ndp__item {
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
    }

    .jpd-ndp__item-index {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }

    .jpd-ndp__projects-table {
        max-width: 100%;
    }

    .jpd-ndp__project-row {
        padding: 0.75rem 1rem;
    }
}
