.opigno-lp-step-module .module-title {
    font-size: 0.95rem !important;
}

.module-title-wrapper .module-title {
    font-size: 1.25rem !important;
}

body.fullscreen #vjs_video_3 {
    width: 1240px !important;
    height: 698px !important;
}

.opigno_activity .videoWrapper {
    margin-bottom: 30px;
}

.videoWrapper+div>div:first-child {
    display: none;
}

.course__time-spent .label {
    visibility: hidden;
    position: relative;
}

.course__time-spent .label::after {
    content: "Spędzony czas";
    /* <- tu wpisz swój tekst */
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}

.course__completed-on .label {
    visibility: hidden;
    position: relative;
}

.course__completed-on .label::after {
    content: "Ukończono dnia";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}

.lp-global-progress .icon_state_pending span {
    visibility: hidden;
    position: relative;
}

.lp-global-progress .icon_state_pending span::after {
    content: "W trakcie";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}


/* 1. Zamiana pierwszego 'Course' (dla ścieżki) */
.lp-table>.lp-table-wrapper>table>tbody>tr:first-child .type span {
    visibility: hidden;
    position: relative;
}

.lp-table>.lp-table-wrapper>table>tbody>tr:first-child .type span::after {
    content: "Kurs";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}

/* 2. Zamiana wszystkich 'Module' w tabelach wewnętrznych */
.inner-table .type span {
    visibility: hidden;
    position: relative;
}

.inner-table .type span::after {
    content: "Moduł";
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
}

.block-page-title-block h1 {
    font-size: 2rem !important;
}

#opigno-answer-opigno-video-form input[type="submit"][value="Dalej"] {
    position: relative;
    content: "Potwierdzam zapoznanie się z materiałem";
}

.lp_course_steps_wrapper>.activity-container {
    margin-bottom: 22px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px !important;
}

/* 
.activity-info__item:nth-child(2) .label {
    font-size: 0;
    position: relative;
}

.activity-info__item:nth-child(2) .label::before {
    content: "Wynik (%/pkt)";
    font-size: 14px;
    /* ustaw odpowiedni */
/* position: absolute;
left: 0;
top: -9px;
}

*/




.article-grid article {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
    height: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* PRZESUŃ CAŁY BLOK Z OBRAZKIEM DO GÓRY */
.article-grid article>div:nth-of-type(1) {
    order: -1;
}

/* OBRAZEK */
.article-grid article img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* TYTUŁ POD ZDJĘCIEM */
.article-grid article h2 {
    font-size: 1.1rem;
    margin: 16px 16px 8px;
    line-height: 1.4;
    font-weight: 600;
}

/* LINK TYTUŁU */
.article-grid article h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.article-grid article h2 a:hover {
    color: var(--desktop-header-bg);
}

/* ODSTĘP MIĘDZY TYTUŁEM A TREŚCIĄ */
.article-grid article h2+div {
    margin-top: 15px;
}

/* TREŚĆ ARTYKUŁU (ZAJAWKA) */
.article-grid article>div:nth-of-type(2) {
    padding: 0 16px;
}

/* DATA */
.article-grid article time {
    font-size: 0.85rem;
    color: #888;
    margin: 10px 16px 12px;
    display: block;
}

/* OSTATNI ELEMENT (DATA / PRZYCISK / COKOLWIEK) */
.article-grid article>div:last-child {
    margin-bottom: 16px;
}

.read-more-button {
    display: inline-block;
    margin: 0 16px 16px;
    padding: 8px 16px;
    background-color: var(--desktop-header-bg);
    color: #fff;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-end;
    /* wyrównanie w siatce */
}

.read-more-button:hover {
    filter: brightness(1.1);
}

body p {
    font-size: 1.0rem !important;
}

/* wszystkie "part" */
.h5p-progressbar-part {
    background: #ccc !important;
}

/* tylko zaznaczony */
.h5p-progressbar-part.h5p-progressbar-part-selected {
    background: rgb(122, 81, 144) !important;
    background-image: none !important;
}

/* pokazany, ale NIE zaznaczony */
.h5p-progressbar-part.h5p-progressbar-part-show:not(.h5p-progressbar-part-selected) {
    background: rgb(164, 81, 144) !important;
    background-image: none !important;
}

.h5p-joubelui-button:hover,
.h5p-joubelui-button:focus {
    background: rgb(122, 81, 144) !important;
}

.h5p-joubelui-button {
    background: rgb(164, 81, 144) !important;
    font-size: 1rem !important;
}

.h5p-td.h5p-summary-task-title {
    font-size: 1.1em !important;
}

.h5p-summary-table-header.slide,
.h5p-summary-table-header.score {
    font-size: 1.1em !important;
}


.h5p-question-feedback {
    color: rgb(164, 81, 144) !important;
    font-weight: normal !important;
}

.h5p-fullscreen .h5p-advanced-text {
    transform: scale(2);
    transform-origin: left center;
    line-height: 2em !important;
    padding-top: 20px !important;
}

.h5p-fullscreen .h5p-question-introduction {
    transform: scale(2);
    transform-origin: left center;
    line-height: 1.7em !important;
}

.h5p-fullscreen .h5p-course-presentation p {
    line-height: 1.7em !important;
}

.h5p-fullscreen .h5p-course-presentation .h5p-element {
    font-size: 0.4em !important;
}

/* Odsłoń pytania TYLKO wtedy, gdy intro jest schowane */
.h5p-content .intro-page.hidden~.questionset.hidden,
.h5p-content .intro-page[style*="display: none"]~.questionset.hidden {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ====== BLOKADA tylko dla typów z zaznaczeniami ====== */
/* MULTICHOICE (checkbox/radio) */
.h5p-question.h5p-multichoice:not(:has(.h5p-answer[aria-checked="true"])) .h5p-question-check-answer,
.h5p-question.h5p-multichoice:not(:has(.h5p-answer[aria-checked="true"])) .h5p-question-next,
.h5p-question.h5p-multichoice:not(:has(.h5p-answer[aria-checked="true"])) .h5p-question-prev {
    visibility: hidden;
    pointer-events: none;
}

/* TRUE/FALSE */
.h5p-question.h5p-true-false:not(:has(.h5p-true-false-answer[aria-checked="true"])) .h5p-question-check-answer,
.h5p-question.h5p-true-false:not(:has(.h5p-true-false-answer[aria-checked="true"])) .h5p-question-next,
.h5p-question.h5p-true-false:not(:has(.h5p-true-false-answer[aria-checked="true"])) .h5p-question-prev {
    visibility: hidden;
    pointer-events: none;
}

/* (opcjonalnie) komunikat tylko dla powyższych typów */
.h5p-question.h5p-multichoice:not(:has([aria-checked="true"])) .h5p-question-buttons::after,
.h5p-question.h5p-true-false:not(:has([aria-checked="true"])) .h5p-question-buttons::after {
    content: "Zaznacz odpowiedź, aby kontynuować";
    display: block;
    font-size: .95em;
    margin-top: .25rem;
    opacity: .8;
}

/* Po zaznaczeniu – przyciski aktywne */
.h5p-question.h5p-multichoice:has([aria-checked="true"]) .h5p-question-check-answer,
.h5p-question.h5p-multichoice:has([aria-checked="true"]) .h5p-question-next,
.h5p-question.h5p-multichoice:has([aria-checked="true"]) .h5p-question-prev,
.h5p-question.h5p-true-false:has([aria-checked="true"]) .h5p-question-check-answer,
.h5p-question.h5p-true-false:has([aria-checked="true"]) .h5p-question-next,
.h5p-question.h5p-true-false:has([aria-checked="true"]) .h5p-question-prev {
    visibility: visible;
    pointer-events: auto;
}

/* ====== QUESTION SET – zawężone do slajdów z MCQ/TF ====== */
/* Blokuj przyciski tylko, gdy AKTUALNY slajd zawiera MCQ/TF i brak zaznaczenia */
.question-container:has(.h5p-multichoice):not(:has([aria-checked="true"])) .h5p-question-check-answer,
.question-container:has(.h5p-multichoice):not(:has([aria-checked="true"])) .h5p-question-next,
.question-container:has(.h5p-multichoice):not(:has([aria-checked="true"])) .h5p-question-prev,
.question-container:has(.h5p-true-false):not(:has([aria-checked="true"])) .h5p-question-check-answer,
.question-container:has(.h5p-true-false):not(:has([aria-checked="true"])) .h5p-question-next,
.question-container:has(.h5p-true-false):not(:has([aria-checked="true"])) .h5p-question-prev {
    visibility: hidden;
    pointer-events: none;
}

/* ====== WYKLUCZENIE: Sort Paragraphs – ZAWSZE pokazuj „Sprawdź” ====== */
.h5p-question.h5p-sort-paragraphs .h5p-question-check-answer,
.question-container:has(.h5p-sort-paragraphs) .h5p-question-check-answer {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Ustal wspólny rozmiar czcionki do pseudo-elementów */
.h5p-fill-in-footer {
    --label-fs: 14px;
    margin-bottom: 10px;
}

/* Spany – zachowaj padding i marginesy */
.h5p-fill-in-footer .h5p-fill-in-correct-responses-pattern,
.h5p-fill-in-footer .h5p-fill-in-user-response-correct,
.h5p-fill-in-footer .h5p-fill-in-user-response-wrong {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    font-size: 0;
    white-space: nowrap;
    padding: 5px 5px;
    margin-right: 5px;
    box-sizing: border-box;
    min-height: 31px;
    border-radius: 5px;
}

/* ::before (jeśli H5P coś tam wrzuca, np. ikonę) */
.h5p-fill-in-footer .h5p-fill-in-correct-responses-pattern::before,
.h5p-fill-in-footer .h5p-fill-in-user-response-correct::before,
.h5p-fill-in-footer .h5p-fill-in-user-response-wrong::before {
    font-size: var(--label-fs);
    line-height: 1.2;
}

/* ::after – tłumaczenie, które nadaje szerokość */
.h5p-fill-in-footer .h5p-fill-in-correct-responses-pattern::after,
.h5p-fill-in-footer .h5p-fill-in-user-response-correct::after,
.h5p-fill-in-footer .h5p-fill-in-user-response-wrong::after {
    font-size: var(--label-fs);
    line-height: 1.2;
    display: inline;
    content: "";
}

/* Teksty + kolory */
.h5p-fill-in-footer .h5p-fill-in-correct-responses-pattern::after {
    content: "Poprawna odpowiedź";
    color: #79B74B;
}

.h5p-fill-in-footer .h5p-fill-in-user-response-correct::after {
    content: "Twoja poprawna odpowiedź";
    color: #fff;
}

.h5p-fill-in-footer .h5p-fill-in-user-response-wrong::after {
    content: "Twoja niepoprawna odpowiedź";
    color: #fff;
}

/* Dodatkowy before tylko dla "Poprawna odpowiedź" */
.h5p-fill-in-footer .h5p-fill-in-correct-responses-pattern::before {
    margin-right: .3em;
    content: ":";
    font-size: 16px;
    color: transparent;
}