/*
 * Digital Janit: styles for the inner pages (listings, articles, reviews, contact...).
 * Builds on the tokens and components in dj-home.css.
 */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }
.nav-login { display: none; }
@media (max-width: 1040px) { nav.main .nav-login { display: block; color: var(--blue); } }

/* Footer extras */
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-lines li { display: flex; gap: 10px; align-items: center; }
.contact-lines svg.lucide { width: 16px; height: 16px; color: #8FB6F0; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #DCE6FA; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.socials svg.lucide { width: 19px; height: 19px; }
.socials.big a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; }
.socials.big a:hover { color: #fff; }
.foot-bottom .legal { display: flex; gap: 18px; }
.foot-bottom a { text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* Proof strip with roles */
.alum-txt { display: grid; line-height: 1.2; }
.alum-txt em { font-style: normal; font-weight: 500; font-size: .76rem; color: var(--ink-3); }
.proof-label { max-width: 230px; }

/* Learning path modules */
.ms-sub { color: var(--ink-2); font-size: .95rem; }
.band-dark .ms-sub { color: #AEB6D6; }
.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mods span { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.band-dark .mods span { background: rgba(255,255,255,.07); color: #DCE6FA; border: 1px solid rgba(255,255,255,.1); }

/* Stars (fractional, CSS only) */
.stars { --r: 5; display: inline-block; width: 92px; height: 17px; flex: none;
  background: linear-gradient(90deg, var(--amber) calc(var(--r) / 5 * 100%), var(--line) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M8.5 0l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L0 6.2l5.9-.9z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 17'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M8.5 0l2.6 5.3 5.9.9-4.3 4.1 1 5.8-5.2-2.7-5.2 2.7 1-5.8L0 6.2l5.9-.9z'/%3E%3Cuse href='%23s' x='18.75'/%3E%3Cuse href='%23s' x='37.5'/%3E%3Cuse href='%23s' x='56.25'/%3E%3Cuse href='%23s' x='75'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.rating-sum { display: flex; align-items: center; gap: 10px; color: var(--ink-2); flex-wrap: wrap; }
.rating-sum b { color: var(--ink); font-size: 1.1rem; }

/* Reviews */
.reviews { columns: 3 300px; column-gap: 18px; }
.review { break-inside: avoid; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.review h3 { font-size: 1.02rem; }
.review blockquote { margin: 0; color: var(--ink-2); font-size: .97rem; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .93rem; }
.review .av, .alum .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 700; background: radial-gradient(circle at 30% 25%, var(--a1, #4D9BEA), var(--a2, #0A6BD6) 70%); flex: none; }
.review-summary { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.big-rating { display: grid; gap: 6px; justify-items: start; }
.big-rating b { font-size: 3rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.big-rating span:last-child { color: var(--ink-2); font-size: .92rem; }
.dist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; flex: 1; min-width: 220px; max-width: 420px; }
.dist li { display: grid; grid-template-columns: 36px 1fr 32px; gap: 10px; align-items: center; font-size: .88rem; color: var(--ink-2); }
.dist .bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.dist .bar i { display: block; height: 100%; background: var(--amber); border-radius: inherit; }

/* Hire / inline CTA band */
.hire { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; border-radius: 24px; background: linear-gradient(120deg, var(--blue-50), var(--surface) 60%); border: 1px solid var(--line); margin-block: 8px; }
.hire h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.hire .lede { margin-top: 6px; font-size: 1rem; }
section.wrap > .hire { margin-block: 0 88px; }
@media (max-width: 640px) { .hire { padding: 24px 20px; } .hire .btn { width: 100%; } }

/* Bento language links */
.lang-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.lang-links a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); }

/* Filters as links */
.filters a { font: 600 .9rem var(--font); padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; transition: all .15s; white-space: nowrap; }
.filters a:hover { border-color: var(--blue); color: var(--blue); }
.filters a[aria-current="page"] { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 8px 16px -8px rgba(10,107,214,.8); }
.empty { padding: 40px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r); }

/* Pagination */
.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding-inline: 12px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .dots { border: 0; background: none; }

/* Person card role */
.person .role { color: var(--ink-2); font-size: .92rem; margin-top: -4px; }
.person .placed, .story-head .placed { display: inline-flex; align-items: center; gap: 6px; }
.placed svg.lucide { width: 13px; height: 13px; }
.companies { display: grid; gap: 14px; justify-items: center; text-align: center; }
.companies p { font-weight: 700; color: var(--ink-3); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.companies ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.companies li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; box-shadow: var(--shadow); }
.companies li svg.lucide { color: var(--blue); width: 18px; height: 18px; }
.companies small { font-weight: 600; color: var(--ink-3); font-size: .78rem; }

/* Single placement */
.story-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.story-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-lg); flex: none; }
.story-initials { display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; color: #fff; background: radial-gradient(circle at 30% 25%, #4D9BEA, #0A6BD6 70%); }

/* Help centre */
.sec-title { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 20px; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.help-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.help-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.help-card p { color: var(--ink-2); font-size: .95rem; }
.help-card .go { color: var(--blue); font-weight: 600; font-size: .93rem; }

/* Notes list */
.notes-list { list-style: none; padding: 0; margin: 0; counter-reset: note; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.notes-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s, box-shadow .2s; }
.notes-list a:hover { border-color: var(--line-strong); transform: translateX(4px); box-shadow: var(--shadow); }
.notes-list .nn { counter-increment: note; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-family: var(--mono); font-size: .8rem; }
.notes-list .nn::before { content: counter(note, decimal-leading-zero); }
.notes-list svg.lucide { color: var(--ink-3); width: 18px; height: 18px; }

/* Blog */
.blog-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.blog-tools .filters { margin-bottom: 0; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); min-width: min(100%, 280px); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.search svg.lucide { color: var(--ink-3); width: 18px; height: 18px; }
.search input { border: 0; outline: 0; background: transparent; font: 500 1rem var(--font); color: var(--ink); padding: 12px 0; width: 100%; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.post-card:hover .post-img img { transform: scale(1.04); }
.post-body { display: grid; gap: 10px; padding: 20px; align-content: start; flex: 1; }
.post-body .chip { justify-self: start; }
.post-body h3 { font-size: 1.08rem; line-height: 1.3; }
.post-body .excerpt { color: var(--ink-2); font-size: .94rem; }
.post-body .date { color: var(--ink-3); font-size: .84rem; margin-top: auto; }

/* Article */
.article-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.article-head .eyebrow { text-decoration: none; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-3); font-size: .92rem; margin: 0; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg.lucide { width: 16px; height: 16px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-grid.is-builder { grid-template-columns: 1fr; }
.article-cover { margin: 0 0 28px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-box, .side-cta { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 12px; }
.side-box h2, .side-cta h2 { font-size: 1.05rem; }
.side-cta { background: linear-gradient(160deg, var(--blue-50), var(--surface)); }
.side-cta p { color: var(--ink-2); font-size: .93rem; }
.side-list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.side-list.plain { list-style: none; padding-left: 0; }
.side-list a { display: block; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.side-list a:hover { background: var(--soft); color: var(--ink); }
.side-list a[aria-current="page"] { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.pn { display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.pn:hover { border-color: var(--blue); }
.pn small { color: var(--ink-3); font-weight: 600; }
.pn.next { text-align: right; }
@media (max-width: 980px) { .article-grid { grid-template-columns: 1fr; } .article-side { position: static; } }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

/* Long-form content */
.prose { font-size: 1.06rem; line-height: 1.8; color: var(--ink); max-width: 72ch; overflow-wrap: anywhere; }
.prose-page { margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .4em; }
.prose img, .prose figure img { border-radius: 14px; height: auto; box-shadow: var(--shadow); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--ink-3); text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--blue-50); border-radius: 0 14px 14px 0; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--soft); }
.prose pre, .prose code { font-family: var(--mono); font-size: .9em; background: var(--soft); border-radius: 8px; }
.prose code { padding: 2px 6px; }
.prose pre { padding: 16px; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-block; background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.prose .aligncenter { margin-inline: auto; display: block; }

/* Elementor-built pages inside the new header/footer */
.dj-builder-page { min-height: 40vh; }
.dj-builder { width: 100%; }

/* Contact */
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
a.contact-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.contact-card > span:last-child { display: grid; }
.contact-card > span:last-child span { color: var(--ink-2); font-size: .94rem; }
.contact-card.wa { border-color: rgba(31,175,90,.35); }

/* 404 */
.nf { padding-block: 100px; }
.nf-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Dark theme touches */
:root[data-theme="dark"] .hire { background: linear-gradient(120deg, var(--blue-50), var(--surface) 60%); }
:root[data-theme="dark"] .prose blockquote { color: var(--ink); }

/* Edumall prints these on every page; the new design has its own menu, search and login links. */
body.dj-site #popup-pre-loader,
body.dj-site .edumall-popup,
body.dj-site #page-scroll-up,
body.dj-site #popup-search,
body.dj-site #page-mobile-main-menu,
body.dj-site #edumall-popup-instructor-register,
body.dj-site .tutor-login-modal { display: none !important; }

/* Keep the design's heading weights even when plugin stylesheets set their own. */
body.dj-site h1, body.dj-site h2 { font-weight: 600; }
body.dj-site h3, body.dj-site h4 { font-weight: 600; }
body.dj-site .prose h2, body.dj-site .prose h3 { font-weight: 650; }

/* Two-digit numbers in the notes sidebar */
.side-list { padding-left: 30px; }

/* Social-proof popup (FOMO plugin) should not cover the mobile action bar */
@media (max-width: 760px) { body.dj-site #lovethemes-fomo { bottom: 84px !important; } }

/* Page headings line up with the content below them */
.page-head .wrap.stack { max-width: 1200px; }
.page-head .stack > h1, .page-head .stack > .lede { max-width: 780px; }

/* ===== Single course ===== */
.course-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 48px 120px; background: var(--night); color: #C9D2EE; }
.course-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(10,107,214,.45), transparent 65%); }
.course-hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(247,137,12,.22), transparent 65%); }
.course-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 24ch; }
.course-hero .lede { color: #B9C3E3; max-width: 62ch; }
.course-hero .crumbs a, .course-hero .crumbs { color: #9FB0DA; }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
.course-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.course-hero .chip { background: rgba(255,255,255,.09); color: #DCE6FA; }
.course-hero .chip.lang { background: rgba(10,107,214,.35); color: #fff; }
.chip.off { background: var(--amber); color: #3A2600; }
.course-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .94rem; color: #C9D2EE; }
.course-stats span { display: inline-flex; align-items: center; gap: 7px; }
.course-stats b { color: #FFB766; font-size: 1.05rem; }
.course-stats svg.lucide { width: 17px; height: 17px; color: #8FB6F0; }

.course-body-band { padding-top: 0; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.course-main { padding-top: 40px; min-width: 0; }
.course-main h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

.buy-card { position: sticky; top: 90px; margin-top: -92px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,20,48,.45), var(--shadow); z-index: 2; }
.buy-media { aspect-ratio: 16 / 9; background: var(--soft); position: relative; }
.buy-media img, .buy-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.buy-media .yt { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.buy-media .yt img { opacity: .85; transition: opacity .2s, transform .4s; }
.buy-media .yt:hover img { opacity: 1; transform: scale(1.03); }
.buy-media .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); color: #0E1430; font-weight: 700; padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); font-size: .92rem; white-space: nowrap; }
.buy-media .play svg.lucide { width: 22px; height: 22px; color: var(--blue); }
.buy-body { padding: 20px; display: grid; gap: 12px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.buy-price b { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.buy-price del { color: var(--ink-3); }
.buy-facts { list-style: none; padding: 12px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .93rem; color: var(--ink-2); }
.buy-facts li { display: flex; align-items: center; gap: 10px; }
.buy-facts svg.lucide { width: 17px; height: 17px; color: var(--blue); }
.enrol-form { margin: 0; }
.progress-box { display: grid; gap: 8px; }
.progress-box .bar { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.progress-box .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #4D9BEA); border-radius: inherit; }

.learn-box { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); }
.learn-box h2 { margin-bottom: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .97rem; }
.ticks svg.lucide { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 640px) { .ticks { grid-template-columns: 1fr; } }

.curriculum .items { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; }
.curriculum .items li { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.curriculum .items li:first-child { border-top: 0; }
.curriculum .items svg.lucide { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.curriculum .items a { color: var(--ink); text-decoration: none; font-weight: 500; flex: 1; }
.curriculum .items a:hover { color: var(--blue); }
.curriculum .items li > span:not(.pv):not(.tm) { flex: 1; }
.curriculum .pv { font-size: .75rem; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: 2px 8px; border-radius: 99px; }
.curriculum .tm { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.curriculum .lock { opacity: .55; }
.curriculum h2 { margin-bottom: 14px; }

.readmore { max-height: 340px; overflow: hidden; position: relative; }
.readmore::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.readmore.open { max-height: none; }
.readmore.open::after { display: none; }
.more-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; font: 600 .95rem var(--font); }

.info-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.info-cols > div { background: var(--soft); border-radius: 18px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.info-cols ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: .94rem; }

.instructor { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.instructor img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }

.course-mbar { display: none; }
@media (max-width: 980px) {
	.course-hero { padding-block: 32px 40px; }
	.course-hero-grid, .course-layout { grid-template-columns: 1fr; }
	.buy-card { position: static; margin-top: 24px; order: -1; }
	.course-main { padding-top: 8px; }
	.dj-view-course .mbar { display: none !important; }
	.course-mbar { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--glass); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(14,20,48,.3); transform: translateY(110%); transition: transform .35s cubic-bezier(.16,1,.3,1); }
	.course-mbar.show { transform: none; }
	.course-mbar .cm-price { display: grid; line-height: 1.1; }
	.course-mbar .cm-price b { font-size: 1.2rem; }
	.course-mbar .cm-price del { font-size: .8rem; color: var(--ink-3); }
	.course-mbar .btn { padding: 14px 16px; }
	body.dj-view-course { padding-bottom: 80px; }
}

/* Courses dropdown in the header */
nav.main .has-sub { position: relative; display: flex; }
nav.main .has-sub > a { display: inline-flex; align-items: center; gap: 7px; }
nav.main .caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
nav.main .has-sub .sub { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 290px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(14,20,48,.35); display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
nav.main .has-sub .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
nav.main .has-sub:hover .sub, nav.main .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
nav.main .has-sub .sub a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 10px; color: var(--ink); background: none; }
nav.main .has-sub .sub a:hover { background: var(--blue-50); }
nav.main .has-sub .sub b { font-weight: 600; font-size: .93rem; }
nav.main .has-sub .sub small { color: var(--ink-3); font-size: .8rem; font-weight: 500; }
@media (max-width: 1040px) {
	nav.main .has-sub { display: grid; }
	nav.main .has-sub .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
	nav.main .has-sub .sub small, nav.main .caret { display: none; }
	nav.main .has-sub .sub a { padding: 9px 12px; }
}


/* ---------- Top menu: dropdown groups (Courses, Free learning, About) ---------- */
nav.main .sub-toggle { display: none; }
nav.main .has-sub .sub { min-width: 300px; padding: 8px; gap: 2px; }
nav.main .has-sub.is-wide .sub { min-width: 540px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
nav.main .has-sub.is-wide .sub > .is-feature, nav.main .has-sub.is-wide .sub > .sub-label { grid-column: 1 / -1; }
nav.main .has-sub .sub a.sub-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; }
nav.main .has-sub .sub a.sub-item:hover, nav.main .has-sub .sub a.sub-item:focus-visible { background: var(--blue-50); }
nav.main .has-sub .sub a.sub-item[aria-current="page"] { background: var(--blue-50); }
nav.main .has-sub .sub a.sub-item[aria-current="page"] b { color: var(--blue); }
nav.main .sub-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--blue); transition: background .15s, color .15s; }
nav.main .sub-ic svg { width: 17px; height: 17px; }
nav.main .sub-item:hover .sub-ic { background: var(--blue); color: #fff; }
nav.main .sub-tx { display: grid; gap: 1px; min-width: 0; }
nav.main .sub-tx b { font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.3; }
nav.main .sub-tx small { font-size: .78rem; color: var(--ink-3); font-weight: 500; line-height: 1.3; }
nav.main .sub a.is-feature { margin-bottom: 4px; background: linear-gradient(120deg, #FFF3E3, #EEF4FD); border: 1px solid #F8D8B0; }
nav.main .sub a.is-feature .sub-ic { background: linear-gradient(135deg, #FFB347, #F7890C); color: #fff; }
nav.main .sub a.is-feature:hover { background: linear-gradient(120deg, #FFE9CC, #E1ECFB); }
nav.main .sub-label { display: block; padding: 10px 10px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
nav.main .sub a.is-topic { padding: 7px 10px; }
nav.main .sub a.is-topic b { font-weight: 500; font-size: .9rem; color: var(--ink-2); }
nav.main .sub a.is-topic:hover b { color: var(--blue); }
nav.main .has-sub > a[aria-current="page"] { color: var(--blue); }

@media (max-width: 1040px) {
	nav.main .has-sub { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	nav.main .has-sub > a .caret { display: none; }
	nav.main .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer; }
	nav.main .sub-toggle:hover { background: var(--soft); }
	nav.main .sub-toggle .caret { display: block; transition: transform .2s; }
	nav.main .has-sub.open .sub-toggle .caret { transform: rotate(-135deg) translateY(-2px); }
	nav.main .has-sub .sub, nav.main .has-sub.is-wide .sub { grid-column: 1 / -1; display: none; min-width: 0; grid-template-columns: minmax(0, 1fr); padding: 0 0 8px 8px; }
	nav.main .has-sub.open .sub { display: grid; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; }
	nav.main .sub-tx small { display: block; }
	nav.main .sub-label { border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { nav.main .sub-toggle .caret { transition: none; } }

/* Inter everywhere: numbers keep equal widths where they used to be monospace. */
.notes-list .nn, .curriculum .tm, .prose code { font-variant-numeric: tabular-nums; }
