:root {
    --xedu-page-max: 1380px;
    --xedu-bg: #050d18;
    --xedu-panel: rgba(9, 20, 34, 0.92);
    --xedu-panel-2: rgba(13, 28, 46, 0.88);
    --xedu-border: rgba(255, 255, 255, 0.12);
    --xedu-border-strong: rgba(216, 180, 106, 0.34);
    --xedu-text: #f5f1e8;
    --xedu-muted: rgba(245, 241, 232, 0.72);
    --xedu-soft: rgba(245, 241, 232, 0.50);
    --xedu-gold: #f2c95f;
    --xedu-gold-2: #d8a83d;
    --xedu-green: #53d879;
    --xedu-blue: #4fb7ff;
    --xedu-purple: #b06cff;
    --xedu-red: #ff5c5c;
    --xedu-shadow: 0 24px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.xedu-preview-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 90% 12%, rgba(216, 180, 106, 0.08), transparent 28%),
        linear-gradient(180deg, #14191d 0%, #050d18 100%);
    color: var(--xedu-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xedu-page {
    width: 100%;
    max-width: var(--xedu-page-max);
    margin-left: 0;
    margin-right: auto;
    padding: 0;
    color: var(--xedu-text);
}

.xedu-hero,
.xedu-toolbar,
.xedu-featured-educator,
.xedu-thread-library,
.xedu-side-card,
.xedu-thread-card {
    border: 1px solid var(--xedu-border);
    box-shadow: var(--xedu-shadow);
}

.xedu-hero {
    position: relative;
    min-height: 170px;
    border-radius: 20px;
    overflow: hidden;
    background:
        var(--xedu-hero-image) center right / cover no-repeat,
        linear-gradient(135deg, rgba(13, 28, 44, 0.88), rgba(5, 12, 22, 0.94));
}

.xedu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(242, 201, 95, 0.08), transparent 23%),
        linear-gradient(180deg, transparent 0%, rgba(2, 7, 15, 0.24) 100%);
    pointer-events: none;
}

.xedu-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 34px 38px 30px;
}

.xedu-eyebrow {
    color: var(--xedu-gold);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.xedu-hero h1,
.xedu-thread-library h2,
.xedu-topic-header h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #fff8e8;
    letter-spacing: -0.045em;
}

.xedu-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 4.8vw, 4.15rem);
    line-height: 0.96;
    font-weight: 520;
}

.xedu-hero p {
    margin: 0.75rem 0 0;
    max-width: 650px;
    color: rgba(245, 241, 232, 0.80);
    font-size: 1rem;
    line-height: 1.45;
}

.xedu-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(9, 20, 34, 0.70);
}

.xedu-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.xedu-filter-btn,
.xedu-saved-link,
.xedu-topic-pills a {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(2, 7, 15, 0.24);
    color: rgba(245, 241, 232, 0.72);
    border-radius: 999px;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font: inherit;
}

.xedu-filter-btn img,
.xedu-saved-link img,
.xedu-topic-pills img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.xedu-filter-btn strong {
    color: #fff8e8;
    font-weight: 750;
}

.xedu-saved-link {
    color: rgba(245, 241, 232, 0.84);
    white-space: nowrap;
}

.xedu-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    margin-top: 18px;
}

.xedu-main-column {
    min-width: 0;
}

.xedu-featured-educator {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(240px, 0.95fr) 210px;
    gap: 24px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 86% 8%, rgba(242, 201, 95, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(10, 23, 39, 0.92), rgba(4, 10, 18, 0.94));
    border-color: rgba(242, 201, 95, 0.28);
}

.xedu-educator-profile {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.xedu-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(242, 201, 95, 0.40);
    background: #071625;
}

.xedu-educator-profile span,
.xedu-section-heading span {
    color: var(--xedu-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.68rem;
    font-weight: 950;
}

.xedu-educator-profile h2 {
    margin: 3px 0 0;
    color: #fff8e8;
    font-size: 1.45rem;
    line-height: 1;
}

.xedu-educator-profile p {
    margin: 5px 0 0;
    color: rgba(245, 241, 232, 0.64);
}

.xedu-market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    font-size: 0.78rem;
}

.xedu-market-tags em {
    color: rgba(245, 241, 232, 0.55);
    font-style: normal;
}

.xedu-market-tags strong {
    color: #d9e9ff;
    font-weight: 700;
}

.xedu-market-tags strong::before {
    content: "•";
    color: var(--xedu-gold);
    margin-right: 6px;
}

.xedu-featured-educator blockquote {
    margin: 0;
    color: rgba(245, 241, 232, 0.72);
    line-height: 1.5;
    font-size: 0.94rem;
}

.xedu-educator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: end;
    border-left: 1px solid rgba(255,255,255,0.10);
    padding-left: 20px;
}

.xedu-educator-stats span {
    display: block;
    color: rgba(245, 241, 232, 0.50);
    font-size: 0.72rem;
}

.xedu-educator-stats strong {
    display: block;
    color: #fff8e8;
    font-size: 1rem;
}

.xedu-outline-btn,
.xedu-gold-btn,
.xedu-outline-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    border-radius: 9px;
    text-decoration: none !important;
    font-size: 0.83rem;
    font-weight: 900;
}

.xedu-outline-btn {
    grid-column: 1 / -1;
    border: 1px solid rgba(242, 201, 95, 0.52);
    color: var(--xedu-gold);
    background: rgba(242, 201, 95, 0.06);
}

.xedu-topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 12px;
}

.xedu-topic-pills a {
    min-height: 38px;
    padding-inline: 1rem;
    color: rgba(245, 241, 232, 0.78);
}

.xedu-topic-pills a.active {
    border-color: rgba(242, 201, 95, 0.58);
    color: var(--xedu-gold);
    background: rgba(242, 201, 95, 0.08);
}

.xedu-thread-library {
    padding: 18px 22px 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 42% 0%, rgba(79, 183, 255, 0.07), transparent 34%),
        linear-gradient(180deg, rgba(10, 23, 39, 0.92), rgba(4, 10, 18, 0.94));
}

.xedu-section-heading h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 520;
}

.xedu-section-heading p {
    margin: 0.35rem 0 0;
    color: rgba(245, 241, 232, 0.62);
}

.xedu-topic-section + .xedu-topic-section {
    margin-top: 22px;
}

.xedu-topic-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    margin-bottom: 10px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.xedu-topic-header > div {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.xedu-topic-header img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.xedu-topic-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 520;
}

.xedu-topic-header a {
    color: rgba(245, 241, 232, 0.72);
    text-decoration: none !important;
    font-weight: 800;
    font-size: 0.84rem;
}

.xedu-thread-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.xedu-thread-card {
    position: relative;
    min-height: 154px;
    border-radius: 12px;
    padding: 17px;
    background:
        linear-gradient(180deg, rgba(15, 32, 52, 0.92), rgba(7, 17, 30, 0.94));
}

.xedu-thread-card h4 {
    margin: 0;
    color: #fff8e8;
    font-size: 1rem;
    line-height: 1.25;
    padding-right: 30px;
}

.xedu-byline {
    margin: 0.25rem 0 0;
    color: rgba(245, 241, 232, 0.52);
    font-size: 0.78rem;
}

.xedu-thread-card > p:not(.xedu-byline) {
    margin: 0.85rem 0 0;
    color: rgba(245, 241, 232, 0.70);
    font-size: 0.88rem;
    line-height: 1.45;
}

.xedu-bookmark {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border: 0;
    padding: 0;
    background: transparent;
}

.xedu-bookmark img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.82;
}

.xedu-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.xedu-card-foot span {
    color: rgba(245, 241, 232, 0.55);
    font-size: 0.78rem;
}

.xedu-card-foot a {
    color: var(--xedu-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none !important;
}

.xedu-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}

.xedu-side-card {
    padding: 18px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 95, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(10, 23, 39, 0.92), rgba(4, 10, 18, 0.94));
}

.xedu-side-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.xedu-side-heading img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.xedu-side-heading h3 {
    margin: 0;
    color: #fff8e8;
    font-size: 1rem;
}

.xedu-side-heading a {
    margin-left: auto;
    color: rgba(245, 241, 232, 0.72);
    text-decoration: none !important;
    font-size: 0.76rem;
    font-weight: 800;
}

.xedu-side-card p {
    color: rgba(245, 241, 232, 0.70);
    line-height: 1.48;
    font-size: 0.88rem;
}

.xedu-checks,
.xedu-trending-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 9px;
}

.xedu-checks li {
    position: relative;
    color: rgba(245, 241, 232, 0.72);
    font-size: 0.84rem;
    padding-left: 23px;
}

.xedu-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--xedu-green);
    font-weight: 950;
}

.xedu-gold-btn {
    width: 100%;
    margin-top: 16px;
    color: #120c02;
    background: linear-gradient(180deg, #ffd96f 0%, #efb535 100%);
}

.xedu-outline-wide {
    width: 100%;
    margin-top: 14px;
    border: 1px solid rgba(242, 201, 95, 0.35);
    color: var(--xedu-gold);
    background: rgba(242, 201, 95, 0.05);
}

.xedu-trending-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
}

.xedu-trending-list span {
    color: rgba(245, 241, 232, 0.58);
    font-weight: 900;
}

.xedu-trending-list strong,
.xedu-educator-rank strong,
.xedu-community-pick strong {
    display: block;
    color: #fff8e8;
    font-size: 0.88rem;
    line-height: 1.25;
}

.xedu-trending-list em,
.xedu-educator-rank em,
.xedu-community-pick em,
.xedu-community-pick span {
    display: block;
    color: rgba(245, 241, 232, 0.54);
    font-style: normal;
    font-size: 0.76rem;
    margin-top: 2px;
}

.xedu-educator-rank {
    display: grid;
    grid-template-columns: 22px 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

.xedu-educator-rank + .xedu-educator-rank {
    border-top: 1px solid rgba(255,255,255,0.07);
}

.xedu-educator-rank > span {
    color: rgba(245, 241, 232, 0.58);
    font-weight: 900;
}

.xedu-educator-rank img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    background: #071625;
}

.xedu-community-pick {
    position: relative;
    margin-top: 12px;
    padding: 14px 38px 14px 14px;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    background: rgba(15, 32, 52, 0.74);
}

.xedu-community-pick img {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 22px;
    height: 22px;
}

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

    .xedu-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .xedu-featured-educator {
        grid-template-columns: 1fr;
    }

    .xedu-educator-stats {
        border-left: 0;
        padding-left: 0;
    }
}

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

    .xedu-hero {
        min-height: auto;
        border-radius: 18px;
    }

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

    .xedu-hero__mark {
        right: 24px;
        top: 10px;
        font-size: 5rem;
    }

    .xedu-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .xedu-filter-group,
    .xedu-topic-pills {
        display: grid;
        grid-template-columns: 1fr;
    }

    .xedu-saved-link {
        justify-content: center;
    }

    .xedu-thread-grid,
    .xedu-sidebar {
        grid-template-columns: 1fr;
    }

    .xedu-featured-educator {
        padding: 18px;
    }

    .xedu-educator-profile {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .xedu-avatar {
        width: 54px;
        height: 54px;
    }

    .xedu-educator-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .xedu-thread-library {
        padding: 16px;
    }
}


/* Database-backed page additions */
.xedu-filter-btn.is-active,
.xedu-saved-link.is-active {
    border-color: rgba(242, 201, 95, 0.58);
    color: var(--xedu-gold);
    background: rgba(242, 201, 95, 0.08);
}

.xedu-thread-card button,
.xedu-trending-list button,
.xedu-community-pick button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.xedu-card-foot button {
    color: var(--xedu-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none !important;
}

.xedu-thread-card.is-saved {
    border-color: rgba(242, 201, 95, 0.32);
}

.xedu-bookmark.is-saved img {
    filter: drop-shadow(0 0 8px rgba(242, 201, 95, 0.42));
    opacity: 1;
}

.xedu-avatar--fallback,
.xedu-rank-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--xedu-gold);
    background: #071625;
    border: 1px solid rgba(242, 201, 95, 0.28);
    font-weight: 900;
}

.xedu-avatar--fallback {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    font-size: 1.6rem;
}

.xedu-rank-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.xedu-empty-state {
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    background: rgba(2, 7, 15, 0.22);
    color: rgba(245, 241, 232, 0.72);
}

.xedu-empty-state strong {
    display: block;
    color: #fff8e8;
    margin-bottom: 6px;
}

body.xedu-drawer-open {
    overflow: hidden;
}

.xedu-drawer[hidden] {
    display: none !important;
}

.xedu-drawer {
    position: fixed;
    inset: 0;
    z-index: 1055;
}

.xedu-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(5px);
}

.xedu-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(560px, 100%);
    height: 100%;
    overflow-y: auto;
    padding: 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 95, 0.10), transparent 34%),
        linear-gradient(180deg, #0a1727 0%, #050d18 100%);
    border-left: 1px solid rgba(255,255,255,0.12);
    box-shadow: -28px 0 90px rgba(0,0,0,0.42);
}

.xedu-drawer__close {
    position: sticky;
    top: 0;
    margin-left: auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(2, 7, 15, 0.54);
    color: #fff8e8;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.xedu-drawer-kicker {
    color: var(--xedu-gold);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.xedu-drawer__body h2 {
    margin: 0;
    color: #fff8e8;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.035em;
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    line-height: 1.05;
}

.xedu-drawer-source {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(2,7,15,0.22);
}

.xedu-drawer-source strong,
.xedu-drawer-source em {
    display: block;
}

.xedu-drawer-source em {
    margin-top: 2px;
    color: rgba(245, 241, 232, 0.58);
    font-style: normal;
}

.xedu-drawer-market-tags,
.xedu-drawer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.xedu-drawer-market-tags span,
.xedu-drawer-tags span {
    border: 1px solid rgba(242, 201, 95, 0.24);
    border-radius: 999px;
    color: rgba(245, 241, 232, 0.78);
    background: rgba(242, 201, 95, 0.05);
    padding: 0.25rem 0.56rem;
    font-size: 0.75rem;
}

.xedu-drawer-summary,
.xedu-drawer-section p,
.xedu-drawer-meta {
    color: rgba(245, 241, 232, 0.74);
    line-height: 1.58;
}

.xedu-drawer-summary {
    margin: 18px 0;
    font-size: 1rem;
}

.xedu-drawer-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.xedu-drawer-section strong {
    color: #fff8e8;
}

.xedu-drawer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.xedu-drawer-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 9px;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(2,7,15,0.32);
    color: #fff8e8;
    text-decoration: none !important;
    font-weight: 900;
}

.xedu-drawer-save.is-saved {
    color: #120c02;
    background: linear-gradient(180deg, #ffd96f 0%, #efb535 100%);
    border-color: transparent;
}

.xedu-drawer-loading,
.xedu-drawer-error {
    color: rgba(245, 241, 232, 0.76);
    padding: 30px 0;
}

@media (max-width: 767.98px) {
    .xedu-drawer__panel {
        width: 100%;
        padding: 22px;
    }
}


.xedu-bookmark.is-saving,
.xedu-drawer-save.is-saving {
    opacity: 0.65;
    pointer-events: none;
}


/* Card hover polish for Educational Posts on X */
.xedu-thread-card {
    overflow: hidden;
    isolation: isolate;
    transform: translateY(0);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.xedu-thread-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(79, 183, 255, 0.16), transparent 34%),
        radial-gradient(circle at 100% 100%, rgba(242, 201, 95, 0.10), transparent 38%),
        linear-gradient(135deg, rgba(79, 183, 255, 0.08), transparent 42%);
    transition: opacity 180ms ease;
}

.xedu-thread-card::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    z-index: 1;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(79, 183, 255, 0.78), rgba(242, 201, 95, 0.56), transparent);
    transition: opacity 180ms ease;
}

.xedu-thread-card > *:not(.xedu-bookmark) {
    position: relative;
    z-index: 2;
}

.xedu-thread-card:hover,
.xedu-thread-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(79, 183, 255, 0.38);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(79, 183, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(18, 39, 62, 0.96), rgba(7, 17, 30, 0.98));
}

.xedu-thread-card:hover::before,
.xedu-thread-card:focus-within::before,
.xedu-thread-card:hover::after,
.xedu-thread-card:focus-within::after {
    opacity: 1;
}

.xedu-thread-card h4 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.xedu-thread-card h4::before {
    content: "𝕏";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(79, 183, 255, 0.88);
    border: 1px solid rgba(79, 183, 255, 0.34);
    background: rgba(79, 183, 255, 0.07);
    font-size: 0.62rem;
    line-height: 1;
    font-weight: 900;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.xedu-thread-card:hover h4::before,
.xedu-thread-card:focus-within h4::before {
    color: #8fd8ff;
    border-color: rgba(79, 183, 255, 0.62);
    background: rgba(79, 183, 255, 0.12);
    box-shadow: 0 0 18px rgba(79, 183, 255, 0.16);
}

.xedu-thread-card .xedu-card-foot a {
    transition:
        color 180ms ease,
        transform 180ms ease;
}

.xedu-thread-card:hover .xedu-card-foot a,
.xedu-thread-card:focus-within .xedu-card-foot a {
    color: #ffdf7e;
    transform: translateX(2px);
}

.xedu-bookmark {
    border-radius: 999px;
    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.xedu-bookmark:hover,
.xedu-bookmark:focus-visible {
    background: rgba(79, 183, 255, 0.10);
    box-shadow: 0 0 0 1px rgba(79, 183, 255, 0.18);
    transform: translateY(-1px);
}


/* Keep the save/bookmark button pinned in the top-right corner above the hover overlay. */
.xedu-thread-card .xedu-bookmark {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}


/* Trading Education navigation card */
.xedu-education-nav-card {
    border-color: rgba(242, 201, 95, 0.24);
}

.xedu-education-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--xedu-gold);
    border: 1px solid rgba(242, 201, 95, 0.32);
    background: rgba(242, 201, 95, 0.07);
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(242, 201, 95, 0.08);
}

.xedu-education-nav-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.xedu-education-nav-links a {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(15, 32, 52, 0.72), rgba(7, 17, 30, 0.76));
    color: rgba(245, 241, 232, 0.74);
    text-decoration: none !important;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.xedu-education-nav-links a:hover,
.xedu-education-nav-links a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(242, 201, 95, 0.35);
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 95, 0.10), transparent 36%),
        linear-gradient(180deg, rgba(18, 39, 62, 0.92), rgba(7, 17, 30, 0.94));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.xedu-education-nav-links span {
    color: rgba(242, 201, 95, 0.84);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.xedu-education-nav-links strong {
    color: #fff8e8;
    font-size: 0.84rem;
    line-height: 1.18;
}

.xedu-current-page-note {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 10px;
    color: rgba(245, 241, 232, 0.58);
    background: rgba(2, 7, 15, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    line-height: 1.35;
}


/* Lazy-loaded X embed inside Educational Posts drawer */
.xedu-x-embed-section {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(79, 183, 255, 0.26);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(79, 183, 255, 0.10), transparent 32%),
        linear-gradient(135deg, rgba(15, 32, 52, 0.94), rgba(7, 17, 30, 0.96));
}

.xedu-x-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(210, 220, 238, 0.86);
    font-size: 0.8rem;
}

.xedu-x-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(79, 183, 255, 0.35);
    background: rgba(79, 183, 255, 0.12);
    color: #d8e7ff;
    border-radius: 999px;
    padding: 4px 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.xedu-x-meta strong {
    color: rgba(238, 244, 255, 0.88);
    font-weight: 800;
}

.xedu-x-embed-section .twitter-tweet {
    margin: 8px auto !important;
    max-width: 100% !important;
}

.xedu-x-note {
    margin: 10px 0 0;
    color: rgba(185, 197, 215, 0.78);
    font-size: 0.83rem;
    line-height: 1.45;
}

@media (max-width: 767.98px) {
    .xedu-x-embed-section {
        padding: 12px;
    }

    .xedu-x-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
