.gx-learning-page {
    --gx-learn-ink: #17213b;
    --gx-learn-muted: #687086;
    --gx-learn-line: #e4e8f1;
    --gx-learn-soft: #f6f8fc;
    --gx-learn-blue-soft: #eef3ff;
    min-height: 70vh;
    padding: 1px 24px 90px;
    color: var(--gx-learn-ink);
    background: var(--gx-learn-soft);
}

.gx-learning-page a {
    text-decoration: none;
}

.gx-learning-breadcrumb {
    display: flex;
    width: min(1390px, 100%);
    margin: 0 auto;
    padding: 25px 0 20px;
    align-items: center;
    gap: 9px;
    color: var(--gx-learn-muted);
    font-size: 13px;
    line-height: 1.4;
}

.gx-learning-breadcrumb a:hover {
    color: var(--gx-purple);
}

.gx-learning-breadcrumb span:last-child {
    min-width: 0;
    overflow: hidden;
    color: #3b4358;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-learning-shell {
    display: grid;
    width: min(1390px, 100%);
    margin: 0 auto;
    grid-template-columns: 214px minmax(0, 1fr) 276px;
    gap: 30px;
    align-items: start;
}

.gx-learning-nav,
.gx-course-options,
.gx-resource-sidebar {
    position: sticky;
    top: 128px;
}

.gx-learning-nav-label {
    margin: 7px 12px 12px;
    color: #9298aa;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.gx-learning-nav nav {
    display: grid;
    gap: 5px;
}

.gx-learning-nav nav a {
    display: flex;
    min-height: 45px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    color: #515a70;
    font-size: 14px;
    font-weight: 650;
}

.gx-learning-nav nav a:hover,
.gx-learning-nav nav a.active {
    color: #3f47c7;
    background: #eaeefe;
}

.gx-learning-nav nav .dashicons {
    width: 20px;
    height: 20px;
    color: #7b8499;
    font-size: 20px;
}

.gx-learning-nav nav a.active .dashicons {
    color: #5040e8;
}

.gx-learning-tip {
    display: flex;
    margin-top: 24px;
    padding: 15px;
    gap: 10px;
    border: 1px solid #f0e6b8;
    border-radius: 13px;
    background: #fffbea;
    color: #665d3d;
}

.gx-learning-tip .dashicons {
    flex: 0 0 auto;
    color: #c99920;
}

.gx-learning-tip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.gx-learning-tip strong {
    display: block;
    margin-bottom: 2px;
    color: #4f472f;
}

.gx-course-workspace {
    min-width: 0;
}

.gx-course-intro {
    display: grid;
    margin: 2px 0 28px;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.gx-course-cover {
    display: grid;
    width: 90px;
    height: 90px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #dfe4ef;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--gx-purple), var(--gx-blue));
    box-shadow: 0 10px 28px rgba(43, 52, 120, .14);
    font-size: 34px;
    font-weight: 850;
}

.gx-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-course-level,
.gx-resource-eyebrow {
    margin: 0 0 6px;
    color: var(--gx-purple);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gx-course-intro h1 {
    margin: 0 0 4px;
    color: var(--gx-learn-ink);
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.gx-course-intro > div:last-child > p:last-child {
    margin: 0;
    color: var(--gx-learn-muted);
    font-size: 15px;
}

.gx-course-mobile-progress {
    display: none;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--gx-learn-line);
    border-radius: 14px;
    background: #fff;
}

.gx-course-mobile-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
}

.gx-course-mobile-progress span {
    color: var(--gx-learn-muted);
}

.gx-learning-page .gx-progress {
    height: 7px;
    margin: 12px 0 0;
    background: #e8ebf3;
}

.gx-learning-page .gx-progress span {
    background: linear-gradient(90deg, var(--gx-purple), var(--gx-blue));
}

.gx-learning-unit {
    margin: 0 0 13px;
    overflow: hidden;
    border: 1px solid var(--gx-learn-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(31, 39, 75, .035);
}

.gx-learning-page .gx-unit-head {
    min-height: 82px;
    padding: 16px 20px;
    gap: 16px;
    background: #fff;
}

.gx-learning-page .gx-unit-head:hover {
    background: #fbfcff;
}

.gx-learning-page .gx-num {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #4c45dc;
    background: #edf0ff;
    font-size: 13px;
}

.gx-unit-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.gx-learning-page .gx-unit-title {
    color: var(--gx-learn-ink);
    font-size: 16px;
    line-height: 1.35;
}

.gx-learning-page .gx-unit-meta {
    color: var(--gx-learn-muted);
    font-size: 12px;
}

.gx-unit-chevron {
    margin-left: auto;
    color: #7d8497;
    transition: transform .2s ease;
}

.gx-unit-head[aria-expanded="true"] .gx-unit-chevron {
    transform: rotate(180deg);
}

.gx-unit-panel {
    border-top: 1px solid var(--gx-learn-line);
}

.gx-learning-resource {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 78px;
    padding: 14px 20px;
    gap: 14px;
    border-bottom: 1px solid #edf0f5;
}

.gx-learning-resource:last-child {
    border-bottom: 0;
}

.gx-learning-resource:hover {
    background: #fbfcff;
}

.gx-learning-page .gx-resource-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: #4e48d5;
    background: #eef1ff;
    font-size: 19px;
}

.gx-resource-copy {
    min-width: 0;
}

.gx-learning-page .gx-resource h3 {
    margin: 0;
    color: #242c43;
    font-size: 14px;
    line-height: 1.45;
}

.gx-learning-page .gx-resource h3 a:hover {
    color: var(--gx-purple);
}

.gx-learning-page .gx-resource p {
    margin-top: 3px;
    color: #858b9b;
    font-size: 12px;
}

.gx-resource-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.gx-resource-open {
    color: #4f47df;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.gx-resource-open:hover {
    text-decoration: underline;
}

.gx-learning-page .gx-complete {
    padding: 7px 9px;
    border-color: #dfe3ec;
    border-radius: 8px;
    color: #646c80;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.gx-learning-page .gx-complete:hover,
.gx-learning-page .gx-complete.done {
    border-color: #837bfb;
    color: #4c43d6;
    background: #f2f0ff;
}

.gx-unit-empty {
    margin: 0;
    padding: 22px;
    color: var(--gx-learn-muted);
    font-size: 14px;
}

.gx-learning-empty {
    padding: 45px 25px;
    border: 1px dashed #cfd4e1;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.gx-learning-empty .dashicons {
    width: 40px;
    height: 40px;
    color: var(--gx-purple);
    font-size: 40px;
}

.gx-learning-empty h2 {
    margin: 12px 0 4px;
    font-size: 21px;
}

.gx-learning-empty p {
    margin: 0;
    color: var(--gx-learn-muted);
}

.gx-course-options {
    overflow: hidden;
    border: 1px solid var(--gx-learn-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(31, 39, 75, .055);
}

.gx-course-options > h2 {
    margin: 0;
    padding: 17px 19px;
    border-bottom: 1px solid var(--gx-learn-line);
    font-size: 15px;
}

.gx-course-progress-card {
    padding: 17px 19px;
    border-bottom: 1px solid var(--gx-learn-line);
}

.gx-course-progress-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.gx-course-progress-heading span {
    color: #8a91a2;
    font-size: 11px;
}

.gx-course-progress-card p {
    margin: 5px 0 0;
    color: var(--gx-learn-muted);
    font-size: 11px;
}

.gx-course-enrolment {
    padding: 15px 19px;
    border-bottom: 1px solid var(--gx-learn-line);
}

.gx-course-enrolment .button {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    box-shadow: none;
    font-size: 13px;
}

.gx-course-enrolment small {
    display: block;
    margin-top: 8px;
    color: var(--gx-learn-muted);
    font-size: 11px;
    line-height: 1.45;
}

.gx-course-enrolment .gx-price {
    margin: 0 0 11px;
    color: var(--gx-learn-ink) !important;
    font-size: 24px !important;
}

.gx-enrolled-state {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 10px;
    color: #24775b;
    background: #eaf8f1;
    font-size: 13px;
    font-weight: 800;
}

.gx-course-option-links {
    display: grid;
}

.gx-course-option-links > a {
    display: grid;
    min-height: 67px;
    padding: 13px 17px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #edf0f5;
    color: #343c51;
    font-size: 12px;
    font-weight: 750;
}

.gx-course-option-links > a:last-child {
    border-bottom: 0;
}

.gx-course-option-links > a:hover {
    color: var(--gx-purple);
    background: #fafbff;
}

.gx-course-option-links .dashicons {
    color: #747bf0;
}

.gx-course-option-links small {
    display: block;
    margin-top: 1px;
    color: #8b91a1;
    font-size: 10px;
    font-weight: 500;
}

/* Resource reading view */
.gx-resource-page {
    background: #fff;
}

.gx-resource-layout {
    display: grid;
    width: min(1180px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 58px;
    align-items: start;
}

.gx-resource-article {
    min-width: 0;
}

.gx-resource-header {
    margin: 8px 0 28px;
}

.gx-resource-header h1 {
    max-width: 820px;
    margin: 0;
    color: var(--gx-learn-ink);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.gx-resource-toc {
    max-width: 760px;
    margin: 0 0 38px;
    overflow: hidden;
    border: 1px solid var(--gx-learn-line);
    border-radius: 13px;
    background: #fff;
}

.gx-resource-toc[hidden] {
    display: none;
}

.gx-resource-toc summary {
    display: flex;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    cursor: pointer;
    list-style: none;
    color: #30384f;
    font-size: 14px;
    font-weight: 800;
}

.gx-resource-toc summary::-webkit-details-marker {
    display: none;
}

.gx-resource-toc summary .dashicons {
    transition: transform .2s ease;
}

.gx-resource-toc[open] summary .dashicons {
    transform: rotate(180deg);
}

.gx-resource-toc ol {
    display: grid;
    margin: 0;
    padding: 0 18px 17px 46px;
    gap: 6px;
    color: #7c8395;
}

.gx-resource-toc li::marker {
    color: #9aa0af;
    font-size: 12px;
}

.gx-resource-toc li.subheading {
    margin-left: 18px;
}

.gx-resource-toc a {
    color: #4f586d;
    font-size: 13px;
}

.gx-resource-toc a:hover {
    color: var(--gx-purple);
}

.gx-resource-content {
    max-width: 800px;
    color: #343b4c;
    font-size: 17px;
    line-height: 1.82;
}

.gx-resource-content h2 {
    margin: 2.2em 0 .65em;
    color: var(--gx-learn-ink);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -.025em;
    scroll-margin-top: 140px;
}

.gx-resource-content h3 {
    margin: 1.8em 0 .55em;
    color: var(--gx-learn-ink);
    font-size: 21px;
    line-height: 1.3;
    scroll-margin-top: 140px;
}

.gx-resource-content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--gx-purple);
    border-radius: 0 10px 10px 0;
    background: #f6f5ff;
}

.gx-resource-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.gx-resource-content th,
.gx-resource-content td {
    padding: 11px 13px;
    border: 1px solid var(--gx-learn-line);
    text-align: left;
}

.gx-resource-content th {
    background: #f5f6fb;
}

.gx-resource-completion {
    display: flex;
    max-width: 800px;
    margin-top: 45px;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--gx-learn-line);
    border-radius: 13px;
    background: #fafbfe;
}

.gx-resource-completion strong,
.gx-resource-completion span {
    display: block;
}

.gx-resource-completion span {
    color: var(--gx-learn-muted);
    font-size: 12px;
}

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

.gx-resource-course-card,
.gx-continue-card {
    overflow: hidden;
    border: 1px solid var(--gx-learn-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(31, 39, 75, .045);
}

.gx-resource-course-cover {
    display: grid;
    height: 125px;
    overflow: hidden;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--gx-purple), var(--gx-blue));
    font-size: 36px;
    font-weight: 850;
}

.gx-resource-course-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-resource-course-card > div {
    padding: 17px;
}

.gx-resource-course-card h2 {
    margin: 0 0 2px;
    color: var(--gx-learn-ink);
    font-size: 17px;
    line-height: 1.3;
}

.gx-resource-course-card p {
    margin: 0 0 13px;
    color: var(--gx-learn-muted);
    font-size: 11px;
}

.gx-resource-course-card .button {
    width: 100%;
    min-height: 39px;
    padding: 8px 12px;
    border-color: #dfe2ed;
    color: #4640cf;
    font-size: 12px;
}

.gx-continue-card > h2 {
    margin: 0;
    padding: 15px 16px;
    border-bottom: 1px solid var(--gx-learn-line);
    font-size: 15px;
}

.gx-continue-list {
    display: grid;
}

.gx-continue-list > a {
    display: grid;
    padding: 13px 14px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid #edf0f5;
}

.gx-continue-list > a:last-child {
    border-bottom: 0;
}

.gx-continue-list > a:hover {
    background: #fafbff;
}

.gx-continue-list .gx-resource-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.gx-continue-list strong {
    display: -webkit-box;
    overflow: hidden;
    color: #3d455a;
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gx-continue-list small {
    display: block;
    margin-top: 3px;
    color: #8b91a0;
    font-size: 9px;
}

.gx-resource-locked {
    max-width: 680px;
    padding: 42px;
    text-align: center;
}

.gx-resource-locked > .dashicons {
    width: 44px;
    height: 44px;
    color: var(--gx-purple);
    font-size: 44px;
}

.gx-resource-locked h2 {
    margin: 12px 0 6px;
}

@media (max-width: 1180px) {
    .gx-learning-shell {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .gx-learning-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .gx-learning-shell,
    .gx-resource-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .gx-course-options,
    .gx-resource-sidebar {
        position: static;
    }

    .gx-course-mobile-progress {
        display: block;
    }

    .gx-resource-layout {
        gap: 42px;
    }

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

@media (max-width: 640px) {
    .gx-learning-page {
        padding-right: 16px;
        padding-bottom: 65px;
        padding-left: 16px;
    }

    .gx-learning-breadcrumb {
        padding-top: 17px;
        font-size: 11px;
    }

    .gx-course-intro {
        grid-template-columns: 66px minmax(0, 1fr);
        gap: 14px;
    }

    .gx-course-cover {
        width: 66px;
        height: 66px;
        border-radius: 12px;
        font-size: 25px;
    }

    .gx-course-intro h1 {
        font-size: 28px;
    }

    .gx-course-intro > div:last-child > p:last-child {
        font-size: 13px;
    }

    .gx-course-mobile-progress > div:first-child {
        display: grid;
        gap: 1px;
    }

    .gx-learning-page .gx-unit-head {
        min-height: 72px;
        padding: 13px;
        gap: 12px;
    }

    .gx-learning-page .gx-num {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .gx-learning-page .gx-unit-title {
        font-size: 14px;
    }

    .gx-learning-resource {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 13px;
        gap: 11px;
    }

    .gx-resource-actions {
        grid-column: 2;
        flex-wrap: wrap;
    }

    .gx-resource-open {
        font-size: 11px;
    }

    .gx-resource-header h1 {
        font-size: 36px;
    }

    .gx-resource-content {
        font-size: 16px;
    }

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

    .gx-resource-completion {
        align-items: stretch;
        flex-direction: column;
    }

    .gx-resource-completion .gx-complete {
        align-self: flex-start;
    }

    .gx-resource-locked {
        padding: 30px 20px;
    }
}
