/*
  pro-trading-education.css
  Static HTML/CSS mockup for ChartsAndSetups.com pro education page.
  Designed to sit inside the existing user-no-nav content area beside the real left menu.
*/

:root {
    --te-max: 1380px;
    --te-bg: #02070f;
    --te-panel: rgba(9, 20, 32, 0.92);
    --te-panel-2: rgba(11, 24, 38, 0.94);
    --te-line: rgba(255, 255, 255, 0.10);
    --te-line-strong: rgba(255, 255, 255, 0.16);
    --te-text: #f5f1e8;
    --te-muted: rgba(245, 241, 232, 0.70);
    --te-soft: rgba(245, 241, 232, 0.52);
    --te-gold: #d89b35;
    --te-gold-light: #f4c86a;
    --te-green: #b06cff;
    --te-green-soft: rgba(176, 108, 255, 0.13);
    --te-radius: 18px;
    --te-radius-sm: 12px;
    --te-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
    --te-font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --te-font-display: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

.education-preview-body {
    min-height: auto;
    margin: 0;
    font-family: var(--te-font-ui);
    background:
        radial-gradient(circle at 7% 18%, rgba(0, 96, 160, 0.18), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(216, 155, 53, 0.14), transparent 22%),
        linear-gradient(180deg, #06111d 0%, #02070f 100%);
    color: var(--te-text);
}

.te-page {
    width: min(var(--te-max), 100%) !important;
    max-width: var(--te-max) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 14px 0 42px;
    color: var(--te-text);
    display: grid;
    gap: 14px;
}

/* Hero */
.te-hero {
    position: relative;
    overflow: hidden;
    min-height: 285px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.11);
    background-image:
        var(--te-hero-image),
        radial-gradient(circle at 92% 20%, rgba(176, 108, 255, 0.15), transparent 24%),
        linear-gradient(135deg, rgba(13,28,44,0.78), rgba(5,12,22,0.92));
    background-size: cover, cover, cover, cover;
    background-position: center, center, center, center;
    box-shadow: var(--te-shadow);
    isolation: isolate;
}

.te-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(176,108,255,0.09), transparent 26%),
        linear-gradient(180deg, transparent, rgba(0,0,0,0.14));
    pointer-events: none;
    z-index: 0;
}

.te-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 38px 42px;
}

.te-eyebrow,
.te-section-heading > span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(176,108,255,0.28);
    background: rgba(176,108,255,0.08);
    color: #d9b8ff;
    font-size: 0.70rem;
    font-weight: 950;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.te-hero h1 {
    margin: 14px 0 10px;
    font-family: var(--te-font-display);
    font-size: clamp(2.35rem, 4vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 500;
    color: #fff8e8;
}

.te-hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(245,241,232,0.78);
    font-size: 1.02rem;
    line-height: 1.55;
}

.te-hero-points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.te-hero-point {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 142px;
}

.te-hero-point img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex: 0 0 36px;
    filter: drop-shadow(0 0 12px rgba(176,108,255,0.22));
}

.te-hero-point span {
    color: rgba(245,241,232,0.88);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.2;
}

/* Helper strip */
.te-helper-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.te-helper-card {
    min-width: 0;
    min-height: 104px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 14px 15px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
        radial-gradient(circle at 100% 0%, rgba(176,108,255,0.08), transparent 28%),
        linear-gradient(180deg, rgba(12,27,44,0.91), rgba(6,16,28,0.93));
    box-shadow: 0 14px 42px rgba(0,0,0,0.22);
}

.te-helper-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.te-helper-card span {
    display: block;
    margin-bottom: 4px;
    color: #eadbff;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.te-helper-card p {
    margin: 0;
    color: rgba(245,241,232,0.66);
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Content */
.te-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 14px;
    align-items: start;
}

.te-lessons-panel,
.te-resource-card {
    border-radius: var(--te-radius);
    border: 1px solid rgba(255,255,255,0.10);
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,0.035), transparent 28%),
        linear-gradient(180deg, rgba(12,27,44,0.94), rgba(7,17,29,0.94));
    box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.te-lessons-panel {
    padding: 18px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.te-section-heading h2 {
    margin: 10px 0 8px;
    color: #fff8e8;
    font-family: var(--te-font-display);
    font-size: 1.62rem;
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.te-section-heading p {
    margin: 0;
    max-width: 860px;
    color: rgba(245,241,232,0.68);
    font-size: 0.92rem;
    line-height: 1.55;
}

.te-topic-block {
    position: relative;
    display: grid;
    gap: 13px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(176,108,255,0.16);
    background:
        radial-gradient(circle at 0% 0%, rgba(176,108,255,0.11), transparent 32%),
        linear-gradient(180deg, rgba(12,30,45,0.58), rgba(5,14,25,0.34));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.035),
        0 14px 40px rgba(0,0,0,0.16);
    overflow: hidden;
}

.te-topic-block::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(176,108,255,0.95), rgba(176,108,255,0.12));
    box-shadow: 0 0 18px rgba(176,108,255,0.25);
    pointer-events: none;
}

.te-topic-block::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(176,108,255,0.10), transparent 64%);
    pointer-events: none;
}

.te-topic-heading {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 2px 2px 0;
}

.te-topic-heading > span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(176,108,255,0.46);
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,0.16), transparent 34%),
        rgba(176,108,255,0.14);
    color: #eadbff;
    font-size: 0.95rem;
    font-weight: 950;
    box-shadow:
        0 0 0 4px rgba(176,108,255,0.045),
        0 0 24px rgba(176,108,255,0.16);
}

.te-topic-heading h3 {
    margin: 0 0 5px;
    color: #fff;
    font-family: var(--te-font-display);
    font-size: 1.42rem;
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.te-topic-heading p {
    max-width: 760px;
    margin: 0;
    color: rgba(245,241,232,0.66);
    font-size: 0.86rem;
    line-height: 1.48;
}

.te-topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.te-topic-meta span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(176,108,255,0.19);
    background: rgba(176,108,255,0.075);
    color: rgba(235,219,255,0.88);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.te-topic-block .te-accordion,
.te-topic-block .te-callout {
    position: relative;
    z-index: 1;
}

.te-accordion {
    display: grid;
    gap: 9px;
}

.te-lesson {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.085);
    background: rgba(4,12,22,0.48);
    overflow: hidden;
}

.te-lesson[open] {
    border-color: rgba(176,108,255,0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(176,108,255,0.06), transparent 30%),
        rgba(4,12,22,0.58);
}

.te-lesson summary {
    min-height: 54px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    gap: 11px;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    list-style: none;
}

.te-lesson summary::-webkit-details-marker {
    display: none;
}

.te-lesson summary::after {
    content: "›";
    color: var(--te-green);
    font-size: 1.25rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform .18s ease;
}

.te-lesson[open] summary::after {
    transform: rotate(-90deg);
}

.te-lesson summary > span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(176,108,255,0.11);
    border: 1px solid rgba(176,108,255,0.20);
    color: #d9b8ff;
    font-size: 0.72rem;
    font-weight: 950;
}

.te-lesson summary strong {
    color: rgba(245,241,232,0.92);
    font-size: 0.93rem;
    font-weight: 900;
    line-height: 1.25;
}

.te-lesson-body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
    gap: 18px;
    padding: 0 14px 16px 57px;
}

.te-lesson-copy {
    min-width: 0;
}

.te-lesson-copy p {
    margin: 0 0 10px;
    color: rgba(245,241,232,0.72);
    font-size: 0.88rem;
    line-height: 1.58;
}

.te-lesson-copy ul {
    margin: 0;
    padding-left: 18px;
    color: rgba(245,241,232,0.68);
    font-size: 0.84rem;
    line-height: 1.5;
}

.te-lesson-copy li + li {
    margin-top: 4px;
}

.te-video-card {
    min-width: 0;
}

.te-video-frame {
    min-height: 240px;
    height: auto;
    aspect-ratio: 16 / 9;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(176,108,255,0.18);
    background:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(176,108,255,0.13), transparent 28%),
        rgba(2,7,15,0.52);
    background-size: 100% 25%, 25% 100%, auto, auto;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.te-video-empty {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    width: 100%;
    height: 100%;
}

.te-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.te-video-frame--loaded {
    padding: 0;
    background: #02070f;
    border-color: rgba(176,108,255,0.26);
}

.te-video-frame--invalid .te-video-empty::after {
    content: "Video URL could not be embedded. Check the pasted URL.";
    color: #ffb8b5;
    font-size: 0.76rem;
}

.te-video-empty code {
    color: #d9b8ff;
    font-size: 0.74rem;
}

.te-video-empty em {
    display: block;
    margin-top: 2px;
    color: rgba(245,241,232,0.48);
    font-size: 0.74rem;
    font-style: normal;
}

.te-video-play {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #07110d;
    background: linear-gradient(180deg, #d9b8ff, #b06cff);
    box-shadow: 0 12px 34px rgba(176,108,255,0.22);
    font-size: 1rem;
    font-weight: 950;
}

.te-video-frame strong {
    color: #fff;
    font-size: 0.90rem;
}

.te-video-frame span {
    color: rgba(245,241,232,0.56);
    font-size: 0.78rem;
}

.te-callout {
    border-radius: 14px;
    border: 1px solid rgba(244,200,106,0.25);
    background:
        radial-gradient(circle at 100% 0%, rgba(244,200,106,0.09), transparent 30%),
        rgba(216,155,53,0.055);
    padding: 13px 15px;
}

.te-callout strong {
    display: block;
    margin-bottom: 6px;
    color: var(--te-gold-light);
    font-size: 0.92rem;
}

.te-callout p {
    margin: 0;
    color: rgba(245,241,232,0.72);
    font-size: 0.86rem;
    line-height: 1.5;
}

/* Sidebar cards */
.te-resource-sidebar {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 14px;
}

.te-resource-card {
    padding: 16px;
    overflow: hidden;
}

.te-resource-card img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(176,108,255,0.16));
}

.te-resource-card h3 {
    margin: 0 0 8px;
    color: #fff8e8;
    font-family: var(--te-font-display);
    font-size: 1.15rem;
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.te-resource-card p {
    margin: 0 0 13px;
    color: rgba(245,241,232,0.66);
    font-size: 0.84rem;
    line-height: 1.48;
}

.te-small-btn,
.te-cta-btn {
    min-height: 38px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 900;
}

.te-small-btn {
    border: 1px solid rgba(176,108,255,0.24);
    background: rgba(176,108,255,0.075);
    color: #d9b8ff;
}

.te-small-btn:hover {
    border-color: rgba(176,108,255,0.44);
    color: #fff;
    background: rgba(176,108,255,0.11);
}

.te-resource-card-cta {
    border-color: rgba(244,200,106,0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(244,200,106,0.12), transparent 30%),
        linear-gradient(180deg, rgba(21,32,44,0.94), rgba(8,17,29,0.96));
}

.te-resource-card-cta img {
    filter: drop-shadow(0 0 14px rgba(244,200,106,0.18));
}

.te-cta-btn {
    border: 1px solid rgba(244,200,106,0.72);
    color: #1b1204;
    background: linear-gradient(180deg, #f3c866, #d79a35);
    box-shadow: 0 14px 38px rgba(216,155,53,0.22);
}


/* Bottom CTA */
.te-bottom-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 17px;
    border: 1px solid rgba(244,200,106,0.24);
    background:
        radial-gradient(circle at 100% 0%, rgba(244,200,106,0.11), transparent 30%),
        linear-gradient(180deg, rgba(15,28,43,0.94), rgba(7,17,29,0.94));
    box-shadow: 0 16px 48px rgba(0,0,0,0.22);
    padding: 17px;
}

.te-bottom-cta span {
    display: block;
    margin-bottom: 5px;
    color: var(--te-gold-light);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.te-bottom-cta h3 {
    margin: 0 0 6px;
    font-family: var(--te-font-display);
    color: #fff8e8;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.te-bottom-cta p {
    margin: 0;
    max-width: 760px;
    color: rgba(245,241,232,0.67);
    font-size: 0.86rem;
    line-height: 1.5;
}

.te-bottom-cta__actions {
    display: grid;
    gap: 9px;
    min-width: 180px;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .te-content-grid {
        grid-template-columns: 1fr;
    }

    .te-resource-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .te-helper-strip {
        grid-template-columns: 1fr;
    }

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

    .te-video-frame {
        min-height: 260px;
    }

    .te-bottom-cta {
        grid-template-columns: 1fr;
    }

    .te-bottom-cta__actions {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .te-page {
        padding: 12px 0 32px;
    }

    .te-hero {
        min-height: 0;
        background-position: center center, 78% center, center center, center center;
    }

    .te-hero__content {
        padding: 28px 22px;
    }

    .te-hero h1 {
        font-size: 2.28rem;
    }

    .te-hero-points {
        gap: 12px;
    }

    .te-hero-point {
        min-width: calc(50% - 8px);
    }

    .te-helper-card,
    .te-lessons-panel,
    .te-resource-card {
        border-radius: 16px;
    }

    .te-lessons-panel {
        padding: 14px;
    }

    .te-topic-block {
        padding: 13px;
        border-radius: 16px;
    }

    .te-topic-heading {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
    }

    .te-topic-heading > span {
        width: 36px;
        height: 36px;
        font-size: 0.86rem;
    }

    .te-topic-heading h3 {
        font-size: 1.28rem;
    }

    .te-lesson summary {
        grid-template-columns: 30px minmax(0, 1fr) 16px;
        padding: 10px 12px;
    }

    .te-lesson-body {
        padding: 0 12px 12px 12px;
    }

    .te-resource-sidebar {
        grid-template-columns: 1fr;
    }

    .te-video-frame {
        min-height: 220px;
    }

    .te-bottom-cta__actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .te-hero-point {
        min-width: 100%;
    }
}


/* Video containment fix.
   Keeps iframe/video embeds inside the lesson card and removes edge overflow. */
.te-video-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.te-video-frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
    overflow: hidden;
    padding: 0;
}

.te-video-frame iframe,
.te-video-frame video,
.te-video-frame embed,
.te-video-frame object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    border: 0;
    border-radius: inherit;
}

.te-video-frame .te-video-play {
    align-self: center;
    justify-self: center;
}

.te-lesson-body {
    min-width: 0;
}

.te-lesson-copy {
    min-width: 0;
}

@media (min-width: 992px) {
    .te-lesson-body {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.52fr);
    }
}

@media (max-width: 991.98px) {
    .te-video-frame {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .te-video-frame {
        min-height: 190px;
    }
}


/* Video modal UX.
   Inline cards stay compact and clean; actual videos open large in a modal. */
.te-video-card {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.te-video-frame {
    display: grid;
    place-items: center;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 16 / 9;
    min-height: 240px !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 18px !important;
    border-radius: 14px;
}

.te-video-open {
    width: 100%;
    height: 100%;
    min-height: 186px;
    border: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 55% 44%, rgba(176,108,255,0.18), transparent 26%),
        radial-gradient(circle at 78% 20%, rgba(176,108,255,0.10), transparent 32%),
        rgba(2,7,15,0.30);
    color: rgba(245,241,232,0.92);
    cursor: pointer;
}

.te-video-open:hover,
.te-video-open:focus-visible {
    outline: none;
    background:
        radial-gradient(circle at 55% 44%, rgba(176,108,255,0.26), transparent 28%),
        radial-gradient(circle at 78% 20%, rgba(176,108,255,0.13), transparent 32%),
        rgba(4,14,24,0.48);
}

.te-video-open span:last-child {
    color: rgba(245,241,232,0.86);
    font-size: 0.82rem;
    font-weight: 900;
}

.te-video-frame--missing-url .te-video-open {
    box-shadow: inset 0 0 0 1px rgba(244,200,106,0.20);
}

.te-video-frame--missing-url .te-video-open::after {
    content: "Video URL not added yet";
    color: rgba(244,200,106,0.78);
    font-size: 0.74rem;
    font-weight: 800;
}

.te-video-modal[hidden] {
    display: none !important;
}

.te-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.te-video-modal-open {
    overflow: hidden;
}

.te-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(7px);
}

.te-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 48px));
    border-radius: 20px;
    border: 1px solid rgba(176,108,255,0.30);
    background:
        radial-gradient(circle at 100% 0%, rgba(176,108,255,0.10), transparent 30%),
        linear-gradient(180deg, rgba(8,20,34,0.98), rgba(2,7,15,0.98));
    box-shadow:
        0 30px 110px rgba(0,0,0,0.70),
        0 0 0 1px rgba(255,255,255,0.035);
    overflow: hidden;
}

.te-video-modal__header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    background:
        linear-gradient(90deg, rgba(176,108,255,0.10), rgba(255,255,255,0.02));
}

.te-video-modal__header strong {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 950;
}

.te-video-modal__close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: rgba(245,241,232,0.92);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.te-video-modal__close:hover,
.te-video-modal__close:focus-visible {
    color: #fff;
    border-color: rgba(176,108,255,0.45);
    background: rgba(176,108,255,0.12);
    outline: none;
}

.te-video-modal__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #02070f;
}

.te-video-modal__frame iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 992px) {
    .te-lesson-body {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.56fr);
    }
}

@media (max-width: 991.98px) {
    .te-video-frame {
        min-height: 220px !important;
    }

    .te-video-modal {
        padding: 14px;
    }

    .te-video-modal__dialog {
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 575.98px) {
    .te-video-frame {
        min-height: 190px !important;
        padding: 10px !important;
    }

    .te-video-open {
        min-height: 166px;
    }

    .te-video-modal {
        padding: 8px;
    }

    .te-video-modal__header {
        min-height: 52px;
        padding: 10px 11px 10px 13px;
    }

    .te-video-modal__header strong {
        font-size: 0.86rem;
    }

    .te-video-modal__close {
        width: 34px;
        height: 34px;
    }
}


/* Compact inline video cards.
   The accordion should stay scannable; the full video experience happens in the modal. */
@media (min-width: 992px) {
    .te-lesson-body {
        grid-template-columns: minmax(0, 1fr) 230px !important;
        align-items: start;
    }
}

.te-video-card {
    align-self: start;
    width: 100% !important;
    max-width: 230px !important;
    margin-left: auto;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: visible;
}

.te-video-frame {
    width: 100% !important;
    min-height: 118px !important;
    aspect-ratio: 16 / 9;
    padding: 5px !important;
    border-radius: 13px;
    border: 1px solid rgba(176,108,255,0.18);
    background:
        radial-gradient(circle at 60% 38%, rgba(176,108,255,0.12), transparent 30%),
        rgba(2,7,15,0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.te-video-open {
    min-height: 106px !important;
    gap: 7px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 42%, rgba(176,108,255,0.19), transparent 30%),
        rgba(2,7,15,0.34);
}

.te-video-open .te-video-play {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
}

.te-video-open span:last-child {
    font-size: 0.74rem;
    letter-spacing: 0.01em;
}

.te-video-frame--missing-url .te-video-open::after {
    font-size: 0.68rem;
}

@media (max-width: 991.98px) {
    .te-video-card {
        max-width: 100% !important;
        margin-left: 0;
    }

    .te-video-frame {
        min-height: 150px !important;
    }

    .te-video-open {
        min-height: 138px !important;
    }
}

@media (max-width: 575.98px) {
    .te-video-frame {
        min-height: 128px !important;
    }

    .te-video-open {
        min-height: 116px !important;
    }
}


/* Watch-video image containment fix.
   Keeps watch-video.webp inside the compact video trigger card. */
.te-video-open {
    overflow: hidden !important;
    padding: 0 !important;
}

.te-video-open img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: inherit !important;
    pointer-events: none;
}

.te-video-frame {
    overflow: hidden !important;
}

@media (min-width: 992px) {
    .te-video-card {
        max-width: 230px !important;
    }

    .te-video-frame {
        min-height: 118px !important;
    }

    .te-video-open {
        min-height: 106px !important;
    }
}

@media (max-width: 991.98px) {
    .te-video-open img {
        object-fit: cover !important;
    }
}


/* Mobile hero framing fix: shift the hero artwork slightly left on phone widths only. */
@media (max-width: 767.98px) {
    .te-hero {
        background-position: 72% center, 78% center, center center;
    }
}
