/* ============================================================
   Sekcja strony głównej [pjm_homepage]
   ============================================================ */

.pjm-dev-section {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* Blok opisu o rozwoju */
.pjm-dev-intro {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 18px;
    padding: 32px 36px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(27,94,75,.06);
}
.pjm-dev-intro__icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 4px;
}
.pjm-dev-intro__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: #0d2e24;
    margin: 0 0 12px;
    line-height: 1.2;
}
.pjm-dev-intro__lead {
    font-size: 15.5px;
    color: #3d5a50;
    line-height: 1.7;
    margin: 0;
}

/* Accordion toggle dla certyfikatów */
.pjm-dev-certs {
    border: 1px solid #dce8e2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.pjm-dev-certs__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    gap: 12px;
    transition: background .15s;
}
.pjm-dev-certs__toggle::-webkit-details-marker { display: none; }
.pjm-dev-certs__toggle::marker { display: none; }
.pjm-dev-certs__toggle:hover { background: #f5faf7; }
.pjm-dev-certs[open] .pjm-dev-certs__toggle {
    background: #f0fdf4;
    border-bottom: 1px solid #dce8e2;
}

.pjm-dev-certs__toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0d2e24;
}
.pjm-dev-certs__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #1B5E4B;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 50%;
}
.pjm-dev-certs__arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B5E4B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .25s;
}
.pjm-dev-certs[open] .pjm-dev-certs__arrow { transform: rotate(180deg); }

.pjm-dev-certs__inner {
    padding: 24px;
}
/* Ukryj nagłówek sekcji gdy certyfikaty są zagnieżdżone w toggle */
.pjm-dev-certs__inner .pjm-certs__header { display: none; }
.pjm-dev-certs__inner .pjm-certs {
    margin: 0;
    padding: 0;
    max-width: none;
}

@media (max-width: 600px) {
    .pjm-dev-intro {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    .pjm-dev-section { margin: 40px auto; }
    .pjm-dev-certs__toggle { padding: 16px 18px; }
    .pjm-dev-certs__inner { padding: 16px; }
}

/* ============================================================
   Sekcja certyfikatów [pjm_certifications]
   ============================================================ */

.pjm-certs {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
}

/* ── Nagłówek sekcji ─────────────────────────────────────── */
.pjm-certs__header {
    text-align: center;
    margin-bottom: 40px;
}
.pjm-certs__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1B5E4B;
    background: #e8f5f0;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.pjm-certs__title {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 800;
    color: #0d2e24;
    margin: 0 0 12px;
    line-height: 1.2;
}
.pjm-certs__lead {
    font-size: 16px;
    color: #4b6b60;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── T2 – karta wyróżniona ───────────────────────────────── */
.pjm-cert-featured {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: linear-gradient(135deg, #0d2e24 0%, #1B5E4B 100%);
    border-radius: 18px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.pjm-cert-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.pjm-cert-featured__badge {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    background: #f5c842;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #0d2e24;
    letter-spacing: -.02em;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    flex-shrink: 0;
}
.pjm-cert-featured__body {
    flex: 1;
    min-width: 0;
}
.pjm-cert-featured__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
}
.pjm-cert-featured__title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #fff;
}
.pjm-cert-featured__desc {
    font-size: 14px;
    color: rgba(255,255,255,.8);
    line-height: 1.5;
}
.pjm-cert-featured__meta {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.pjm-cert-featured__meta span {
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}
.pjm-cert-featured__meta .pjm-cert-valid {
    display: inline-block;
    background: rgba(245,200,66,.2);
    border: 1px solid rgba(245,200,66,.5);
    color: #f5c842;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Siatka szkoleń ──────────────────────────────────────── */
.pjm-certs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── Karta szkolenia ─────────────────────────────────────── */
.pjm-cert-card {
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.pjm-cert-card:hover {
    box-shadow: 0 8px 28px rgba(27,94,75,.12);
    transform: translateY(-2px);
}
.pjm-cert-card__year {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #1B5E4B;
    background: #e8f5f0;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.pjm-cert-card__title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0d2e24;
    line-height: 1.35;
    margin-top: 4px;
}
.pjm-cert-card__scope {
    font-size: 12.5px;
    color: #5a7568;
    line-height: 1.4;
}
.pjm-cert-card__org {
    font-size: 12px;
    font-weight: 600;
    color: #1B5E4B;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #edf3f0;
}
.pjm-cert-card__date {
    font-size: 11.5px;
    color: #8eaa9c;
}

/* ── Karta UW – oczekiwana ───────────────────────────────── */
.pjm-cert-card--pending {
    border: 2px dashed #c5d5cc;
    background: #fafcfb;
}
.pjm-cert-card--pending:hover {
    box-shadow: none;
    transform: none;
}
.pjm-cert-card__pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8e6c00;
    background: #fef9e7;
    border: 1px solid #f5c842;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.pjm-cert-card__pending-badge::before {
    content: '⏳';
    font-size: 12px;
}
.pjm-cert-card--pending .pjm-cert-card__title {
    color: #4b6b60;
}
.pjm-cert-card--pending .pjm-cert-card__org {
    color: #4b6b60;
    border-top-color: #e2eceb;
}
.pjm-cert-card--pending .pjm-cert-card__date {
    font-style: italic;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
    .pjm-certs__grid { grid-template-columns: repeat(2, 1fr); }
    .pjm-cert-featured {
        flex-direction: column;
        gap: 16px;
    }
    .pjm-cert-featured__meta {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
}
@media (max-width: 480px) {
    .pjm-certs__grid { grid-template-columns: 1fr; }
    .pjm-cert-featured { padding: 20px; }
    .pjm-certs { margin: 40px auto; }
}

/* ============================================================
   Wyróżnione certyfikaty: T2 + C1 UW (grid 2 kolumny)
   ============================================================ */

.pjm-certs-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 44px;
}
@media (max-width: 640px) {
    .pjm-certs-featured { grid-template-columns: 1fr; }
}
.pjm-cert-card-featured {
    background: #fff;
    border: 1px solid #dce8e2;
    border-radius: 12px;
    padding: 20px 22px;
}
.pjm-cert-card-featured__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #5a7568;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.pjm-cert-badge {
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.pjm-cert-badge--t2 { background: #1B5E4B; }
.pjm-cert-badge--c1 { background: #0A66C2; }
.pjm-cert-card-featured__title { font-size: 15px; font-weight: 600; color: #0d2e24; margin-bottom: 6px; }
.pjm-cert-card-featured__org { font-size: 13px; color: #5a7568; margin-bottom: 4px; }
.pjm-cert-card-featured__meta { font-size: 12px; color: #8fa89f; margin-bottom: 10px; }
.pjm-cert-valid-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    background: #EAF2EE;
    color: #1B5E4B;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.pjm-cert-obtained-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    background: #E8F0FB;
    color: #0A66C2;
    font-size: 12px;
    font-weight: 600;
}
.pjm-cert-scan-thumb {
    width: 100%;
    max-width: 120px;
    border-radius: 6px;
    border: 1px solid #dce8e2;
    margin-top: 8px;
    cursor: pointer;
    transition: transform .15s;
    display: block;
}
.pjm-cert-scan-thumb:hover { transform: scale(1.04); }

/* ============================================================
   Oś czasu szkoleń
   ============================================================ */

.pjm-certs-timeline {
    position: relative;
    padding-left: 0;
}
.pjm-ct-year-row {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
}
.pjm-ct-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20px;
    flex-shrink: 0;
    margin-right: 20px;
    padding-top: 4px;
}
.pjm-ct-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #B8D5C8;
    border: 2px solid #F4F7F5;
    flex-shrink: 0;
    transition: background .2s;
}
.pjm-ct-year-row.has-active .pjm-ct-dot { background: #1B5E4B; }
.pjm-ct-line {
    width: 2px;
    background: #B8D5C8;
    flex: 1;
    margin-top: 6px;
    min-height: 20px;
}
.pjm-ct-right { flex: 1; }
.pjm-ct-year-label {
    font-size: 13px;
    font-weight: 700;
    color: #8fa89f;
    margin-bottom: 10px;
    transition: color .2s;
}
.pjm-ct-year-row.has-active .pjm-ct-year-label { color: #1B5E4B; }
.pjm-ct-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pjm-ct-chip {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #dce8e2;
    background: #fff;
    cursor: pointer;
    text-align: left;
    max-width: 280px;
    transition: border-color .15s, background .15s;
}
.pjm-ct-chip:hover { border-color: #1B5E4B; }
.pjm-ct-chip.active { border-color: #1B5E4B; background: #EAF2EE; }
.pjm-ct-chip__title {
    font-size: 13px;
    font-weight: 600;
    color: #0d2e24;
    margin-bottom: 3px;
    transition: color .15s;
}
.pjm-ct-chip.active .pjm-ct-chip__title { color: #1B5E4B; }
.pjm-ct-chip__org { font-size: 11px; color: #8fa89f; }
.pjm-ct-detail {
    display: none;
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #EAF2EE;
    border: 1px solid #B8D5C8;
    max-width: 460px;
}
.pjm-ct-detail.open { display: block; }
.pjm-ct-detail__title { font-size: 14px; font-weight: 600; color: #1B5E4B; margin-bottom: 4px; }
.pjm-ct-detail__scope { font-size: 13px; color: #2D6A4F; margin-bottom: 4px; }
.pjm-ct-detail__meta { font-size: 12px; color: #5a7568; }
