
/* ==========================================================
   NEXUS COLLEGE
   LEARNING EXPERIENCE — COURSE DETAIL
   ========================================================== */

:root {
    --nx-ink: #172a48;
    --nx-ink-dark: #101d33;
    --nx-ink-soft: #273e60;
    --nx-gold: #e9ad5a;
    --nx-gold-light: #f7dfb7;
    --nx-cream: #f8f6f1;
    --nx-blue-soft: #eaf0f8;
    --nx-white: #ffffff;
    --nx-text: #25354c;
    --nx-muted: #687486;
    --nx-line: #e4e8ee;
    --nx-radius: 18px;
}

.nx-experience {
    background: var(--nx-cream);
    color: var(--nx-text);
    overflow: clip;
}

.nx-experience *,
.nx-experience *::before,
.nx-experience *::after {
    box-sizing: border-box;
}

.nx-experience a {
    text-decoration: none;
}

.nx-experience h1,
.nx-experience h2,
.nx-experience h3,
.nx-experience p {
    margin-top: 0;
}

.nx-experience section[id] {
    scroll-margin-top: 105px;
}

.nx-section-index {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ac792f;
    text-transform: uppercase;
}

.nx-small-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #a97839;
}

/* ==========================================================
   01. MASTHEAD
   ========================================================== */

.nx-masthead {
    position: relative;
    padding: 27px 0 95px;
    color: #fff;
    background:
        radial-gradient(
            ellipse at 82% 30%,
            rgba(76, 105, 149, .28),
            transparent 43%
        ),
        var(--nx-ink-dark);
    isolation: isolate;
}

.nx-masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(90deg, transparent 15%, #000 100%);
    pointer-events: none;
    z-index: -1;
}

.nx-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 72px;
    font-size: 12px;
    line-height: 1.7;
}

.nx-breadcrumb a {
    color: #aebdd2;
    transition: color .2s;
}

.nx-breadcrumb a:hover {
    color: #fff;
}

.nx-breadcrumb > i {
    font-size: 9px;
    color: #667e9e;
}

.nx-breadcrumb > span {
    color: #f2cf9b;
}

.nx-masthead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    align-items: center;
    gap: 55px;
}

.nx-programme-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #d9e3f2;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
}

.nx-live-dot {
    width: 8px;
    height: 8px;
    background: var(--nx-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(233,173,90,.12);
}

.nx-masthead-overline {
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-gold);
}

.nx-masthead h1 {
    max-width: 850px;
    color: #fff;
    font-size: clamp(35px, 4.5vw, 66px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -2px;
    overflow-wrap: break-word;
    margin-bottom: 25px;
}

.nx-masthead-summary {
    max-width: 660px;
    color: #c6d3e5;
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 0;
}

.nx-masthead-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-top: 35px;
}

.nx-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 16px 22px;
    border-radius: 7px;
    background: var(--nx-gold);
    color: var(--nx-ink-dark) !important;
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s, background .2s;
}

.nx-primary-action:hover {
    background: #f5bf75;
    transform: translateY(-3px);
}

.nx-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

/* Hero illustration: generated entirely with CSS */

.nx-masthead-art {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 440px;
    margin-inline: auto;
    display: grid;
    place-items: center;
}

.nx-art-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
}

.nx-art-ring-one {
    width: 94%;
    height: 94%;
}

.nx-art-ring-two {
    width: 73%;
    height: 73%;
    border-style: dashed;
    animation: nxRotate 65s linear infinite;
}

.nx-art-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 58%;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        linear-gradient(135deg, #f8d296, #db9b42);
    box-shadow: 0 28px 80px rgba(0,0,0,.17);
    text-align: center;
}

.nx-art-center span {
    color: #172a48;
    font-size: clamp(55px, 7vw, 110px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -7px;
}

.nx-art-center small {
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #543914;
}

.nx-art-top,
.nx-art-bottom {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    border-radius: 7px;
    background: #fff;
    color: #203650;
    box-shadow: 0 15px 40px rgba(0,0,0,.16);
    font-size: 10px;
    letter-spacing: 1px;
    font-weight: 750;
}

.nx-art-top {
    top: 13%;
    right: -2%;
    transform: rotate(7deg);
}

.nx-art-top i {
    color: #cb8e37;
    font-size: 18px;
}

.nx-art-bottom {
    bottom: 14%;
    left: -4%;
    transform: rotate(-7deg);
}

.nx-art-bottom i {
    font-size: 18px;
    color: #b0772e;
}

.nx-masthead-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--nx-cream);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

@keyframes nxRotate {
    to { transform: rotate(360deg); }
}

/* ==========================================================
   02. CHAPTER NAVIGATION
   ========================================================== */

.nx-chapter-bar {
    background: #fff;
    border-bottom: 1px solid var(--nx-line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.nx-chapter-inner {
    display: flex;
    align-items: center;
    min-height: 74px;
    gap: 35px;
}

.nx-chapter-label {
    color: #b48245;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nx-chapter-inner nav {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nx-chapter-inner nav::-webkit-scrollbar {
    display: none;
}

.nx-chapter-inner nav a {
    color: #546273;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 650;
    transition: color .2s;
}

.nx-chapter-inner nav a:hover {
    color: #bc8233;
}

.nx-chapter-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--nx-ink) !important;
    font-size: 12px;
    font-weight: 750;
}

/* ==========================================================
   03. PROGRAMME INTRODUCTION
   ========================================================== */

.nx-introduction {
    padding: 115px 0;
}

.nx-introduction-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 100px;
    align-items: start;
}

.nx-introduction-heading h2 {
    margin: 25px 0 30px;
    font-size: clamp(39px, 4vw, 61px);
    line-height: 1.12;
    color: var(--nx-ink);
    font-weight: 750;
    letter-spacing: -2px;
}

.nx-introduction-heading h2 em {
    display: block;
    color: #b6813f;
    font-style: normal;
}

.nx-introduction-marker {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--nx-gold);
    color: var(--nx-ink);
    font-size: 26px;
}

.nx-introduction-content {
    padding-top: 6px;
}

.nx-introduction-content h3 {
    margin: 15px 0 20px;
    color: var(--nx-ink);
    font-size: clamp(23px, 2.7vw, 33px);
    font-weight: 700;
    line-height: 1.35;
}

.nx-intro-richtext {
    color: #5b697d;
    font-size: 16px;
    line-height: 2;
}

.nx-intro-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 25px;
    margin-top: 38px;
    padding-top: 25px;
    border-top: 1px solid #d6dddF;
}

.nx-intro-meta > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nx-intro-meta span {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.3px;
    color: #ad7e43;
}

.nx-intro-meta strong {
    color: var(--nx-ink);
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================
   04. CURRICULUM
   ========================================================== */

.nx-curriculum {
    position: relative;
    padding: 105px 0 115px;
    background: var(--nx-ink);
    color: #fff;
}

.nx-curriculum-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 43px;
}

.nx-index-light {
    color: #eaba76;
}

.nx-curriculum-top h2 {
    margin: 20px 0 0;
    color: #fff;
    font-size: clamp(40px, 4.6vw, 66px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -2px;
}

.nx-curriculum-top h2 span {
    display: block;
    color: #eab56d;
}

.nx-curriculum-top > p {
    max-width: 320px;
    color: #becde1;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.nx-curriculum-frame {
    padding: 38px;
    background: #fff;
    border-radius: 20px;
    color: var(--nx-text);
}

.nx-curriculum-frame-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--nx-line);
    margin-bottom: 25px;
}

.nx-frame-kicker {
    color: #a67736;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.7px;
}

.nx-curriculum-frame-top h3 {
    margin: 10px 0 0;
    font-size: 27px;
    font-weight: 750;
    color: var(--nx-ink);
}

.nx-frame-decoration {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: #f6e7d0;
    border-radius: 12px;
    color: #ac7533;
    font-size: 21px;
}

/* Numbered curriculum grid */

.nx-topic-list > ol,
.nx-topic-list > ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0 22px;
    counter-reset: nxSubject;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nx-topic-list > ol > li,
.nx-topic-list > ul > li {
    counter-increment: nxSubject;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid var(--nx-line);
    font-size: 14px;
    line-height: 1.65;
}

.nx-topic-list > ol > li::before,
.nx-topic-list > ul > li::before {
    content: counter(nxSubject, decimal-leading-zero);
    flex: 0 0 auto;
    color: #b47b35;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-top: 3px;
}

/* ==========================================================
   05. LEARNING PATH
   ========================================================== */

.nx-learning-path {
    padding: 110px 0;
    background: #edf2f9;
}

.nx-learning-heading {
    max-width: 800px;
    margin-bottom: 43px;
}

.nx-learning-heading h2 {
    font-size: clamp(37px, 4vw, 57px);
    line-height: 1.16;
    font-weight: 750;
    letter-spacing: -1.8px;
    color: var(--nx-ink);
    margin: 20px 0;
}

.nx-learning-heading h2 span {
    display: block;
    color: #b88547;
}

.nx-learning-heading p {
    color: #68778a;
    line-height: 1.9;
    max-width: 560px;
    margin: 0;
}

.nx-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 24px;
    align-items: stretch;
}

.nx-learning-grid:has(> :only-child) {
    grid-template-columns: 1fr;
}

.nx-learning-panel {
    border-radius: 18px;
    padding: 35px;
    min-width: 0;
}

.nx-audience-panel {
    background: #fff;
}

.nx-outcomes-panel {
    background: #e6bd84;
}

.nx-learning-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 42px;
}

.nx-learning-panel-top span {
    color: #a47439;
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: 750;
}

.nx-outcomes-panel .nx-learning-panel-top span {
    color: #69502e;
}

.nx-learning-panel-top i {
    font-size: 24px;
    color: var(--nx-ink);
}

.nx-learning-panel h3 {
    color: var(--nx-ink);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -.8px;
    margin-bottom: 13px;
}

.nx-panel-intro {
    max-width: 480px;
    line-height: 1.8;
    color: #68778a;
    font-size: 14px;
    margin-bottom: 24px;
}

.nx-outcomes-panel .nx-panel-intro {
    color: #514636;
}

.nx-audience-list ul,
.nx-audience-list ol,
.nx-outcomes-list ul,
.nx-outcomes-list ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nx-audience-list li,
.nx-outcomes-list li {
    position: relative;
    padding: 13px 5px 13px 28px;
    border-top: 1px solid rgba(23,42,72,.12);
    font-size: 14px;
    line-height: 1.65;
    color: var(--nx-ink);
}

.nx-audience-list li::before,
.nx-outcomes-list li::before {
    content: "↗";
    position: absolute;
    left: 0;
    top: 11px;
    font-size: 16px;
    font-weight: 700;
    color: #b68140;
}

.nx-outcomes-list li::before {
    color: #173b51;
}

/* ==========================================================
   06. ASSESSMENT
   ========================================================== */

.nx-assessment {
    background: #fff;
    padding: 110px 0;
}

.nx-assessment-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.nx-assessment-symbol {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin-top: 35px;
    background: #f5e4ca;
    border-radius: 20px;
    color: #a36d2c;
    font-size: 32px;
}

.nx-assessment-title h2 {
    color: var(--nx-ink);
    margin: 25px 0 20px;
    font-size: clamp(36px, 4vw, 57px);
    line-height: 1.13;
    font-weight: 750;
    letter-spacing: -1.8px;
}

.nx-assessment-title h2 span {
    display: block;
    color: #b7813d;
}

.nx-assessment-title > p {
    color: #6b7788;
    line-height: 1.9;
    max-width: 410px;
}

.nx-assessment-information {
    background: #f7f8fb;
    padding: 35px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    min-width: 0;
}

.nx-assessment-information-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dfe5ed;
    padding-bottom: 24px;
    margin-bottom: 18px;
    gap: 15px;
}

.nx-assessment-information-top span {
    color: #b17c39;
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 800;
}

.nx-assessment-information-top i {
    color: #b17c39;
    font-size: 21px;
}

.nx-assessment-richtext ul,
.nx-assessment-richtext ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nx-assessment-richtext li {
    padding: 15px 0;
    border-bottom: 1px solid #e1e6ec;
    color: #455367;
    font-size: 14px;
    line-height: 1.8;
}

.nx-assessment-richtext li:last-child {
    border-bottom: 0;
}

.nx-assessment-richtext strong {
    color: #1a3454;
}

.nx-assessment-note {
    color: #667489;
    font-size: 12px;
    line-height: 1.8;
    margin: 23px 0 0;
}

/* ==========================================================
   SHARED DATABASE HTML
   ========================================================== */

.nx-richtext {
    overflow-wrap: anywhere;
}

.nx-richtext p {
    margin-bottom: 15px;
    line-height: 1.85;
}

.nx-richtext p:last-child {
    margin-bottom: 0;
}

.nx-richtext strong {
    font-weight: 750;
}

.nx-richtext a {
    color: #a27134;
    text-decoration: underline;
}

.nx-richtext img {
    max-width: 100%;
    height: auto;
}

.nx-richtext table {
    width: 100%;
    border-collapse: collapse;
}

.nx-richtext td,
.nx-richtext th {
    padding: 11px;
    border: 1px solid #dce2e9;
}

/* ==========================================================
   07. GUIDANCE
   ========================================================== */

.nx-guidance {
    padding: 110px 0;
    background: var(--nx-cream);
}

.nx-guidance-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 85px;
    align-items: start;
}

.nx-guidance-heading h2 {
    color: var(--nx-ink);
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.15;
    letter-spacing: -1.8px;
    font-weight: 750;
    margin: 22px 0;
}

.nx-guidance-heading h2 span {
    display: block;
    color: #bb8747;
}

.nx-guidance-heading > p {
    color: #647285;
    line-height: 1.9;
    max-width: 470px;
}

.nx-guidance-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 15px;
    color: var(--nx-ink) !important;
    font-size: 13px;
    font-weight: 750;
    padding-bottom: 9px;
    border-bottom: 2px solid #e8b56d;
}

.nx-guidance-questions {
    border-top: 1px solid #dce2e8;
}

.nx-guidance-item {
    border-bottom: 1px solid #dce2e8;
}

.nx-guidance-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    color: var(--nx-ink);
}

.nx-guidance-item summary::-webkit-details-marker {
    display: none;
}

.nx-guidance-number {
    color: #b4803e;
    font-size: 12px;
    font-weight: 750;
    padding-top: 5px;
}

.nx-guidance-item summary strong {
    flex: 1;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}

.nx-guidance-item summary > i {
    font-size: 17px;
    transition: transform .2s;
    margin-top: 4px;
}

.nx-guidance-item[open] summary > i {
    transform: rotate(45deg);
}

.nx-guidance-answer {
    padding: 0 24px 26px 42px;
}

.nx-guidance-answer p {
    color: #687587;
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 14px;
}

.nx-guidance-answer a {
    color: #a87535;
    font-size: 13px;
    font-weight: 700;
}

.nx-guidance-answer a i {
    margin-left: 6px;
}

/* ==========================================================
   08. MORE PROGRAMMES
   ========================================================== */

.nx-explore-more {
    padding: 65px 0;
    background: #e9eef6;
}

.nx-explore-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.nx-explore-inner h2 {
    font-size: clamp(25px, 3vw, 39px);
    font-weight: 750;
    letter-spacing: -1px;
    line-height: 1.3;
    margin: 15px 0 0;
    color: var(--nx-ink);
}

.nx-explore-inner h2 span {
    color: #aa7634;
}

.nx-explore-inner > a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    color: #fff;
    background: var(--nx-ink);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================
   09. FINAL ENQUIRY
   ========================================================== */

.nx-finish {
    padding: 75px 0;
    background: #fff;
}

.nx-finish-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
    min-height: 370px;
    padding: 60px;
    border-radius: 22px;
    background: var(--nx-ink-dark);
}

.nx-finish-copy {
    position: relative;
    z-index: 2;
}

.nx-finish-copy > span {
    display: block;
    color: #e9bb7e;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.nx-finish-copy h2 {
    color: #fff;
    font-size: clamp(35px, 4vw, 57px);
    line-height: 1.13;
    letter-spacing: -1.7px;
    font-weight: 750;
    margin-bottom: 20px;
}

.nx-finish-copy h2 em {
    display: block;
    font-style: normal;
    color: #eab56b;
}

.nx-finish-copy p {
    color: #bdcce0;
    font-size: 14px;
    line-height: 1.85;
    max-width: 580px;
    margin-bottom: 28px;
}

.nx-finish-copy a {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    padding: 16px 22px;
    color: var(--nx-ink-dark);
    background: var(--nx-gold);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 750;
}

.nx-finish-graphic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 35px;
    transform: rotate(-10deg);
    color: #fff;
    opacity: .95;
}

.nx-finish-graphic span {
    letter-spacing: 4px;
    font-size: 15px;
    font-weight: 800;
}

.nx-finish-graphic div {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    border: 2px solid #e8b36a;
    border-radius: 50%;
    color: #e8b36a;
    font-size: 86px;
}

.nx-finish-graphic strong {
    color: #e8b36a;
    font-size: 23px;
    letter-spacing: 5px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1199px) {
    .nx-masthead-grid {
        gap: 30px;
    }

    .nx-introduction-grid,
    .nx-assessment-layout,
    .nx-guidance-grid {
        gap: 50px;
    }

    .nx-topic-list > ol,
    .nx-topic-list > ul {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 991px) {
    .nx-masthead {
        padding-bottom: 65px;
    }

    .nx-breadcrumb {
        margin-bottom: 45px;
    }

    .nx-masthead-grid {
        grid-template-columns: 1fr;
    }

    .nx-masthead-art {
        max-width: 320px;
        margin-top: 25px;
    }

    .nx-introduction-grid,
    .nx-assessment-layout,
    .nx-guidance-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .nx-introduction,
    .nx-assessment,
    .nx-guidance,
    .nx-learning-path {
        padding: 75px 0;
    }

    .nx-curriculum {
        padding: 80px 0;
    }

    .nx-finish-inner {
        padding: 40px;
    }

    .nx-chapter-inner {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .nx-masthead {
        padding: 22px 0 55px;
    }

    .nx-breadcrumb {
        margin-bottom: 35px;
        gap: 7px;
        font-size: 11px;
    }

    .nx-masthead h1 {
        font-size: clamp(32px, 8vw, 43px);
        letter-spacing: -1px;
    }

    .nx-masthead-summary {
        font-size: 14px;
    }

    .nx-masthead-art {
        max-width: 265px;
    }

    .nx-art-center span {
        font-size: 68px;
    }

    .nx-art-center small {
        font-size: 7px;
    }

    .nx-art-top,
    .nx-art-bottom {
        padding: 9px;
        font-size: 8px;
    }

    .nx-chapter-inner {
        min-height: 63px;
    }

    .nx-chapter-label,
    .nx-chapter-contact {
        display: none;
    }

    .nx-chapter-inner nav {
        width: 100%;
        gap: 22px;
    }

    .nx-introduction,
    .nx-assessment,
    .nx-guidance,
    .nx-learning-path {
        padding: 55px 0;
    }

    .nx-introduction-heading h2,
    .nx-learning-heading h2,
    .nx-guidance-heading h2 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .nx-curriculum {
        padding: 60px 0;
    }

    .nx-curriculum-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
    }

    .nx-curriculum-top h2 {
        font-size: 39px;
    }

    .nx-curriculum-frame {
        padding: 23px 19px;
        border-radius: 13px;
    }

    .nx-topic-list > ol,
    .nx-topic-list > ul {
        grid-template-columns: 1fr;
    }

    .nx-learning-grid {
        grid-template-columns: 1fr;
    }

    .nx-learning-panel {
        padding: 26px 22px;
    }

    .nx-learning-panel-top {
        margin-bottom: 25px;
    }

    .nx-assessment-information {
        padding: 25px 20px;
    }

    .nx-explore-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nx-explore-inner > a {
        white-space: normal;
    }

    .nx-finish {
        padding: 45px 0;
    }

    .nx-finish-inner {
        grid-template-columns: 1fr;
        padding: 30px 23px;
        gap: 10px;
    }

    .nx-finish-graphic {
        display: none;
    }
}

@media (max-width: 480px) {
    .nx-masthead-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .nx-primary-action {
        width: 100%;
    }

    .nx-intro-meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nx-guidance-item summary {
        gap: 12px;
    }

    .nx-guidance-item summary strong {
        font-size: 14px;
    }

    .nx-guidance-answer {
        padding-left: 29px;
    }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.nx-experience a:focus-visible,
.nx-experience summary:focus-visible {
    outline: 3px solid #d49a44;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .nx-art-ring-two {
        animation: none;
    }

    .nx-experience *,
    .nx-experience *::before,
    .nx-experience *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ==========================================================
   NEXUS COLLEGE — DYNAMIC SUBCOURSE HERO IMAGE
   ========================================================== */

.nx-masthead-art-photo {
    position: relative;
    display: block;
    width: 100%;
    max-width: 455px;
    aspect-ratio: 4 / 4.6;
    margin-inline: auto;
    isolation: isolate;
}

/* Soft gold accent behind the photo */

.nx-masthead-art-photo::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -17px;
    width: 58%;
    height: 62%;
    border: 1px solid rgba(233, 173, 90, .65);
    border-radius: 22px;
    z-index: -1;
}

.nx-masthead-art-photo::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: -17px;
    width: 45%;
    height: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    z-index: -1;
}

/* Main image container */

.nx-course-photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #253a58;
    box-shadow: 0 30px 65px rgba(0, 0, 0, .22);
}

/* Actual database image */

.nx-course-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .65s ease;
}

.nx-masthead-art-photo:hover .nx-course-photo {
    transform: scale(1.045);
}

/* Gradient for readable text */

.nx-course-photo-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 25, 45, 0) 38%,
        rgba(10, 25, 45, .22) 58%,
        rgba(10, 25, 45, .88) 100%
    );
    pointer-events: none;
}

/* Bottom photo caption */

.nx-course-photo-caption {
    position: absolute;
    bottom: 32px;
    left: 30px;
    right: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nx-course-photo-caption span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #efbf7b;
}

.nx-course-photo-caption strong {
    font-size: clamp(17px, 2vw, 23px);
    font-weight: 750;
    line-height: 1.4;
    color: #fff;
    overflow-wrap: anywhere;
}

/* Floating badge */

.nx-course-photo-badge {
    position: absolute;
    top: 9%;
    left: -33px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 18px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .20);
    transform: rotate(-5deg);
}

.nx-course-photo-badge i {
    font-size: 22px;
    color: #b47c36;
}

.nx-course-photo-badge span {
    color: #172a48;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;
    white-space: nowrap;
}

/* Decorative gold corner arrow */

.nx-course-photo-corner {
    position: absolute;
    right: -18px;
    bottom: 13%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 67px;
    height: 67px;
    border-radius: 50%;
    background: #e9ad5a;
    color: #172a48;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    font-size: 29px;
}

/* Responsive */

@media (max-width: 991px) {
    .nx-masthead-art-photo {
        max-width: 380px;
        margin-top: 32px;
    }
}

@media (max-width: 575px) {
    .nx-masthead-art-photo {
        max-width: 300px;
        margin-top: 28px;
    }

    .nx-course-photo-frame {
        border-radius: 16px;
    }

    .nx-course-photo-caption {
        bottom: 22px;
        left: 20px;
        right: 20px;
    }

    .nx-course-photo-badge {
        top: 7%;
        left: -10px;
        padding: 10px 12px;
        gap: 8px;
    }

    .nx-course-photo-badge span {
        font-size: 8px;
    }

    .nx-course-photo-badge i {
        font-size: 17px;
    }

    .nx-course-photo-corner {
        right: -10px;
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .nx-masthead-art-photo::before {
        right: -8px;
    }

    .nx-masthead-art-photo::after {
        left: -8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nx-course-photo {
        transition: none;
    }

    .nx-masthead-art-photo:hover .nx-course-photo {
        transform: none;
    }
}
