.learning-path-catalog {
    gap: 30px;
}

.learning-path-catalog__intro,
.learning-subject-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 25px 28px;
    overflow: hidden;
    border: 1px solid #b8d4e2;
    border-radius: 24px;
    background: linear-gradient(140deg, #fafdff, #eaf5fa);
    box-shadow: 0 12px 32px rgba(41, 86, 108, 0.08);
}

.learning-path-catalog__mascot {
    display: grid;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    place-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
}

.learning-path-catalog__mascot img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.learning-path-catalog__intro h2,
.learning-subject-hero h1 {
    margin: 5px 0 7px;
}

.learning-path-catalog__intro p:last-child,
.learning-subject-hero p:last-child {
    margin: 0;
    color: #576a73;
    line-height: 1.55;
}

.learning-subject-grid,
.learning-topic-grid {
    display: grid;
    gap: 16px;
}

.learning-subject-card,
.learning-topic-card {
    position: relative;
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid #bfd5df;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f1f8fb);
    color: #18201d;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(41, 86, 108, 0.07);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.learning-subject-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    min-height: 230px;
    padding: 26px;
    isolation: isolate;
}

.learning-subject-card:hover,
.learning-subject-card:focus-visible,
.learning-topic-card:hover,
.learning-topic-card:focus-visible {
    border-color: #6fa8c2;
    box-shadow: 0 16px 36px rgba(41, 86, 108, 0.13);
    transform: translateY(-3px);
}

.learning-subject-card:focus-visible,
.learning-topic-card:focus-visible,
.learning-path-step > a:focus-visible,
.learning-quiz-checkpoint__action:focus-visible {
    outline: 3px solid rgba(77, 145, 177, 0.25);
    outline-offset: 3px;
}

.learning-subject-card__icon,
.learning-subject-hero__icon,
.learning-path-hero__icon {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: #e4f2f8;
}

.learning-subject-card__icon {
    position: relative;
    z-index: 2;
    width: 66px;
    height: 66px;
}

.learning-subject-card__icon img,
.learning-subject-hero__icon img,
.learning-path-hero__icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.learning-subject-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.learning-subject-card__body > small,
.learning-topic-card__body > small {
    color: #39738e;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.learning-subject-card__body > strong {
    margin-top: 5px;
    font-size: 1.3rem;
}

.learning-subject-card__body > strong + span {
    max-width: 610px;
    margin-top: 8px;
    color: #586b73;
    line-height: 1.5;
}

.learning-subject-card__progress-label,
.learning-topic-card__progress-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin-top: 20px;
    color: #60727a;
    font-size: 0.77rem;
}

.learning-subject-card__progress-label b,
.learning-topic-card__progress-row b {
    color: #276b88;
}

.learning-subject-card__progress,
.learning-topic-card__progress,
.learning-path-progress-summary__bar {
    display: block;
    width: 100%;
    height: 8px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcebf1;
}

.learning-subject-card__progress > span,
.learning-topic-card__progress > span,
.learning-path-progress-summary__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4a99bd, #65b5cd);
}

.learning-subject-card__body > em {
    margin-top: 14px;
    color: #276b88;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 850;
}

.learning-subject-card__mascot {
    position: absolute;
    right: -42px;
    bottom: -72px;
    z-index: 1;
    width: 250px;
    height: 250px;
    opacity: 0.12;
    pointer-events: none;
}

.learning-subject-card__mascot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.learning-subject-card[data-learning-subject="legemidler"] {
    border-color: #b9d8c9;
    background: linear-gradient(145deg, #ffffff, #eef8f2);
}

.learning-subject-card[data-learning-subject="legemidler"] .learning-subject-card__icon {
    background: #dff1e7;
}

.learning-subject-card[data-learning-subject="legemidler"] .learning-subject-card__body > small,
.learning-subject-card[data-learning-subject="legemidler"] .learning-subject-card__body > em,
.learning-subject-card[data-learning-subject="legemidler"] .learning-subject-card__progress-label b {
    color: #2d7358;
}

.learning-subject-card[data-learning-subject="legemidler"] .learning-subject-card__progress > span {
    background: linear-gradient(90deg, #4b9e79, #74bd98);
}

.learning-path-future-note {
    margin: -2px 0 0;
    color: #66777e;
    font-size: 0.84rem;
}

.learning-path-header {
    min-height: 44px;
    margin-bottom: 24px;
}

.learning-path-header__badge,
.learning-topic-section__heading > span,
.learning-path-module__heading > span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #e5f1f6;
    color: #3c6f85;
    font-size: 0.74rem;
    font-weight: 800;
}

.learning-subject-page,
.learning-path-page,
.learning-lesson-page {
    display: grid;
    gap: 30px;
}

.learning-subject-hero__icon,
.learning-path-hero__icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
}

.learning-topic-section {
    display: grid;
    gap: 18px;
}

.learning-topic-section__heading,
.learning-path-module__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.learning-topic-section__heading h2,
.learning-path-module__heading h2 {
    margin: 5px 0 0;
}

.learning-topic-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px;
}

.learning-topic-card__number {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: #dceef6;
    color: #2d718f;
    font-size: 1.05rem;
    font-weight: 900;
}

.learning-topic-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.learning-topic-card__body > strong {
    margin-top: 4px;
    font-size: 1.18rem;
}

.learning-topic-card__body > strong + span {
    margin-top: 7px;
    color: #596c74;
    line-height: 1.48;
}

.learning-topic-card__recommendation {
    margin-top: 11px;
    color: #5c5228;
    font-size: 0.78rem;
    font-weight: 800;
}

.learning-topic-card__action {
    color: #276b88;
    font-size: 0.82rem;
    font-weight: 850;
    white-space: nowrap;
}

.learning-path-hero {
    display: grid;
    gap: 22px;
    padding: 28px;
    border: 1px solid #b9d5e2;
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 6%, rgba(244, 201, 79, 0.2), transparent 28%),
        linear-gradient(145deg, #ffffff, #eaf5fa);
    box-shadow: 0 13px 34px rgba(41, 86, 108, 0.09);
}

.learning-path-hero__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.learning-path-hero h1 {
    margin: 5px 0 8px;
    font-size: clamp(2rem, 6vw, 3rem);
}

.learning-path-hero__heading p:last-child {
    max-width: 670px;
    margin: 0;
    color: #536a75;
    line-height: 1.55;
}

.learning-path-progress-summary {
    display: grid;
    gap: 7px;
    padding-top: 20px;
    border-top: 1px solid #cbdde5;
}

.learning-path-progress-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #586d76;
    font-size: 0.83rem;
}

.learning-path-progress-summary > div strong {
    color: #276b88;
}

.learning-path-progress-summary p {
    margin: 7px 0 0;
    color: #5f562d;
    font-size: 0.85rem;
}

.learning-path-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 14px 18px;
    border: 1px solid #d4e2e8;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    color: #5e6e75;
    font-size: 0.73rem;
    font-weight: 700;
}

.learning-path-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.learning-path-legend__dot {
    width: 10px;
    height: 10px;
    border: 2px solid #9aacb3;
    border-radius: 50%;
    background: #ffffff;
}

.learning-path-legend__dot--started { border-color: #d19b37; background: #f8d879; }
.learning-path-legend__dot--completed { border-color: #4b9e79; background: #65b88f; }
.learning-path-legend__dot--mastered { border-color: #745daf; background: #9d86d4; }
.learning-path-legend__dot--recommended { border-color: #d4a62f; background: #f5cc52; box-shadow: 0 0 0 3px rgba(245, 204, 82, 0.22); }

.learning-path-module {
    display: grid;
    gap: 24px;
}

.learning-path-module__heading p:last-child {
    margin: 7px 0 0;
    color: #62747c;
}

.learning-path-map {
    position: relative;
    display: grid;
    gap: 30px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 12px 0 22px;
    list-style: none;
}

.learning-path-map::before {
    position: absolute;
    top: 28px;
    bottom: 38px;
    left: 50%;
    width: 4px;
    border-radius: 999px;
    background: repeating-linear-gradient(to bottom, #bad4df 0 10px, transparent 10px 17px);
    content: "";
    transform: translateX(-50%);
}

.learning-path-step {
    position: relative;
    z-index: 2;
    width: min(86%, 560px);
}

.learning-path-step--side-left { justify-self: start; }
.learning-path-step--side-right { justify-self: end; }

.learning-path-step > a {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 19px;
    border: 2px solid #c9d8de;
    border-radius: 20px;
    background: #ffffff;
    color: #18201d;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 9px 25px rgba(39, 81, 100, 0.08);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.learning-path-step > a:hover {
    border-color: #75aac1;
    box-shadow: 0 14px 30px rgba(39, 81, 100, 0.14);
    transform: translateY(-2px);
}

.learning-path-step__marker {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 3px solid #aebfc6;
    border-radius: 50%;
    background: #f7fafb;
    color: #61757e;
    font-weight: 900;
}

.learning-path-step__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.learning-path-step__body > small {
    color: #728188;
    font-size: 0.68rem;
    font-weight: 750;
    text-transform: uppercase;
}

.learning-path-step__body > strong {
    margin-top: 3px;
    font-size: 1.05rem;
}

.learning-path-step__body > strong + span {
    margin-top: 5px;
    color: #5e7078;
    font-size: 0.79rem;
    line-height: 1.4;
}

.learning-path-step__arrow {
    color: #58859a;
    font-size: 1.1rem;
    font-weight: 900;
}

.learning-status-chip {
    margin-top: 9px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf2f4;
    color: #64757d;
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 850;
}

.learning-path-step--started > a { border-color: #deb760; }
.learning-path-step--started .learning-path-step__marker { border-color: #d19b37; background: #fff2ca; color: #8d641e; }
.learning-status-chip--started { background: #fff0c5; color: #805b1c; }
.learning-path-step--completed > a { border-color: #79b99b; background: #f6fcf9; }
.learning-path-step--completed .learning-path-step__marker { border-color: #4b9e79; background: #5daf87; color: #ffffff; }
.learning-status-chip--completed { background: #dff3e9; color: #2d7656; }
.learning-path-step--mastered > a { border-color: #9e88cf; background: #fbf9ff; }
.learning-path-step--mastered .learning-path-step__marker { border-color: #745daf; background: #8d73c7; color: #ffffff; }
.learning-status-chip--mastered { background: #ebe4fb; color: #684ba9; }

.learning-path-step--recommended > a {
    border-color: #d7ab36;
    box-shadow: 0 0 0 5px rgba(245, 204, 82, 0.17), 0 13px 30px rgba(98, 78, 24, 0.12);
}

.learning-path-step__recommended {
    position: absolute;
    top: -13px;
    left: 18px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f3c84f;
    color: #584611;
    font-size: 0.66rem;
    font-weight: 900;
}

.learning-quiz-checkpoint {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    width: min(100%, 680px);
    justify-self: center;
    padding: 21px;
    border: 2px solid #d8b44e;
    border-radius: 22px;
    background: linear-gradient(145deg, #fffdf4, #fff5cd);
    box-shadow: 0 11px 29px rgba(105, 83, 23, 0.12);
}

.learning-quiz-checkpoint--passed {
    border-color: #62a987;
    background: linear-gradient(145deg, #f7fdf9, #e2f4e9);
}

.learning-quiz-checkpoint__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: #f3c84f;
    color: #59450f;
    font-size: 0.9rem;
    font-weight: 950;
}

.learning-quiz-checkpoint--passed .learning-quiz-checkpoint__icon {
    background: #59a77f;
    color: #ffffff;
    font-size: 1.25rem;
}

.learning-quiz-checkpoint__body h3 {
    margin: 3px 0 6px;
}

.learning-quiz-checkpoint__body > p:not(.eyebrow) {
    margin: 0;
    color: #625a37;
    font-size: 0.84rem;
    line-height: 1.45;
}

.learning-quiz-checkpoint__body > small {
    display: block;
    margin-top: 7px;
    color: #756c49;
}

.learning-quiz-checkpoint__score {
    display: block;
    margin-top: 10px;
    color: #6c6134;
    font-size: 0.73rem;
}

.learning-quiz-checkpoint__action {
    max-width: 190px;
    padding: 11px 14px;
    border: 1px solid #9a7621;
    border-radius: 13px;
    background: #ffffff;
    color: #745713;
    font-size: 0.77rem;
    font-weight: 850;
    cursor: pointer;
}

.learning-quiz-checkpoint__action:hover { background: #fff9df; }

.learning-lesson-page {
    width: min(100%, 780px);
    margin: 0 auto;
}

.learning-lesson-article {
    display: grid;
    gap: 22px;
}

.learning-lesson-hero,
.learning-lesson-block,
.learning-lesson-completion {
    padding: clamp(22px, 5vw, 34px);
    border: 1px solid #cbdde5;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 9px 27px rgba(41, 86, 108, 0.07);
}

.learning-lesson-hero {
    background:
        radial-gradient(circle at 92% 8%, rgba(244, 201, 79, 0.22), transparent 27%),
        linear-gradient(145deg, #ffffff, #edf7fb);
}

.learning-lesson-hero h1 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 7vw, 3rem);
}

.learning-lesson-hero > p:not(.eyebrow) {
    max-width: 640px;
    margin: 0;
    color: #566c76;
    font-size: 1.02rem;
    line-height: 1.6;
}

.learning-lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.learning-lesson-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5f1f6;
    color: #436e81;
    font-size: 0.72rem;
    font-weight: 800;
}

.learning-lesson-outcomes {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #b9d6e3;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.learning-lesson-outcomes__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.learning-lesson-outcomes__heading > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 12px;
    background: #e5f1f6;
}

.learning-lesson-outcomes h2 {
    margin: 2px 0 0;
    font-size: 1.05rem;
}

.learning-lesson-outcomes ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 10px;
    padding: 0;
    list-style: none;
}

.learning-lesson-outcomes li {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #edf7fb;
}

.learning-lesson-outcomes li span,
.learning-lesson-outcomes > p {
    color: #566c76;
    line-height: 1.45;
}

.learning-lesson-outcomes > p {
    margin: 0;
    font-size: 0.78rem;
}

.learning-lesson-block__heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.learning-lesson-block__heading > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    background: #dceef6;
    color: #2d718f;
    font-weight: 900;
}

.learning-lesson-block__heading h2 {
    margin: 3px 0 0;
    font-size: 1.35rem;
}

.learning-lesson-section + .learning-lesson-section {
    margin-top: 24px;
}

.learning-lesson-section h3 {
    margin: 0 0 9px;
}

.learning-lesson-section p,
.learning-lesson-block--understand > p {
    margin: 0;
    color: #445860;
    line-height: 1.75;
}

.learning-lesson-section p + p { margin-top: 13px; }

.learning-lesson-illustrations {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.learning-lesson-illustration {
    overflow: hidden;
    margin: 0;
    border: 1px solid #cbdde5;
    border-radius: 18px;
    background: #f8fbfc;
}

.learning-lesson-illustration__canvas {
    display: grid;
    min-height: 260px;
    place-items: center;
    background: #ffffff;
}

.learning-lesson-illustration__canvas--cropped {
    position: relative;
    min-height: 0;
    overflow: hidden;
    aspect-ratio: var(--illustration-crop-ratio);
}

.learning-lesson-illustration .learning-lesson-illustration__canvas--cropped img {
    position: absolute;
    inset: 0 auto auto 0;
    width: var(--illustration-image-width);
    max-width: none;
    transform: translate(
        calc(-1 * var(--illustration-crop-left)),
        calc(-1 * var(--illustration-crop-top))
    );
}

.learning-lesson-illustration img {
    display: block;
    width: 100%;
    height: auto;
}

.learning-lesson-illustration figcaption {
    display: grid;
    gap: 7px;
    padding: 14px 16px 12px;
    color: #445860;
    font-size: 0.9rem;
    line-height: 1.55;
}

.learning-lesson-illustration figcaption small {
    color: #667982;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.learning-lesson-block--understand {
    border-color: #e0c875;
    background: #fffdf7;
}

.learning-lesson-block--understand .learning-lesson-block__heading > span {
    background: #f7df91;
    color: #735918;
}

.learning-term-list {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.learning-term {
    overflow: hidden;
    border: 1px solid #dfce8e;
    border-radius: 14px;
    background: #ffffff;
}

.learning-term > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 15px;
    border: 0;
    background: transparent;
    color: #5f4c16;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.learning-term__definition {
    padding: 0 15px 14px;
}

.learning-term__definition p {
    margin: 0;
    color: #554f3d;
    line-height: 1.5;
}

.learning-term__definition small {
    display: block;
    margin-top: 7px;
    color: #7d7356;
    font-style: italic;
}

.learning-self-check-list {
    display: grid;
    gap: 16px;
}

.learning-self-check {
    padding: 18px;
    border: 1px solid #c9dce5;
    border-radius: 17px;
    background: #f7fbfd;
}

.learning-self-check > p:first-child {
    margin: 0 0 13px;
    color: #27383f;
    line-height: 1.45;
}

.learning-self-check__options {
    display: grid;
    gap: 8px;
}

.learning-self-check__options button {
    padding: 11px 13px;
    border: 1px solid #b9ced7;
    border-radius: 11px;
    background: #ffffff;
    color: #334951;
    text-align: left;
    cursor: pointer;
}

.learning-self-check__options button:hover:not(:disabled) {
    border-color: #5592ad;
    background: #edf7fb;
}

.learning-self-check__options button:disabled { cursor: default; opacity: 0.72; }
.learning-self-check__options .learning-self-check__option--correct { border-color: #4d9a76; background: #e1f4e9; color: #256347; opacity: 1; }
.learning-self-check__options .learning-self-check__option--wrong { border-color: #c8757c; background: #fdebed; color: #8b343b; opacity: 1; }

.learning-self-check__feedback {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.learning-self-check__feedback--correct { background: #dff3e8; color: #276b4c; }
.learning-self-check__feedback--wrong { background: #fbe7e9; color: #87353c; }

.learning-lesson-block--activity {
    border-color: #91c5b1;
    background: #f7fcfa;
}

.learning-lesson-block--activity .learning-lesson-block__heading > span {
    background: #d9f0e7;
    color: #2f7058;
}

.learning-lesson-block--activity > p {
    color: #445860;
    line-height: 1.65;
}

.learning-activity {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.learning-activity__row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.learning-activity__row--match {
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
}

.learning-activity__row > span:first-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #dff2ea;
    color: #326f58;
    font-weight: 900;
}

.learning-activity select,
.learning-activity input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #a9cdbf;
    border-radius: 11px;
    background: #ffffff;
    color: #2f4540;
    font: inherit;
}

.learning-activity__calculation {
    display: grid;
    grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 11px;
    font-weight: 800;
}

.learning-activity__calculation > span:last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.learning-activity__check {
    margin-top: 16px;
}

.learning-activity__feedback {
    margin: 12px 0 0;
    padding: 11px 13px;
    border-radius: 11px;
    line-height: 1.5;
}

.learning-activity__feedback--correct { background: #dff3e8; color: #276b4c; }
.learning-activity__feedback--wrong { background: #fbe7e9; color: #87353c; }

.learning-lesson-block--remember {
    border-color: #a99ad0;
    background: #fbf9ff;
}

.learning-lesson-block--remember .learning-lesson-block__heading > span {
    background: #e9e2f8;
    color: #674da2;
}

.learning-lesson-block--remember ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    color: #4e455f;
    line-height: 1.5;
}

.learning-flashcard-note {
    margin: 20px 0 0;
    padding: 13px 15px;
    border-radius: 13px;
    background: #eee9f8;
    color: #665a7e;
    font-size: 0.79rem;
    line-height: 1.45;
}

.learning-related-resources {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #d9d0ec;
}

.learning-related-resources h3 {
    margin: 0 0 12px;
    color: #554872;
    font-size: 1rem;
}

.learning-related-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.learning-related-resources button {
    display: grid;
    gap: 7px;
    padding: 15px;
    border: 1px solid #cbbfe6;
    border-radius: 14px;
    background: #ffffff;
    color: #463b60;
    text-align: left;
    cursor: pointer;
}

.learning-related-resources button:hover {
    border-color: #8f78bd;
    background: #f7f3ff;
}

.learning-related-resources button span {
    color: #655b78;
    font-size: 0.82rem;
    line-height: 1.45;
}

.learning-related-resources button em {
    color: #765bb0;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 850;
}

.learning-lesson-sources {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid #d9d0ec;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
}

.learning-lesson-sources > strong {
    color: #554872;
}

.learning-lesson-sources > p {
    margin: 6px 0 13px;
    color: #655b78;
    font-size: 0.8rem;
    line-height: 1.45;
}

.learning-lesson-sources > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.learning-lesson-sources a {
    padding: 7px 10px;
    border: 1px solid #cbbfe6;
    border-radius: 999px;
    background: #ffffff;
    color: #674da2;
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

.learning-lesson-sources a:hover {
    border-color: #8f78bd;
    background: #f7f3ff;
}

.learning-lesson-completion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-color: #83bda2;
    background: linear-gradient(145deg, #f9fdfb, #e5f4ec);
}

.learning-lesson-completion h2 {
    margin: 4px 0 6px;
}

.learning-lesson-completion p:last-child {
    margin: 0;
    color: #557064;
}

.learning-lesson-completion .primary-button:disabled {
    border-color: #4d9875;
    background: #4d9875;
    color: #ffffff;
    cursor: default;
    opacity: 1;
}

.learning-lesson-navigation {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.learning-lesson-navigation button {
    padding: 13px 15px;
    border: 1px solid #b9d1dc;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.85);
    color: #286d8b;
    font-weight: 800;
    cursor: pointer;
}

.learning-lesson-navigation button:last-child { text-align: right; }

@media (max-width: 760px) {
    .learning-topic-card,
    .learning-quiz-checkpoint {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .learning-topic-card__action,
    .learning-quiz-checkpoint__action {
        grid-column: 2;
        justify-self: start;
        max-width: none;
    }

    .learning-path-step {
        width: 92%;
    }
}

@media (max-width: 600px) {
    .learning-path-catalog__intro,
    .learning-subject-hero {
        align-items: flex-start;
        padding: 20px;
    }

    .learning-path-catalog__mascot,
    .learning-subject-hero__icon {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 18px;
    }

    .learning-path-catalog__mascot img { width: 72px; height: 72px; }

    .learning-subject-card {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 20px;
    }

    .learning-subject-card__icon { width: 52px; height: 52px; border-radius: 15px; }
    .learning-subject-card__progress-label { grid-column: 1 / -1; }
    .learning-subject-card__mascot { opacity: 0.07; }

    .learning-path-header {
        align-items: center;
    }

    .learning-path-header__badge {
        max-width: 145px;
        text-align: center;
    }

    .learning-topic-section__heading,
    .learning-path-module__heading,
    .learning-lesson-completion {
        align-items: flex-start;
        flex-direction: column;
    }

    .learning-topic-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 20px;
    }

    .learning-topic-card__action { grid-column: 1; }
    .learning-topic-card__number { width: 48px; height: 48px; }

    .learning-path-hero { padding: 22px; }
    .learning-path-hero__icon { width: 58px; height: 58px; flex-basis: 58px; }

    .learning-path-legend { gap: 9px 13px; }
    .learning-path-map { gap: 25px; }
    .learning-path-map::before { left: 25px; transform: none; }

    .learning-path-step,
    .learning-path-step--side-left,
    .learning-path-step--side-right {
        width: calc(100% - 14px);
        justify-self: end;
    }

    .learning-path-step > a {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 17px;
    }

    .learning-path-step__marker { width: 43px; height: 43px; }
    .learning-path-step__arrow { display: none; }

    .learning-quiz-checkpoint {
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
        gap: 13px;
        padding: 17px;
    }

    .learning-quiz-checkpoint__icon { width: 48px; height: 48px; border-radius: 14px; }
    .learning-quiz-checkpoint__action { grid-column: 1 / -1; width: 100%; }

    .learning-lesson-hero,
    .learning-lesson-block,
    .learning-lesson-completion {
        border-radius: 20px;
    }

    .learning-lesson-completion .primary-button { width: 100%; }
    .learning-activity__row--match,
    .learning-activity__calculation { grid-template-columns: 1fr; }
    .learning-lesson-navigation { grid-template-columns: 1fr; }
    .learning-lesson-navigation span { display: none; }
    .learning-lesson-navigation button:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .learning-subject-card,
    .learning-topic-card,
    .learning-path-step > a {
        transition: none;
    }
}
