/* Kurzusok – lista, lépés, teszt */

.courses-page {
    background: #f8fafc;
}

.courses-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2d52 0%, #153d5c 45%, #1f4d3e 100%);
    color: #fff;
    padding: 3.5rem 0 5.5rem;
    overflow: hidden;
}

.courses-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.courses-hero__container {
    position: relative;
    z-index: 1;
}

.courses-hero__eyebrow,
.course-hero__eyebrow,
.course-step__kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.course-step__kicker {
    color: #1f6b4f;
}

.courses-hero__title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.courses-hero__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin: 0;
}

.courses-hero__panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
}

.courses-hero__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.courses-hero__panel-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-weight: 600;
}

.courses-hero__panel-list span {
    color: #3cb371;
    font-weight: 800;
}

.courses-page__body {
    padding: 0 0 3.5rem;
}

.courses-filter {
    position: relative;
    z-index: 5;
    margin-top: -2.75rem;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(15, 45, 82, 0.1);
    border: 1px solid rgba(15, 45, 82, 0.06);
}

.courses-filter__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 1rem;
}

.courses-filter__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.courses-filter__field {
    min-width: 0;
}

.courses-filter__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f2d52;
    margin-bottom: 0.4rem;
}

.courses-filter__label--hidden {
    visibility: hidden;
    height: 0;
    margin: 0;
}

.courses-filter__input,
.courses-filter__select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 1rem;
    font-size: 1rem;
    line-height: 1.3;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.courses-filter__select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%230f2d52' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
}

.courses-filter__input:focus,
.courses-filter__select:focus {
    outline: none;
    border-color: #3cb371;
    box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.2);
    background-color: #fff;
}

.courses-filter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 120px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f2d52 0%, #1f6b4f 100%);
}

.courses-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.75rem;
}

.courses-intro__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d52;
    margin: 0;
}

.courses-intro__count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.course-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 82, 0.06);
    box-shadow: 0 10px 36px rgba(15, 45, 82, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(15, 45, 82, 0.14);
}

.course-card--done {
    background: #f1f5f9;
}

.course-card--done .course-card__media img {
    filter: grayscale(1);
}

.course-card--done .course-card__title a,
.course-card--done .course-card__summary,
.course-card--done .course-card__cta {
    color: #64748b;
}

.course-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
    text-decoration: none;
    background:
        radial-gradient(ellipse 85% 65% at 18% 12%, rgba(60, 179, 113, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 92% 88%, rgba(15, 45, 82, 0.12) 0%, transparent 52%),
        linear-gradient(152deg, #edf2f6 0%, #e8f2ec 38%, #e2eaf5 100%);
}

.course-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: transform 0.45s ease;
}

.course-card:hover .course-card__media img {
    transform: scale(1.02);
}

.course-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 85% 65% at 18% 12%, rgba(60, 179, 113, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 92% 88%, rgba(15, 45, 82, 0.12) 0%, transparent 52%),
        linear-gradient(152deg, #edf2f6 0%, #e8f2ec 38%, #e2eaf5 100%);
}

.course-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: #fff;
    color: #1f6b4f;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.course-card__badge--new {
    left: auto;
    right: 1rem;
    background: #3cb371;
    color: #fff;
}

.course-card__badge--draft {
    left: auto;
    right: 1rem;
    background: #92400e;
    color: #fff7ed;
}

.course-card__badge--done {
    left: auto;
    right: 1rem;
    background: #64748b;
    color: #fff;
}

.course-card__ring {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.course-card__ring .progress-ring {
    width: 56px;
    height: 56px;
}

.course-card__ring .progress-ring span {
    width: 42px;
    height: 42px;
    font-size: 0.68rem;
}

.course-draft-flag {
    display: inline-block;
    background: #92400e;
    color: #fff7ed;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
}

.course-card__body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card__title {
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0 0 0.6rem;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__title a {
    color: #0f2d52;
    text-decoration: none;
}

.course-card__title a:hover {
    color: #1f6b4f;
}

.course-card__summary {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.15rem;
    font-weight: 600;
}

.course-card__dot {
    margin: 0 0.35rem;
}

.course-card__cta {
    font-weight: 700;
    color: #0f2d52;
}

.courses-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.courses-empty__title {
    font-weight: 800;
    color: #0f2d52;
}

/* —— Overview / step —— */
.course-hero {
    background: linear-gradient(125deg, #0c2444 0%, #0f2d52 38%, #1a5c48 100%);
    color: #fff;
    padding: 2.5rem 0 2.75rem;
}

.course-hero__back {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.course-hero__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.course-hero__copy {
    min-width: 0;
}

.course-hero--cover .course-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    grid-template-areas: "copy visual";
}

.course-hero--cover .course-hero__copy {
    grid-area: copy;
}

.course-hero--cover .course-hero__visual {
    grid-area: visual;
}

.course-hero__title {
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.18;
    max-width: 44rem;
    margin: 0 0 0.85rem;
    overflow-wrap: break-word;
}

.course-hero__visual {
    background:
        radial-gradient(ellipse 85% 65% at 18% 12%, rgba(60, 179, 113, 0.18) 0%, transparent 55%),
        linear-gradient(152deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border-radius: 22px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-hero__cover {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 340px;
    object-fit: contain;
    padding: 1rem;
}

.course-hero__lead {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
}

.course-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 1rem;
}

.course-hero__progress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.15rem;
    font-weight: 700;
}

.course-hero__progress .progress-ring span {
    background: #0f2d52;
    color: #fff;
}

.course-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
    overflow: hidden;
    max-width: 20rem;
    margin-bottom: 1.25rem;
}

.course-progress__bar {
    display: block;
    height: 100%;
    background: #3cb371;
    border-radius: 99px;
}

.course-progress--rail {
    max-width: none;
    background: #e2e8f0;
    margin: 0.75rem 0 1rem;
}

.btn-course-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3cb371;
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.35rem;
    text-decoration: none;
}

.btn-course-primary:hover {
    color: #fff;
    background: #2f9a5f;
}

.btn-course-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    border-radius: 12px;
    padding: 0.75rem 1.35rem;
    text-decoration: none;
}

.btn-course-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

.course-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.course-overview {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    padding-left: var(--site-padding-x);
    padding-right: var(--site-padding-x);
    display: grid;
    gap: 2.5rem;
    max-width: 760px;
}

.course-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f2d52;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.course-about__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
    white-space: pre-line;
}

.course-thesis {
    border: none;
    background: #f0fdf4;
    border-left: 4px solid #3cb371;
    border-radius: 0 16px 16px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 0;
}

.course-thesis p {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f2d52;
    line-height: 1.55;
}

.course-learn__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.course-learn__list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    color: #0f2d52;
}

.course-learn__num {
    width: 2rem;
    height: 2rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: #0f2d52;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.course-learn__title {
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: break-word;
}

.course-learn__note {
    margin: 1rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.course-toc {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.course-toc__item a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: #0f2d52;
}

.course-toc__item--done a {
    border-color: rgba(60, 179, 113, 0.35);
}

.course-toc__num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0f2d52;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.course-toc__item--quiz .course-toc__num {
    background: #1f6b4f;
}

.course-toc__title {
    font-weight: 700;
}

.course-hero__hint {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 28rem;
}

.course-toc__locked {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px dashed rgba(15, 45, 82, 0.18);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    color: #0f2d52;
}

.course-step-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 var(--site-padding-x) 3rem;
}

.course-rail {
    padding: 2rem 1.25rem 2rem 0;
    position: sticky;
    top: var(--navbar-height);
    align-self: start;
    max-height: calc(100vh - var(--navbar-height));
    overflow: auto;
}

.course-rail__course {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.course-rail__link {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.course-rail__link span {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #e2e8f0;
    color: #0f2d52;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.course-rail__link.is-current {
    background: #ecfdf5;
    color: #0f2d52;
}

.course-rail__link.is-done span,
.course-rail__link.is-current span {
    background: #3cb371;
    color: #fff;
}

.course-step {
    padding: 2rem 0 0 1.5rem;
    max-width: 46rem;
}

.course-step__title {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f2d52;
    margin-bottom: 1.25rem;
}

.course-step__body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #1e293b;
}

.course-step__body p {
    margin-bottom: 1.1rem;
}

.course-drills {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.course-drills h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d52;
}

.course-drills__lead {
    color: #64748b;
    margin-bottom: 1rem;
}

.course-drills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.course-step__nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.course-step__nav-btn {
    align-self: center;
    font-weight: 700;
    color: #0f2d52;
    text-decoration: none;
}

.course-quiz-page {
    background: #f4f7fb;
}

.course-quiz {
    padding: 0 0 4rem;
}

.course-quiz__hero {
    background: linear-gradient(125deg, #0c2444 0%, #0f2d52 42%, #1a5c48 100%);
    color: #fff;
    padding: 2.25rem 0 2.5rem;
}

.course-quiz__hero--pass {
    background: linear-gradient(125deg, #0f2d52 0%, #14532d 55%, #166534 100%);
}

.course-quiz__hero--retry {
    background: linear-gradient(125deg, #0f2d52 0%, #1e3a5f 60%, #334155 100%);
}

.course-quiz__hero-inner {
    max-width: 760px;
}

.course-quiz__back {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere;
}

.course-quiz__back:hover {
    color: #fff;
}

.course-quiz__course-name {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.4;
    max-width: 36rem;
    overflow-wrap: anywhere;
}

.course-quiz__eyebrow {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.65rem;
}

.course-quiz__title {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    margin: 0 0 0.6rem;
    color: inherit;
}

.course-quiz__lead {
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
    line-height: 1.65;
    max-width: 40rem;
}

.course-quiz__score {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.course-quiz__score .progress-ring {
    width: 84px;
    height: 84px;
    background: conic-gradient(#3cb371 calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0);
}

.course-quiz__hero--retry .progress-ring {
    background: conic-gradient(#f59e0b calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0);
}

.course-quiz__score .progress-ring span {
    width: 64px;
    height: 64px;
    font-size: 0.95rem;
    background: #0f2d52;
    color: #fff;
}

.course-quiz__body {
    max-width: 760px;
    width: 100%;
    margin-top: -1.25rem;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.course-quiz__status {
    position: sticky;
    top: calc(var(--navbar-height) + 8px);
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1.15rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 45, 82, 0.12);
}

.course-quiz__status-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f2d52;
    margin-bottom: 0.55rem;
}

.course-quiz__meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.course-quiz__meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1f6b4f, #3cb371);
    border-radius: 99px;
    transition: width 0.25s ease;
}

@media (max-width: 991.98px) {
    .course-quiz__status {
        top: calc(64px + 8px);
    }
}

.quiz-q {
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 22px;
    padding: 1.35rem 1.4rem 1.25rem;
    margin: 0 0 1.15rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.05);
    min-inline-size: 0;
    min-width: 0;
}

.quiz-q__head {
    margin: 0 0 1.1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #eef2f6;
}

.quiz-q__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1f6b4f;
}

.quiz-q__prompt {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f2d52;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.quiz-q__opts {
    display: grid;
    gap: 0.65rem;
}

.quiz-q__opt {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.quiz-q__opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quiz-q__opt:hover {
    border-color: #93c5a8;
    background: #fff;
}

.quiz-q__opt:has(input:focus-visible) {
    outline: 2px solid #3cb371;
    outline-offset: 2px;
}

.quiz-q__opt:has(input:checked) {
    background: #f0fdf4;
    border-color: #3cb371;
    box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.18);
}

.quiz-q__letter {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #1f6b4f;
    background: #fff;
    border: 1px solid #dbe7e0;
    flex-shrink: 0;
}

.quiz-q__opt:has(input:checked) .quiz-q__letter {
    background: #3cb371;
    color: #fff;
    border-color: #3cb371;
}

.quiz-q__text {
    color: #1e293b;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    min-width: 0;
    padding-top: 0.15rem;
}

.quiz-q__opt--static {
    cursor: default;
}

.quiz-q__opt--static.is-key {
    background: #f0fdf4;
    border-color: #86efac;
}

.quiz-q__opt--static.is-miss {
    background: #fef2f2;
    border-color: #fecaca;
}

.quiz-q__opt--static.is-key .quiz-q__letter {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.quiz-q__opt--static.is-miss .quiz-q__letter {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.quiz-q__tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #166534;
    background: #dcfce7;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.quiz-q__tag--miss {
    color: #991b1b;
    background: #fee2e2;
}

.course-quiz__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 45, 82, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.06);
}

.course-quiz__hint {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.88rem;
    max-width: 28rem;
}

.course-quiz__actions-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.15rem;
}

.course-quiz__submit {
    min-width: 160px;
}

.course-quiz__ghost {
    font-weight: 700;
    color: #0f2d52;
    text-decoration: none;
}

.course-quiz__ghost:hover {
    color: #1f6b4f;
}

.quiz-results {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.quiz-result {
    border-radius: 22px;
    padding: 1.25rem 1.3rem 1.2rem;
    border: 1px solid rgba(15, 45, 82, 0.08);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.05);
}

.quiz-result.is-correct {
    border-color: rgba(22, 163, 74, 0.28);
}

.quiz-result.is-wrong {
    border-color: rgba(220, 38, 38, 0.22);
}

.quiz-result__head {
    margin-bottom: 1rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid #eef2f6;
}

.quiz-result__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.45rem;
}

.quiz-result__meta .quiz-q__kicker {
    margin: 0;
}

.quiz-result__badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
}

.quiz-result.is-correct .quiz-result__badge {
    background: #dcfce7;
    color: #166534;
}

.quiz-result.is-wrong .quiz-result__badge {
    background: #fee2e2;
    color: #991b1b;
}

.quiz-result__prompt {
    font-weight: 800;
    font-size: 1.08rem;
    color: #0f2d52;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.quiz-result__why {
    margin: 0.9rem 0 0;
    color: #475569;
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    line-height: 1.55;
}

/* Pitch diagrams */
.pitch-figure {
    margin: 0 0 1.75rem;
}

.pitch-figure figcaption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.65rem;
}

.pitch {
    border-radius: 16px;
    overflow: hidden;
    background: #166534;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.pitch__field {
    position: relative;
    min-height: 220px;
}

.pitch--tall .pitch__field {
    min-height: 280px;
}

.pitch--mini .pitch__field {
    min-height: 160px;
}

.pitch__lanes {
    position: absolute;
    inset: 0;
    display: grid;
}

.pitch__lanes span {
    border-right: 1px dashed rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 4px 10px;
    text-align: center;
    line-height: 1.2;
}

.pitch__lanes--3 { grid-template-columns: repeat(3, 1fr); }
.pitch__lanes--4 { grid-template-columns: repeat(4, 1fr); }
.pitch__lanes--5 { grid-template-columns: repeat(5, 1fr); }

.pitch__half {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}

.pitch__box {
    position: absolute;
    left: 22%;
    right: 22%;
    height: 18%;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.pitch__box--top { top: 0; border-top: none; }
.pitch__box--bottom { bottom: 0; border-bottom: none; }

.pitch-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.pitch-compare__label {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f2d52;
    margin-bottom: 0.35rem;
}

.pitch-compare__note {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.4rem 0 0;
}

.pitch-compare__item--active .pitch {
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #3cb371;
}

.pitch__defenders,
.pitch__attackers {
    position: absolute;
    left: 6%;
    right: 6%;
    display: flex;
    justify-content: space-around;
}

.pitch__defenders { top: 18%; }
.pitch__attackers { bottom: 18%; }

.pitch__defenders i,
.pitch__attackers i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0f2d52;
}

.pitch__attackers i {
    background: #f8fafc;
    box-shadow: 0 0 0 2px rgba(15, 45, 82, 0.2);
}

.pitch--lines .pitch__field {
    display: grid;
    grid-template-rows: 1fr auto 1fr auto 1fr;
    min-height: 240px;
}

.pitch__hzone {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(15, 45, 82, 0.28);
}

.pitch__between {
    background: rgba(60, 179, 113, 0.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.35rem;
}

.pitch__dots {
    position: absolute;
    inset: 0;
}

.pitch__dot {
    position: absolute;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-bottom: -7px;
    border-radius: 50%;
    background: #f8fafc;
    box-shadow: 0 0 0 3px rgba(15, 45, 82, 0.25);
}

.pitch-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.5rem;
    align-items: stretch;
}

.pitch-flow__step {
    background: #0f2d52;
    color: #fff;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pitch-flow__num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #3cb371;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.pitch-flow__step span:last-child {
    font-size: 0.82rem;
    opacity: 0.85;
}

.pitch-flow__arrow {
    align-self: center;
    font-size: 1.4rem;
    color: #1f6b4f;
    font-weight: 800;
}

.pitch__swap {
    position: absolute;
    inset: 8%;
    width: 84%;
    height: 84%;
}

.course-detail-page .course-hero__back {
    color: inherit;
}

.course-quiz .course-hero__back {
    color: #64748b;
}

@media (max-width: 900px) {
    .courses-filter {
        padding: 1.2rem 1.15rem 1.3rem;
        margin-top: -2.15rem;
        border-radius: 18px;
    }

    .courses-filter__grid {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.9rem 0.75rem;
    }

    .courses-filter__field--search {
        grid-column: 1 / -1;
    }

    .course-overview {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        gap: 1.75rem;
    }

    .course-hero {
        padding: 1.75rem 0 2rem;
    }

    .course-hero__inner,
    .course-quiz__hero-inner,
    .course-quiz__body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .course-hero--cover .course-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "visual"
            "copy";
        gap: 1.25rem;
        align-items: stretch;
    }

    .course-hero__title {
        font-size: 1.7rem;
        max-width: none;
        margin-bottom: 0.7rem;
    }

    .course-hero__visual {
        min-height: 0;
        border-radius: 16px;
    }

    .course-hero__cover {
        max-height: 240px;
        padding: 0.75rem;
    }

    .course-hero .btn-course-primary,
    .course-hero .btn-course-secondary {
        width: 100%;
    }

    .course-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-thesis {
        padding: 1rem 1.1rem;
        margin-top: 1.15rem;
    }

    .course-thesis p {
        font-size: 1.02rem;
    }

    .course-learn__list li {
        padding: 0.85rem 0.95rem;
    }

    .course-step-layout {
        grid-template-columns: 1fr;
    }

    .course-rail {
        position: static;
        max-height: none;
        padding: 1.25rem 0 0;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
    }

    .course-step {
        padding-left: 0;
    }

    .pitch-compare,
    .pitch-flow {
        grid-template-columns: 1fr;
    }

    .pitch-flow__arrow {
        transform: rotate(90deg);
    }

    .course-quiz__score {
        flex-direction: column;
        align-items: flex-start;
    }

    .course-quiz__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .course-quiz__submit {
        width: 100%;
        text-align: center;
    }

    .course-quiz__actions-end {
        flex-direction: column;
        align-items: stretch;
    }

    .course-quiz__ghost {
        text-align: center;
    }

    .quiz-q__opt {
        grid-template-columns: auto 1fr;
        gap: 0.7rem;
        padding: 0.8rem 0.85rem;
    }

    .quiz-q__tag {
        grid-column: 2;
        justify-self: start;
    }

    .course-quiz__body {
        margin-top: -0.75rem;
    }

    .quiz-q,
    .quiz-result,
    .course-quiz__status,
    .course-quiz__actions {
        border-radius: 16px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .quiz-q {
        padding-top: 1.1rem;
        padding-bottom: 1rem;
    }

    .quiz-q__prompt,
    .quiz-result__prompt {
        font-size: 1.02rem;
    }

    .course-quiz__hero {
        padding: 1.6rem 0 2rem;
    }

    .course-quiz__title {
        font-size: 1.45rem;
    }

    .course-quiz__status-top {
        font-size: 0.75rem;
    }

    .course-quiz__status {
        top: calc(64px + 8px);
        padding-top: 0.75rem;
        padding-bottom: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .courses-hero {
        padding: 2.35rem 0 4.25rem;
    }

    .course-hero {
        padding: 1.35rem 0 1.6rem;
    }

    .course-hero__back {
        margin-bottom: 0.85rem;
    }

    .course-hero__title {
        font-size: 1.42rem;
        letter-spacing: -0.02em;
    }

    .course-hero__cover {
        max-height: 190px;
        padding: 0.55rem;
    }

    .course-hero__meta {
        font-size: 0.82rem;
        margin-bottom: 0.85rem;
    }

    .course-hero__progress {
        margin-bottom: 1rem;
    }

    .course-section-title {
        font-size: 1.18rem;
    }

    .course-about__text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .course-learn__list li {
        gap: 0.7rem;
        padding: 0.8rem 0.85rem;
        border-radius: 12px;
    }

    .courses-filter {
        padding: 1.1rem 1rem 1.2rem;
        margin-top: -1.85rem;
    }

    .courses-filter__title {
        margin-bottom: 0.85rem;
    }

    .courses-filter__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        align-items: stretch;
    }

    .courses-filter__field--search,
    .courses-filter__field--submit {
        grid-column: auto;
    }

    .courses-filter__label--hidden {
        display: none;
    }

    .courses-filter__btn {
        width: 100%;
        min-width: 0;
    }
}

.course-complete-modal .modal-dialog {
    max-width: 440px;
    margin: 1.25rem auto;
}

.course-complete-modal__content {
    position: relative;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 45, 82, 0.32);
}

.course-complete-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.course-complete-modal__close:hover,
.course-complete-modal__close:focus-visible {
    background: rgba(255, 255, 255, 0.26);
    outline: none;
}

.course-complete-modal__top {
    background: linear-gradient(145deg, #0f2d52 0%, #14532d 58%, #166534 100%);
    color: #fff;
    text-align: center;
    padding: 2.1rem 1.5rem 1.45rem;
}

.course-complete-modal__medal {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: radial-gradient(circle at 32% 28%, #86efac, #22c55e 48%, #15803d);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.course-complete-modal__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.course-complete-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.course-complete-modal__lead {
    margin: 0 auto;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
    font-size: 0.95rem;
}

.course-complete-modal__body {
    padding: 1.2rem 1.25rem 1.35rem;
    background: #fff;
}

.course-complete-modal__badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f0fdf4;
    border: 1px solid rgba(60, 179, 113, 0.3);
}

.course-complete-modal__badge-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #3cb371;
    color: #fff;
    font-size: 1.15rem;
}

.course-complete-modal__badge-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.course-complete-modal__badge-copy strong {
    color: #0f2d52;
    font-size: 1rem;
    line-height: 1.3;
}

.course-complete-modal__badge-copy span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.course-complete-modal__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0.9rem 0 1.1rem;
}

.course-complete-modal__stats > div {
    margin: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.course-complete-modal__stats dt {
    margin: 0 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.course-complete-modal__stats dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d52;
}

.course-complete-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.course-complete-modal__actions .btn {
    width: 100%;
}

.course-complete-modal__review {
    border: 0;
    background: none;
    color: #0f2d52;
    font-weight: 700;
    padding: 0.35rem;
    cursor: pointer;
}

.course-complete-modal__review:hover,
.course-complete-modal__review:focus-visible {
    color: #1f6b4f;
}

@media (prefers-reduced-motion: reduce) {
    .course-complete-modal.fade {
        transition: none;
    }
}
