/* ==========================================================
   LESSON TEMPLATE
========================================================== */

body.page-lesson-template {
    background: #060606;
    color: #f5f5f5;
}

.page-lesson-template .csp-page {
    overflow: hidden;
}

.lesson-template-page {
    padding-bottom: 40px;
}

.lesson-hero {
    position: relative;
    padding: 90px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(215, 25, 32, 0.16), transparent 32%),
        linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
}

.lesson-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
}

.lesson-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #a4a4a4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lesson-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.lesson-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.lesson-pill,
.lesson-number {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-number {
    border-color: rgba(215, 25, 32, 0.4);
    color: #d71920;
}

.lesson-hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: clamp(38px, 4.3vw, 66px);
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: uppercase;
}

.lesson-summary {
    max-width: 720px;
    margin: 0 0 24px;
    color: #b6b6b6;
    font-size: 17px;
    line-height: 1.8;
}

.lesson-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
    color: #8d8d8d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-progress__label {
    margin-bottom: 10px;
    color: #f1f1f1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-progress__bar {
    height: 4px;
    width: min(100%, 320px);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.lesson-progress__bar span {
    display: block;
    width: 8%;
    height: 100%;
    background: linear-gradient(90deg, #d71920, #ff5959);
}

.lesson-hero__visual {
    display: flex;
    justify-content: flex-end;
}

.lesson-hero__image {
    width: min(100%, 480px);
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    background:
        linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.44) 100%),
        radial-gradient(circle at 30% 20%, rgba(215, 25, 32, 0.28), transparent 36%),
        url("../images/hero/knowledge-center-hero.webp");
    background-size: cover;
    background-position: center;
}

.lesson-shell {
    padding: 24px 0 60px;
}

.lesson-shell__grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.lesson-nav {
    position: sticky;
    top: 28px;
}

.lesson-nav__card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(12, 12, 12, 0.84);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.lesson-nav__card h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lesson-nav__card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-nav__card li + li {
    margin-top: 8px;
}

.lesson-nav__card a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #c7c7c7;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lesson-nav__card a:hover,
.lesson-nav__card a.is-active {
    color: #fff;
    background: rgba(215, 25, 32, 0.14);
    transform: translateX(2px);
}

.lesson-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lesson-section {
    padding: 34px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.lesson-intro {
    margin: 0 0 20px;
    color: #c7c7c7;
    font-size: 18px;
    line-height: 1.8;
}

.lesson-quote {
    margin: 0 0 24px;
    padding: 20px 24px;
    border-left: 2px solid #d71920;
    background: rgba(215, 25, 32, 0.08);
    color: #f2f2f2;
    font-size: 20px;
    line-height: 1.7;
}

.lesson-section__heading {
    margin-bottom: 18px;
}

.lesson-section__heading h2,
.lesson-section__heading h3 {
    margin: 0;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.lesson-section p,
.lesson-section li {
    color: #b1b1b1;
    font-size: 16px;
    line-height: 1.8;
}

.lesson-section h3 {
    margin: 24px 0 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.lesson-checklist {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.lesson-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.lesson-checklist li::before {
    content: "✓";
    color: #d71920;
    font-weight: 700;
}

.lesson-callout {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid rgba(215, 25, 32, 0.25);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(255, 255, 255, 0.03));
}

.lesson-callout strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lesson-list {
    margin: 18px 0 0;
    padding-left: 18px;
}

.lesson-list li + li {
    margin-top: 8px;
}

.lesson-example {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.lesson-example h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-image-block {
    margin: 24px 0 0;
}

.lesson-image-block__frame {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.5) 100%),
        radial-gradient(circle at 70% 30%, rgba(215, 25, 32, 0.2), transparent 36%),
        url("../images/hero/hero-placeholder.jpg");
    background-size: cover;
    background-position: center;
}

.lesson-caption {
    margin: 10px 0 0;
    color: #8a8a8a;
    font-size: 13px;
    font-style: italic;
}

.lesson-video {
    display: grid;
    grid-template-columns: minmax(300px, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.lesson-video__placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background:
        linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.44) 100%),
        radial-gradient(circle at 35% 30%, rgba(215, 25, 32, 0.26), transparent 32%),
        url("../images/hero/knowledge-center-hero.webp");
    background-size: cover;
    background-position: center;
}

.lesson-video__play {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 24px;
}

.lesson-video__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lesson-video__body h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.lesson-video__body p {
    margin: 0 0 18px;
    color: #b1b1b1;
    font-size: 15px;
    line-height: 1.75;
}

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

.lesson-takeaway-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.lesson-takeaway-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(215, 25, 32, 0.16);
    color: #d71920;
    font-weight: 800;
}

.lesson-takeaway-card p {
    margin: 0;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.7;
}

.lesson-downloads {
    display: grid;
    gap: 16px;
}

.lesson-download-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.lesson-download-card__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(215, 25, 32, 0.14);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-download-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
}

.lesson-download-card p {
    margin: 0;
    color: #b4b4b4;
    font-size: 14px;
    line-height: 1.6;
}

.lesson-download-card a {
    color: #d71920;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.lesson-section--accent {
    padding: 34px;
    border: 1px solid rgba(215, 25, 32, 0.2);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(215, 25, 32, 0.12), rgba(255, 255, 255, 0.03));
}

.lesson-continue {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.lesson-continue__panel {
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.lesson-continue__panel--next {
    border-color: rgba(215, 25, 32, 0.25);
}

.lesson-continue__label {
    margin: 0 0 8px;
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lesson-continue__panel h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
}

.lesson-link {
    display: inline-block;
    margin-top: 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.lesson-continue__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.lesson-continue__progress {
    flex: 1;
    min-width: 220px;
}

.lesson-continue__progress-label {
    margin-bottom: 8px;
    color: #cfcfcf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-continue__progress-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.lesson-continue__progress-bar span {
    display: block;
    width: 46%;
    height: 100%;
    background: linear-gradient(90deg, #d71920, #ff5959);
}

.lesson-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lesson-related-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.025);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.lesson-related-card:hover {
    transform: translateY(-6px);
    border-color: rgba(215, 25, 32, 0.3);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.lesson-related-card__thumb {
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(circle at 70% 30%, rgba(215, 25, 32, 0.22), transparent 35%),
        url("../images/hero/knowledge-center-hero.webp");
    background-size: cover;
    background-position: center;
}

.lesson-related-card__thumb--alt {
    background-image:
        linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(circle at 70% 30%, rgba(215, 25, 32, 0.22), transparent 35%),
        url("../images/hero/hero-placeholder.jpg");
}

.lesson-related-card__thumb--alt2 {
    background-image:
        linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(circle at 70% 30%, rgba(215, 25, 32, 0.22), transparent 35%),
        url("../images/hero/knowledge-center-hero.webp");
}

.lesson-related-card__body {
    padding: 20px;
}

.lesson-related-card__body span {
    color: #d71920;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lesson-related-card__body h3 {
    margin: 10px 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.lesson-related-card__body p {
    margin: 0;
    color: #a4a4a4;
    font-size: 14px;
}

.lesson-cta {
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(215, 25, 32, 0.18), transparent 28%), rgba(255, 255, 255, 0.025);
    text-align: center;
}

.lesson-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-family: Oswald, sans-serif;
    font-size: 28px;
    line-height: 1.2;
    text-transform: uppercase;
}

.lesson-cta p {
    max-width: 700px;
    margin: 0 auto 20px;
    color: #b6b6b6;
    font-size: 16px;
    line-height: 1.8;
}

@keyframes lessonFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-hero__content,
.lesson-hero__visual,
.lesson-nav__card,
.lesson-section,
.lesson-video,
.lesson-related-card,
.lesson-cta {
    animation: lessonFadeUp 0.8s ease both;
}

@media (max-width: 1100px) {
    .lesson-shell__grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .lesson-video {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .lesson-hero__inner {
        grid-template-columns: 1fr;
    }

    .lesson-hero__visual {
        justify-content: flex-start;
    }

    .lesson-shell__grid {
        grid-template-columns: 1fr;
    }

    .lesson-nav {
        position: static;
        margin-bottom: 18px;
    }

    .lesson-nav__card {
        padding: 18px 20px;
    }

    .lesson-related__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .lesson-hero {
        padding-top: 70px;
    }

    .lesson-takeaways,
    .lesson-continue,
    .lesson-download-card {
        grid-template-columns: 1fr;
    }

    .lesson-download-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-continue__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lesson-continue__progress {
        min-width: 0;
    }

    .lesson-cta {
        padding: 28px 22px;
    }
}

@media (max-width: 540px) {
    .lesson-hero__stats {
        flex-direction: column;
        gap: 10px;
    }

    .lesson-section--accent {
        padding: 24px;
    }

    .lesson-video__body h3 {
        font-size: 20px;
    }
}
