:root {
    --bg: #f7f8fc;
    --surface: #ffffff;
    --surface-soft: #f2f5fd;
    --text: #0c1630;
    --muted: #5d6985;
    --border: #dbe2f2;
    --accent: var(--theme-accent, var(--ghost-accent-color, #2156d9));
    --accent-dark: #103a9f;
    --navy: #082a73;
    --radius: 22px;
    --shadow: 0 15px 45px rgba(16, 37, 84, 0.08);
    --container: 1180px;
}

* {
    box-sizing: border-box;
}
html {
    font-size: 16px;
}
body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}
.narrow {
    width: min(760px, calc(100% - 40px));
}
.section {
    padding: 72px 0;
}
.section-soft {
    background: #fbfcff;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 28px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(219, 226, 242, 0.8);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 230px;
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eaf0ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.4rem;
}
.brand-copy {
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-weight: 800;
    font-size: 1.35rem;
}
.brand-tag {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.site-nav .nav {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}
.site-nav .nav a {
    color: var(--text);
    font-weight: 500;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-dark);
}
.btn-ghost,
.btn-outline {
    background: #fff;
    border-color: var(--border);
    color: var(--accent);
}
.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-small {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
}
.full-width {
    width: 100%;
}

.hero-section {
    padding: 48px 0 32px;
    background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 46px;
}
.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    line-height: 1.02;
    margin: 18px 0 18px;
    letter-spacing: -0.04em;
}
.hero-subtext {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 0 22px;
}
.hero-points {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 12px;
}
.hero-points li {
    position: relative;
    padding-left: 30px;
    font-weight: 500;
}
.hero-points li::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.language-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}
.device {
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.device-laptop {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 16px;
}
.lesson-preview {
    background: #0e224d;
    color: #fff;
    border-radius: 18px;
    padding: 22px;
    min-height: 340px;
}
.lesson-topic {
    font-size: 0.85rem;
    opacity: 0.72;
}
.lesson-preview h3 {
    margin: 8px 0 16px;
    font-size: 1.6rem;
}
.chalkboard {
    min-height: 220px;
    border-radius: 14px;
    background: linear-gradient(180deg, #0d2f70, #08214b);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.play-button {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
}
.timeline-bar {
    height: 8px;
    width: 100%;
    border-radius: 999px;
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.2);
}
.device-sidebar {
    border-radius: 18px;
    background: #f7f9ff;
    padding: 20px 16px;
}
.device-sidebar h4 {
    margin: 0 0 14px;
}
.device-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.device-sidebar li {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.92rem;
}
.device-sidebar li.active {
    border-color: #aac0ff;
    color: var(--accent);
    font-weight: 700;
}
.device-phone {
    position: absolute;
    right: -12px;
    bottom: -18px;
    width: 190px;
    padding: 18px;
}
.phone-question {
    font-weight: 800;
    margin-bottom: 12px;
}
.phone-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 0.92rem;
}
.active-answer {
    border-color: #7ed79d;
    background: #effcf4;
}

.card-grid {
    display: grid;
    gap: 20px;
}
.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-card,
.subject-card,
.pricing-card,
.post-card,
.step-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-card {
    padding: 28px;
}
.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.22rem;
}
.feature-card p {
    margin: 0;
    color: var(--muted);
}
.subject-card {
    padding: 30px 26px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.subject-card h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}
.subject-card p {
    margin: 0;
    color: var(--muted);
}
.subject-card span {
    margin-top: 14px;
    color: var(--accent);
    font-weight: 700;
}
.subject-card-active {
    border: 2px solid #9eb8ff;
}

.steps-band {
    background: #eef4ff;
}
.steps-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step-item {
    text-align: center;
    padding: 32px 24px;
}
.step-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
}
.step-item h3 {
    margin: 0 0 10px;
}
.step-item p {
    margin: 0;
    color: var(--muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.pricing-card {
    position: relative;
    padding: 30px;
}
.pricing-card h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}
.price {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 10px;
}
.price-note {
    margin: 0 0 18px;
    color: var(--muted);
}
.pricing-card ul {
    margin: 0 0 22px;
    padding-left: 18px;
    color: var(--text);
}
.pricing-card li + li {
    margin-top: 8px;
}
.pricing-card.featured {
    border: 2px solid #8aa8ff;
}
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
}

.content-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.content-head h2 {
    margin: 0;
    font-size: 2rem;
}
.content-head a {
    color: var(--accent);
    font-weight: 700;
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.post-card {
    overflow: hidden;
}
.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.post-card-body {
    padding: 22px;
}
.post-card h2,
.post-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}
.post-card p {
    margin: 0;
    color: var(--muted);
}
.meta-row {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}
.archive-hero {
    padding-top: 56px;
    text-align: center;
}
.archive-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.4rem, 4vw, 4rem);
}
.archive-hero p {
    margin: 0;
    color: var(--muted);
}

.post-template,
.page-template {
    background: #fff;
}
.post-title {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 14px;
}
.post-excerpt {
    font-size: 1.18rem;
    color: var(--muted);
}
.post-hero-image {
    width: 100%;
    border-radius: 24px;
    margin: 28px 0;
}
.gh-content {
    font-size: 1.08rem;
}
.gh-content h2,
.gh-content h3,
.gh-content h4 {
    line-height: 1.15;
    margin-top: 1.8em;
}
.gh-content a {
    color: var(--accent);
    text-decoration: underline;
}
.gh-content blockquote {
    margin: 1.6em 0;
    padding: 1em 1.2em;
    border-left: 4px solid var(--accent);
    background: #f6f9ff;
    border-radius: 0 16px 16px 0;
}
.site-footer {
    border-top: 1px solid var(--color-border-light, #f1f5f9);
    padding: 24px 0;
}

.footer-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    font-size: 13px;
    color: var(--color-text-muted, #94a3b8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--color-text, #0f172a);
}

.footer-small {
    font-size: 13px;
    color: var(--color-text-muted, #94a3b8);
    margin: 0;
}

@media (max-width: 600px) {
    .footer-simple {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
.footer-cta {
    background: var(--navy);
    color: #fff;
    padding: 26px 0;
}
.footer-cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.footer-cta h2 {
    margin: 0 0 6px;
}
.footer-cta p {
    margin: 0;
    opacity: 0.82;
}
.footer-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 34px 0 46px;
}
.footer-grid h4 {
    margin: 0 0 12px;
}
.footer-list,
.social-links {
    display: grid;
    gap: 10px;
}
.footer-small {
    color: var(--muted);
    margin-top: 12px;
}
.brand-footer {
    margin-bottom: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
}

@media (max-width: 1100px) {
    .hero-grid,
    .pricing-grid,
    .post-grid,
    .footer-grid,
    .four-up,
    .three-up,
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-visual {
        min-height: auto;
    }
    .device-phone {
        position: relative;
        width: 220px;
        right: auto;
        bottom: auto;
        margin-top: 18px;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        flex-wrap: wrap;
        padding: 14px 0;
    }
    .site-nav {
        order: 3;
        width: 100%;
    }
    .site-nav .nav {
        flex-wrap: wrap;
        gap: 14px 20px;
    }
    .hero-grid,
    .pricing-grid,
    .post-grid,
    .footer-grid,
    .four-up,
    .three-up,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .device-laptop {
        grid-template-columns: 1fr;
    }
    .footer-cta-inner,
    .content-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-copy h1 {
        font-size: 2.8rem;
    }
}

/* Ghost editor width helpers */
.kg-width-wide {
    width: min(1200px, calc(100vw - 40px));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
}

.gh-content .kg-card {
    margin: 1.5em 0;
}

/* Navigation dropdown support for Ghost labels like #Subjects:IB Chemistry */
.site-nav .nav > li {
    position: relative;
}

.site-nav .nav > li.has-dropdown {
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.site-nav .nav > li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-nav .nav > li.has-dropdown > a::after {
    content: "▾";
    font-size: 0.78em;
    line-height: 1;
    transform: translateY(1px);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    padding: 22px 10px 10px;
    margin: 0;
    list-style: none;
    background: transparent;
    display: none;
    z-index: 50;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    z-index: -1;
}

.nav-dropdown li {
    margin: 0;
}

.nav-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.nav-current {
    background: var(--soft);
    color: var(--brand);
}

.site-nav .nav > li.has-dropdown:hover > .nav-dropdown,
.site-nav .nav > li.has-dropdown:focus-within > .nav-dropdown {
    display: block;
}

@media (max-width: 860px) {
    .nav-dropdown {
        position: static;
        display: block;
        min-width: 100%;
        padding: 8px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-top: 8px;
    }

    .nav-dropdown::before {
        display: none;
    }
}
.de-how-it-works {
    background: #f7f8fc;
    color: #0b1736;
}

.de-hiw-hero {
    padding: 72px 0 24px;
    text-align: center;
}

.de-hiw-hero__inner {
    max-width: 900px;
}

.de-hiw-title {
    margin: 0 0 16px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #071633;
}

.de-hiw-subtitle {
    max-width: 760px;
    margin: 0 auto;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.7;
    color: #556582;
}

.de-hiw-steps {
    padding: 20px 0 56px;
}

.de-steps-grid {
    display: grid;
    grid-template-columns: 1fr 140px 1fr 140px 1fr;
    align-items: start;
    gap: 0;
}

.de-step-card {
    text-align: center;
    position: relative;
}

.de-step-number {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 22px;
}

.de-step-icon {
    width: 134px;
    height: 134px;
    margin: 0 auto 28px;
    border-radius: 999px;
    background: #edf2ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.de-step-icon svg {
    width: 58px;
    height: 58px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-step-icon--watch svg polygon {
    fill: #1d4ed8;
    stroke: none;
}

.de-step-card h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0b1736;
}

.de-step-card p {
    max-width: 320px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.75;
    color: #556582;
}

.de-step-connector {
    align-self: center;
    height: 0;
    border-top: 4px dotted #c7d5fb;
    margin: 0 26px;
    transform: translateY(-22px);
}

.de-hiw-feature-strip {
    padding: 0 0 52px;
}

.de-feature-strip-grid {
    background: #f1f4fb;
    border: 1px solid #dfe6f3;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.de-feature-item {
    display: flex;
    gap: 18px;
    padding: 34px 28px;
    align-items: flex-start;
}

.de-feature-item + .de-feature-item {
    border-left: 1px solid #d9e2f1;
}

.de-feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
}

.de-feature-icon svg {
    width: 34px;
    height: 34px;
    stroke: #1d4ed8;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-feature-item h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    line-height: 1.15;
    color: #0b1736;
}

.de-feature-item p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #556582;
}

.de-hiw-content {
    padding: 8px 0 26px;
}

.de-prose {
    max-width: 860px;
    margin: 0 auto;
}

.de-hiw-cta {
    padding: 22px 0 90px;
}

.de-hiw-cta__inner {
    text-align: center;
}

.de-hiw-cta__inner h2 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    color: #0b1736;
}

.de-hiw-cta__inner p {
    margin: 0 0 26px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #556582;
}

.de-hiw-cta__actions {
    display: flex;
    justify-content: center;
}

.de-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0 34px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.de-btn--primary {
    background: #1d4ed8;
    color: #fff;
    border: 1px solid #1d4ed8;
}

.de-btn--primary:hover {
    background: #163fb3;
    border-color: #163fb3;
    color: #fff;
}

@media (max-width: 1100px) {
    .de-steps-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .de-step-connector {
        display: none;
    }

    .de-feature-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .de-feature-item:nth-child(3),
    .de-feature-item:nth-child(4) {
        border-top: 1px solid #d9e2f1;
    }

    .de-feature-item:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 720px) {
    .de-hiw-hero {
        padding-top: 42px;
    }

    .de-step-icon {
        width: 110px;
        height: 110px;
    }

    .de-step-card h2 {
        font-size: 1.65rem;
    }

    .de-step-card p,
    .de-feature-item p,
    .de-hiw-cta__inner p {
        font-size: 1rem;
    }

    .de-feature-strip-grid {
        grid-template-columns: 1fr;
    }

    .de-feature-item + .de-feature-item {
        border-left: none;
        border-top: 1px solid #d9e2f1;
    }
}

.de-subjects-page {
    background: #f7f8fc;
    color: #0b1736;
}

.de-subjects-hero {
    padding: 72px 0 22px;
}

.de-subjects-hero__inner {
    max-width: 760px;
}

.de-subjects-title {
    margin: 0 0 14px;
    text-align: center;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #071633;
}

.de-subjects-subtitle {
    margin: 0;
    text-align: center;
    max-width: 680px;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #556582;
}

.de-subjects-grid-section {
    padding: 20px 0 36px;
}

.de-subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.de-subject-card {
    background: #fff;
    border: 1px solid #dfe6f3;
    border-radius: 22px;
    padding: 34px 30px 28px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.de-subject-icon-wrap {
    width: 116px;
    height: 116px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.de-subject-icon-wrap svg {
    width: 56px;
    height: 56px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-subject-icon-wrap--chemistry {
    background: #eef3ff;
}

.de-subject-icon-wrap--chemistry svg {
    stroke: #2457d6;
}

.de-subject-icon-wrap--biology {
    background: #ecf7ef;
}

.de-subject-icon-wrap--biology svg {
    stroke: #16a34a;
}

.de-subject-icon-wrap--physics {
    background: #f2ecff;
}

.de-subject-icon-wrap--physics svg {
    stroke: #6d4cff;
}

.de-subject-card h2 {
    margin: 0 0 14px;
    font-size: 2.1rem;
    line-height: 1.08;
    font-weight: 800;
    color: #0b1736;
}

.de-subject-card p {
    margin: 0 0 26px;
    font-size: 1.12rem;
    line-height: 1.75;
    color: #556582;
}

.de-progress {
    margin: 0 0 26px;
}

.de-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #e6ebf3;
    overflow: hidden;
    margin-bottom: 14px;
}

.de-progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2457d6;
}

.de-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 1rem;
    color: #556582;
}

.de-progress-meta span:first-child {
    color: #0b1736;
}

.de-subject-btn {
    width: 100%;
    gap: 10px;
}

.de-btn--outline {
    background: #fff;
    color: #2457d6;
    border: 1.5px solid #9eb8ff;
}

.de-btn--outline:hover {
    background: #f4f7ff;
    color: #1d4ed8;
}

.de-subjects-cta-strip {
    padding: 0 0 48px;
}

.de-subjects-cta-strip__inner {
    background: #f1f4fb;
    border: 1px solid #dfe6f3;
    border-radius: 22px;
    padding: 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.de-subjects-cta-copy {
    display: flex;
    align-items: center;
    gap: 22px;
}

.de-subjects-cta-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: #f7f9ff;
    border: 1px solid #b8ccff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
}

.de-subjects-cta-icon svg {
    width: 38px;
    height: 38px;
    stroke: #2457d6;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-subjects-cta-copy h2 {
    margin: 0 0 8px;
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0b1736;
}

.de-subjects-cta-copy p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #556582;
}

.de-subjects-content {
    padding: 6px 0 48px;
}

.de-prose {
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 1180px) {
    .de-subjects-grid {
        grid-template-columns: 1fr;
    }

    .de-subjects-cta-strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .de-subjects-hero {
        padding-top: 42px;
    }

    .de-subject-card {
        padding: 26px 22px 22px;
    }

    .de-subject-card h2 {
        font-size: 1.75rem;
    }

    .de-subject-card p,
    .de-subjects-cta-copy p,
    .de-subjects-subtitle {
        font-size: 1rem;
    }

    .de-progress-meta {
        font-size: 0.95rem;
    }

    .de-subjects-cta-copy {
        flex-direction: column;
        align-items: flex-start;
    }
}

.de-pricing-page {
    background: #f7f8fc;
    color: #0b1736;
}

.de-pricing-hero {
    padding: 64px 0 20px;
    text-align: center;
}

.de-pricing-hero__inner {
    max-width: 820px;
}

.de-pricing-title {
    margin: 0 0 14px;
    font-size: clamp(3rem, 6vw, 4.9rem);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #071633;
}

.de-pricing-subtitle {
    margin: 0 auto 24px;
    max-width: 680px;
    font-size: 1.18rem;
    line-height: 1.7;
    color: #556582;
}

.de-pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #d9e2f1;
    border-radius: 999px;
    padding: 4px;
}

.de-pricing-toggle__btn {
    min-width: 150px;
    height: 50px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    color: #34435f;
    cursor: default;
}

.de-pricing-toggle__btn.is-active {
    background: #eef3ff;
    color: #2457d6;
}

.de-pricing-cards-section {
    padding: 22px 0 30px;
}

.de-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.de-price-card {
    position: relative;
    background: #fff;
    border: 1px solid #dfe6f3;
    border-radius: 22px;
}

.de-price-card__inner {
    padding: 34px 24px 22px;
}

.de-price-card h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.95rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0b1736;
}

.de-price-amount {
    text-align: center;
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #071633;
}

.de-price-cycle {
    margin-top: 10px;
    text-align: center;
    font-size: 1rem;
    color: #556582;
}

.de-price-saving {
    min-height: 28px;
    margin-top: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #2457d6;
}

.de-price-divider {
    height: 1px;
    background: #e3e8f2;
    margin: 18px 0 20px;
}

.de-price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.de-price-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #22314d;
}

.de-price-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.38em;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #2457d6;
}

.de-price-features li::after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    font-weight: 800;
}

.de-price-btn {
    width: 100%;
}

.de-price-card--featured {
    border-color: #2457d6;
    box-shadow: 0 8px 30px rgba(36, 87, 214, 0.05);
}

.de-price-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2457d6;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.de-pricing-benefits {
    padding: 0 0 34px;
}

.de-pricing-benefits__inner {
    display: flex;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #f1f4fb;
    border: 1px solid #dfe6f3;
    border-radius: 22px;
    overflow: hidden;
}

.de-pricing-benefit {
    display: flex;
    flex: 1 1 0; /* equal width — 0 base so they all grow equally */
    min-width: 0; /* prevents content from overflowing flex basis */
    gap: 18px;
    padding: 28px 22px;
    align-items: flex-start;
}

.de-pricing-benefit + .de-pricing-benefit {
    border-left: 1px solid #d9e2f1;
}

.de-pricing-benefit__icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
}

.de-pricing-benefit__icon svg {
    width: 28px;
    height: 28px;
    stroke: #2457d6;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-pricing-benefit h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.12;
    font-weight: 800;
    color: #0b1736;
}

.de-pricing-benefit p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #556582;
}

.de-pricing-security {
    padding: 0 0 34px;
}

.de-pricing-security__inner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    text-align: left;
}

.de-pricing-security__icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
}

.de-pricing-security__icon svg {
    width: 34px;
    height: 34px;
    stroke: #2457d6;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.de-pricing-security h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #556582;
}

.de-pricing-security p {
    margin: 0;
    font-size: 1rem;
    color: #556582;
}

.de-pricing-content {
    padding: 8px 0 48px;
}

@media (max-width: 1180px) {
    .de-pricing-grid {
        grid-template-columns: 1fr;
    }

    .de-pricing-benefits__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .de-pricing-benefit:nth-child(3) {
        border-left: none;
    }

    .de-pricing-benefit:nth-child(3),
    .de-pricing-benefit:nth-child(4) {
        border-top: 1px solid #d9e2f1;
    }
}
/* ── 4-column pricing grid ── */
.de-pricing-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

/* ── tighter card internals ── */
.de-price-card__inner {
    padding: 20px 16px 24px;
}

.de-price-card h2 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.de-price-amount {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.de-price-cycle {
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 6px;
}

.de-price-saving {
    font-size: 11px;
    margin-bottom: 8px;
}

.de-price-divider {
    margin: 12px 0;
}

.de-price-features {
    font-size: 12px;
    line-height: 1.4;
    gap: 7px;
    margin-bottom: 16px;
}

.de-price-features li {
    margin-bottom: 6px;
    padding-left: 18px;
}

.de-price-btn {
    font-size: 13px;
    padding: 9px 14px;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.de-price-badge {
    font-size: 9px;
    letter-spacing: 0.8px;
    padding: 4px 10px;
}

/* ── collapse to 2-col on tablet, 1-col on mobile ── */
@media (max-width: 1024px) {
    .de-pricing-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .de-pricing-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .de-pricing-hero {
        padding-top: 40px;
    }

    .de-pricing-toggle {
        width: 100%;
        max-width: 360px;
    }

    .de-pricing-toggle__btn {
        min-width: 0;
        flex: 1 1 50%;
    }

    .de-price-card__inner {
        padding: 28px 20px 20px;
    }

    .de-price-card h2 {
        font-size: 1.65rem;
    }

    .de-price-amount {
        font-size: 3.3rem;
    }

    .de-pricing-benefits__inner {
        grid-template-columns: 1fr;
    }

    .de-pricing-benefit + .de-pricing-benefit {
        border-left: none;
        border-top: 1px solid #d9e2f1;
    }

    .de-pricing-security__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .de-pricing-subtitle,
    .de-pricing-benefit p,
    .de-pricing-security p {
        font-size: 1rem;
    }
}
/* Topic page / lesson teaser page */
/* Custom topic page */

.topic-page {
    background: #f7f8fc;
    color: var(--text);
}

.topic-hero {
    padding: 72px 0 40px;
    background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.topic-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
}

.topic-copy {
    max-width: 760px;
}

.topic-eyebrow {
    display: block;
    width: 66%;
    max-width: 560px;
    margin: 0 0 18px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.topic-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.topic-intro {
    max-width: 680px;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--muted);
}

.topic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.topic-hero-card {
    background: #0e224d;
    color: #fff;
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    min-height: 320px;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic-card-label {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topic-card-title {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.topic-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-card-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.topic-main {
    padding: 28px 0 84px;
}

.topic-main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.topic-content-card,
.topic-sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.topic-content-card {
    padding: 24px;
}

.topic-section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.topic-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.topic-section-heading h2 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.topic-section-heading p {
    margin: 0;
    color: var(--muted);
}

.topic-video-frame {
    overflow: hidden;
    border-radius: 22px;
    background: #0e224d;
}

.topic-video-frame > * {
    margin: 0;
}

.topic-video-frame iframe {
    width: 100%;
    height: 520px;
    border: 0;
    display: block;
    border-radius: 22px;
}

.topic-sidebar {
    display: grid;
    gap: 20px;
}

.topic-sidebar-card {
    padding: 24px;
}

.topic-sidebar-card h3 {
    margin: 0 0 14px;
    font-size: 1.25rem;
}

.topic-sidebar-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

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

.topic-checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--text);
}

.topic-checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Homepage hero video */

.hero-topic-video {
    width: 100%;
    max-width: 820px;
    min-height: 500px;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.hero-topic-video .gh-content,
.hero-topic-video .kg-card,
.hero-topic-video .kg-embed-card,
.hero-topic-video .kg-video-card {
    width: 100%;
    margin: 0;
}

.hero-topic-video .gh-content > * {
    margin: 0;
}

.hero-topic-video iframe {
    width: 100%;
    height: 460px;
    border: 0;
    border-radius: 22px;
    display: block;
}

.hero-visual .topic-video {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--shadow);
}

/* Unit page */

.unit-page {
    background: #f7f8fc;
    color: var(--text);
}

.unit-hero {
    padding: 72px 0 32px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.unit-hero-inner {
    max-width: 900px;
}

.unit-eyebrow {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.82rem;
}

.unit-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.unit-subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.unit-topic-list {
    padding: 36px 0 72px;
}

.unit-list-head-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 24px;
}

.unit-list-head h2 {
    margin: 0 0 6px;
    font-size: 2rem;
}

.unit-list-head p {
    margin: 0;
    color: var(--muted);
}

.unit-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
}

.unit-sort select {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.unit-lessons {
    display: grid;
    gap: 16px;
}

.unit-lesson-card {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.unit-lesson-card:hover {
    transform: translateY(-2px);
    border-color: #aac0ff;
}

.unit-lesson-number {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.unit-lesson-copy h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.unit-lesson-copy p {
    margin: 0;
    color: var(--muted);
}

.unit-lesson-arrow {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.4rem;
}

.unit-empty {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
}

.unit-content {
    padding: 0 0 72px;
}

@media (max-width: 1100px) {
    .hero-topic-video {
        max-width: 100%;
        min-height: auto;
        margin-left: 0;
    }

    .hero-topic-video iframe {
        height: 360px;
    }
}

@media (max-width: 1000px) {
    .topic-hero-grid,
    .topic-main-grid {
        grid-template-columns: 1fr;
    }

    .topic-eyebrow {
        width: 100%;
        max-width: none;
    }

    .topic-hero-card {
        max-width: none;
        min-height: 240px;
    }

    .topic-video-frame iframe {
        height: 420px;
    }
}

@media (max-width: 720px) {
    .topic-hero {
        padding: 44px 0 28px;
    }

    .topic-copy h1 {
        font-size: 2.6rem;
    }

    .topic-video-frame iframe,
    .hero-topic-video iframe {
        height: 240px;
    }

    .topic-content-card,
    .topic-sidebar-card {
        border-radius: 22px;
    }

    .unit-list-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .unit-lesson-card {
        grid-template-columns: 42px 1fr;
    }

    .unit-lesson-arrow {
        display: none;
    }
}

/* Custom Subject Page */
/* Subject landing page */

.subject-page {
    background: #f7f8fc;
    color: var(--text);
}

.subject-hero {
    padding: 72px 0 36px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f7f8fc 100%);
}

.subject-hero-inner {
    max-width: 900px;
}

.subject-eyebrow {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.82rem;
}

.subject-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.subject-subtitle {
    max-width: 780px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.subject-units {
    padding: 36px 0 84px;
}

.subject-section-head {
    margin-bottom: 24px;
}

.subject-section-head h2 {
    margin: 0 0 6px;
    font-size: 2rem;
}

.subject-section-head p {
    margin: 0;
    color: var(--muted);
}

.subject-unit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.subject-unit-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 20px;
    align-items: start;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.subject-unit-card:hover {
    transform: translateY(-2px);
    border-color: #aac0ff;
}

.subject-unit-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #eaf0ff;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.1rem;
}

.subject-unit-card h3 {
    margin: 0 0 8px;
    font-size: 1.45rem;
}

.subject-unit-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.subject-unit-card span {
    color: var(--accent);
    font-weight: 800;
}

.subject-content {
    padding: 0 0 72px;
}

@media (max-width: 860px) {
    .subject-unit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .subject-unit-card {
        grid-template-columns: 1fr;
    }
}

/* Anchor styles for Vid and MCQ */
.topic-card-meta a {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
}

.topic-card-meta a:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Quiz Styles */
.quiz-block {
    margin-top: 40px;

    padding: 28px;

    background: #fff;

    border: 1px solid #dbe2f2;

    border-radius: 24px;

    box-shadow: 0 15px 45px rgba(16, 37, 84, 0.08);

    color: #0c1630;
}

.quiz-progress {
    margin-bottom: 18px;

    color: #2156d9;

    font-weight: 800;

    text-transform: uppercase;

    font-size: 0.82rem;
}

.quiz-question h3 {
    margin: 0 0 20px;

    font-size: 1.3rem;
}

.quiz-option {
    display: block;

    padding: 12px;

    margin: 8px 0;

    border: 1px solid #dbe2f2;

    border-radius: 12px;

    cursor: pointer;

    background: #f9fbff;
}

.quiz-option:hover {
    border-color: #aac0ff;
}

.quiz-actions {
    margin-top: 20px;
}

.quiz-actions button {
    padding: 10px 16px;

    border: none;

    border-radius: 10px;

    background: #2156d9;

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    margin-right: 10px;
}

.quiz-next-btn {
    background: #103a9f;
}

.quiz-feedback {
    margin-top: 15px;
}

.quiz-feedback.correct {
    color: green;
}

.quiz-feedback.incorrect {
    color: red;
}

.quiz-summary {
    text-align: center;
}

.quiz-score {
    font-size: 2.5rem;
    font-weight: 900;
}

/* New Topic Hero Featured Product Component vid, mcq, worksheet */

.topic-feature-showcase {
    background: #0e224d;
    color: #fff;
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.topic-feature-copy h2 {
    margin: 10px 0 8px;
    font-size: 1.8rem;
    line-height: 1.1;
}

.topic-feature-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
}

.topic-feature-cards {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 260px;
    margin-top: 28px;
}

.topic-feature-card {
    position: absolute;
    width: 165px;
    height: 230px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    color: #fff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.25s ease,
        z-index 0.25s ease;
}

.topic-feature-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 22, 48, 0.85),
        rgba(8, 22, 48, 0.08)
    );
}

.topic-feature-card span,
.topic-feature-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 14px;
}

.topic-feature-card span {
    width: fit-content;
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
}

.topic-feature-card strong {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.15;
}

.card-video {
    transform: translateX(-90px) rotate(-7deg);
    z-index: 1;
}

.card-mcq {
    transform: translateY(-8px);
    z-index: 3;
}

.card-worksheet {
    transform: translateX(90px) rotate(7deg);
    z-index: 2;
}

.topic-feature-card:hover {
    z-index: 5;
    transform: translateY(-14px) scale(1.05);
}

@media (max-width: 1000px) {
    .topic-feature-cards {
        min-height: auto;
        gap: 16px;
        flex-wrap: wrap;
    }

    .topic-feature-card {
        position: relative;
        transform: none;
    }
}

/* NEW prices for toggle functionality */
.de-pricing-panel[hidden] {
    display: none;
}

.de-pricing-school-wrap {
    display: flex;
    justify-content: center;
}

.de-school-card {
    width: min(100%, 560px);
}

.de-school-price {
    text-align: center;
    font-size: 3.4rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #071633;
    margin-bottom: 10px;
}

/* Contact form */
.de-contact-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.de-contact-form input,
.de-contact-form select,
.de-contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
}

.de-contact-form textarea {
    resize: vertical;
}
/* Rating system for Topic pages */

.de-feedback {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.de-feedback p {
    margin: 0 0 14px;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text);
}

.de-feedback-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.de-feedback-buttons button {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #f7f8fc;
    color: #f5b301;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.de-feedback-buttons button:hover,
.de-feedback-buttons button.is-active {
    background: #eaf0ff;
    border-color: #aac0ff;
    transform: translateY(-1px);
}

#feedback-comment {
    width: 100%;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    resize: vertical;
}

#feedback-comment::placeholder {
    color: var(--muted);
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.dashboard-card.full {
    grid-column: 1 / -1;
}

.dashboard-status {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.dash-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.dash-row:last-child {
    border-bottom: 0;
}

@media (max-width: 860px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

canvas {
    max-width: 100%;
    margin-top: 10px;
}

/* Beta Launch modal */
.de-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}
.de-modal.show {
    display: block;
}
.de-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 48, 0.65);
    backdrop-filter: blur(6px);
}
.de-modal-card {
    position: relative;
    width: min(900px, 92%);
    height: 85vh;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.de-modal-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.de-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}
.de-modal-card--pricing {
    width: min(560px, 92%); /* ← widened from 420px */
    height: auto;
    max-height: 90vh;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}
.de-modal-card--pricing .de-price-card {
    margin: 0;
    width: 100%;
    box-shadow: var(--shadow);
}
.unit-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.unit-hero-image {
    flex: 0 0 220px;
}

.unit-hero-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    background: transparent; /* or match your hero background color exactly */
}

.unit-hero-text {
    flex: 1;
}

/* Stack vertically on mobile */
@media (max-width: 640px) {
    .unit-hero-inner {
        flex-direction: column;
    }
    .unit-hero-image {
        flex: 0 0 auto;
        width: 100%;
    }
    .unit-hero-image img {
        height: 180px;
    }
}

/* New styles for subject page icon next to tittle */
.subject-hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.subject-hero-image {
    flex: 0 0 200px;
}

.subject-hero-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    display: block;
    background: transparent;
}

.subject-hero-text {
    flex: 1;
}

@media (max-width: 640px) {
    .subject-hero-inner {
        flex-direction: column;
    }
    .subject-hero-image {
        flex: 0 0 auto;
        width: 140px;
    }
    .subject-hero-image img {
        height: 140px;
    }
}

/* ── Hamburger button ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
    transform-origin: center;
}

/* Animate into X when open */
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ── */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        order: 3;
    }

    .nav-actions--desktop {
        display: none;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--site-header-bg, #fff);
        border-top: 1px solid var(--color-border, #e5e7eb);
        border-bottom: 1px solid var(--color-border, #e5e7eb);
        padding: 16px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }

    /* Make nav links stack vertically */
    .site-nav ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .site-nav li {
        width: 100%;
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--color-border-light, #f3f4f6);
        width: 100%;
    }

    .site-nav li:last-child a {
        border-bottom: none;
    }

    /* Auth buttons inside mobile drawer */
    .nav-actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border, #e5e7eb);
    }

    .nav-actions--mobile .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* Make sure header is position:relative so the dropdown anchors to it */
    .site-header {
        position: relative;
    }
}

/* ── Desktop — hide mobile actions inside nav ── */
@media (min-width: 769px) {
    .nav-actions--mobile {
        display: none;
    }

    .nav-actions--desktop {
        display: flex;
    }
}

/* --- Centering the subject cards on home removing the empty subjects and leaving chem sl centered ---*/
.card-grid.single-centered {
    display: flex;
    justify-content: center;
}

.card-grid.single-centered .subject-card {
    max-width: 320px;
    width: 100%;
}
