/* Education articles. Scoped to body.education-page so other public pages stay unchanged. */
body.education-page {
    --bg: #070b14;
    --bg-elevated: #0d1524;
    --bg-panel: #111a2b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #e8eef7;
    --muted: #a8b6c9;
    --cyan: #38bdf8;
    --radius: 16px;
    --font-display: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", "Noto Sans Arabic", system-ui, sans-serif;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    padding-top: 70px;
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

body.education-page h1,
body.education-page h2,
body.education-page h3,
body.education-page h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Article links only. Navigation, footer and breadcrumbs keep the shared platform colors. */
body.education-page .edu-main a {
    color: var(--cyan);
}

body.education-page .edu-main a:visited {
    color: var(--cyan);
}

body.education-page a:focus-visible,
body.education-page button:focus-visible,
body.education-page summary:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

body.education-page .preloader {
    display: none !important;
}
    position: absolute;
    left: 12px;
    top: -40px;
    background: #0ea5e9;
    color: #041018;
    padding: 8px 12px;
    z-index: 10000;
}

body.education-page .skip-link:focus {
    top: 8px;
}

body.education-page .edu-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

body.education-page .breadcrumb-nav {
    padding: 18px 0 0;
}

body.education-page .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

body.education-page .breadcrumb-item,
body.education-page .breadcrumb-item a {
    color: var(--muted);
    font-size: 0.92rem;
}

body.education-page .edu-main {
    padding: 12px 0 72px;
}

body.education-page .edu-toc {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 8px 0 28px;
}

body.education-page .edu-group {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}

body.education-page .edu-group h2 {
    font-size: 1.05rem;
    margin: 0 0 10px;
}

body.education-page .edu-group ul {
    margin: 0;
    padding-left: 1.1rem;
}

body.education-page .hero,
body.education-page .section,
body.education-page .content-section {
    padding: 8px 0 12px;
}

body.education-page .hero h1,
body.education-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    max-width: 22em;
}

body.education-page .hero-subtitle,
body.education-page .hero-description,
body.education-page .content-block,
body.education-page p,
body.education-page li {
    max-width: 68ch;
}

body.education-page .content-block,
body.education-page .hero-description {
    color: var(--muted);
}

body.education-page .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.education-page .edu-main img,
body.education-page .edu-main video,
body.education-page .edu-main svg {
    max-width: 100%;
    height: auto;
}

body.education-page .features-grid,
body.education-page .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

body.education-page .feature-card,
body.education-page .benefit-item {
    min-width: 0;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 14px;
}

body.education-page .feature-icon,
body.education-page .benefit-icon {
    width: 40px;
    height: 40px;
    margin: 0 0 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--line);
    font-size: 1.15rem;
    line-height: 1;
}

body.education-page .edu-main .feature-icon svg,
body.education-page .edu-main .benefit-icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    display: block;
}

body.education-page .feature-card h3,
body.education-page .benefit-content h4 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    line-height: 1.35;
}

body.education-page .feature-card p,
body.education-page .benefit-content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

body.education-page .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

body.education-page .step-number {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--line);
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 700;
}

/* The disclaimer is appended to body, outside the article. Keep its logo at the header size so the title stays inside the card. */
body.education-page #tradingWarningModal .warning-logo {
    width: auto;
    height: 28px;
    max-width: 40px;
    max-height: 28px;
    flex: 0 0 auto;
    object-fit: contain;
}

body.education-page #tradingWarningModal .trading-warning-header {
    padding-inline: 2.75rem;
}

body.education-page #tradingWarningModal .trading-warning-header h2 {
    margin: 0;
    min-width: 0;
    flex: 0 1 auto;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

body.education-page .product-shot,
body.education-page figure {
    margin: 18px 0 28px;
}

body.education-page .product-shot img,
body.education-page figure img {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #08101c;
}

body.education-page table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 16px 0 24px;
}

body.education-page th,
body.education-page td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: start;
    vertical-align: top;
}

body.education-page pre,
body.education-page code,
body.education-page .formula,
body.education-page kbd,
body.education-page samp {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.education-page pre {
    overflow-x: auto;
    background: #08101c;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}

body.education-page details {
    border-top: 1px solid var(--line);
    padding: 10px 0;
}

body.education-page summary {
    cursor: pointer;
    font-weight: 600;
}

body.education-page .cta-button,
body.education-page .edu-tool-link a,
body.education-page .cta-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #041018;
    text-decoration: none;
    font-weight: 650;
}

body.education-page .edu-tool-link {
    margin-top: 28px;
    padding-top: 8px;
}

body.education-page .footer-simple {
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    padding: 28px 16px 40px;
}

body.education-page .ta-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 920px;
    margin: 0 auto 12px;
    font-size: 0.88rem;
}

body.education-page .ta-footer-legal a,
body.education-page .ta-footer-legal a:visited {
    color: #a8b6c9;
    text-decoration: none;
}

body.education-page .ta-footer-legal a:hover,
body.education-page .ta-footer-legal a:focus-visible {
    color: #ffffff;
}

body.education-page .edu-main .grid,
body.education-page .edu-main .related-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 12px 0 28px;
}

body.education-page .edu-main a.card,
body.education-page .edu-main .related-link-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 92px;
    margin: 0;
    padding: 16px 18px;
    background: #111a2b;
    background-color: #111a2b;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    box-shadow: none;
    color: #e8eef7;
    text-decoration: none;
}

body.education-page .edu-main a.card:hover,
body.education-page .edu-main a.card:focus-visible,
body.education-page .edu-main .related-link-card:hover {
    border-color: #38bdf8;
    background: #152033;
    background-color: #152033;
    color: #ffffff;
}

body.education-page .edu-main .card-title,
body.education-page .edu-main .related-link-card a {
    font-family: "Sora", "Noto Sans Arabic", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.3;
    color: #e8eef7;
    text-decoration: none;
}

body.education-page .edu-main a.card .card-desc {
    display: none;
}

body.education-page .edu-main .related-link-card p {
    margin: 0;
    color: #a8b6c9;
    font-size: 0.9rem;
    max-width: none;
}

@media (max-width: 800px) {
    body.education-page .edu-toc {
        grid-template-columns: 1fr;
    }
    body.education-page {
        padding-top: 64px;
    }
    body.education-page .edu-main .grid,
    body.education-page .edu-main .related-links,
    body.education-page .features-grid,
    body.education-page .benefits-grid,
    body.education-page .steps {
        grid-template-columns: 1fr;
    }
}
