.pj-course-wrapper {
    max-width: 960px;
    margin: 0 auto 4rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: linear-gradient(145deg, #020617, #020617, #0b1120);
    color: #f9fafb;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pj-course-header h1 {
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.pj-course-header p {
    margin-bottom: 1.2rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.pj-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #111827;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.pj-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    transition: width 0.25s ease;
}

.pj-progress-text {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.pj-course-steps {
    position: relative;
}

.pj-step {
    display: none;
    padding: 1.25rem;
    border-radius: 14px;
    background: #020617;
    border: 1px solid #111827;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.pj-step h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.pj-step-body {
    margin-bottom: 1rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.pj-content-block {
    margin: 0.75rem 0 1.1rem;
    padding: 0.9rem;
    border-radius: 10px;
    background: #020617;
    border: 1px solid #1f2937;
}

.pj-content-block h3 {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.pj-content-block p {
    font-size: 0.9rem;
    color: #e5e7eb;
}

.pj-content-block a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
}

.pj-content-block a:hover {
    text-decoration: underline;
}

.pj-notes,
.pj-code-area {
    width: 100%;
    min-height: 90px;
    margin-top: 0.4rem;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    resize: vertical;
}

.pj-notes:focus,
.pj-code-area:focus {
    outline: none;
    border-color: #3b82f6;
}

.pj-code-hint {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.pj-navigation {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.pj-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    cursor: pointer;
    background: #3b82f6;
    color: #f9fafb;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    max-width: 120px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.pj-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

.pj-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.pj-quiz label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.pj-quiz input[type="checkbox"],
.pj-quiz input[type="radio"] {
    margin-right: 0.3rem;
}

.pj-quiz-feedback {
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.pj-quiz-correct {
    color: #22c55e;
}

.pj-quiz-wrong {
    color: #fb923c;
}

.pj-rating-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.pj-rating-item label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.85rem;
}

.pj-rating-item input[type="number"] {
    width: 100%;
    padding: 0.45rem;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.pj-match-list {
    padding-left: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .pj-course-wrapper {
        padding: 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .pj-navigation {
        flex-direction: row;
        justify-content: space-between;
    }

    .pj-btn {
        flex: 1;
        max-width: none;
    }
}
