/* ==========================================================================
   Nelson Justino — Dark Editorial Theme — PUBLIC SITE override
   Loads after main.css. Reuses the exact design tokens from the admin theme.
   Do not introduce a second accent color, colored shadows or a new font.
   ========================================================================== */

:root {
  /* ---- official Nelson tokens (site + scheduling system) ---- */
  --accent: #c8f31d;
  --accent-l: #c8f31d;
  --accent-d: #b2da12;
  --accent-soft: rgba(200, 243, 29, .10);
  --accent-ink: #0c0d0a;
  --bg-nj: #080907;
  --bg-deep-nj: #050604;
  --card: #111309;
  --card-2: #12140d;
  --ink: #f2f4ec;
  --muted: rgba(242, 244, 236, .58);
  --faint: rgba(242, 244, 236, .38);
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(200, 243, 29, .34);
  --danger: #f36b1d;
  --amber: #e8d81f;
  --success: #c8f31d;
  --success-bg: rgba(200, 243, 29, .10);
  --gold-nj: var(--accent);
  --teal-nj: var(--accent);
  --coral-nj: var(--accent);
  --r-nj: 14px;
  --r-sm-nj: 10px;
  --shadow-nj: 0 10px 30px rgba(0, 0, 0, .4);

  /* ---- remap the theme's own variables to dark equivalents ---- */
  --border: var(--line);
  --box-shadow: var(--shadow-nj);
  --bg-2: var(--bg-deep-nj);
  --text: var(--muted);
  --bg: var(--card-2);
  --header: var(--ink);
  /* --white / --black / --theme / --theme-2 / --body kept as-is:
     --theme & --theme-2 already feed from branding settings (lime),
     --white/--black are dual-purpose and handled with surgical overrides below */
}

/* ==========================================================================
   01. Base / page background
   ========================================================================== */
html, body {
  background-color: var(--bg-nj) !important;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
a { transition: color .2s ease-in-out; }

.preloader .loader .loader-section .bg {
  background-color: var(--bg-nj) !important;
}
.preloader .loader .loader-section {
  background-color: var(--bg-nj) !important;
}

/* ==========================================================================
   02. Header / navigation / top bar
   ========================================================================== */
.header-top-section {
  background-color: var(--bg-deep-nj) !important;
  border-bottom: 1px solid var(--line);
}
.header-top-section .header-top-wrapper ul li,
.header-top-section .header-top-wrapper ul li a,
.header-top-section .header-top-wrapper .social-icon a {
  color: var(--muted) !important;
  border-color: var(--line) !important;
}
.header-top-section .header-top-wrapper ul li:not(:last-child) {
  border-right: 1px solid var(--line) !important;
}

#header-sticky,
.header-1,
.header-2,
.header-3 {
  background-color: var(--bg-nj) !important;
}
.header-main,
.header-2 .mega-menu-wrapper,
.header-3 .mega-menu-wrapper,
.sticky {
  background-color: var(--bg-nj) !important;
}
.sticky {
  box-shadow: var(--shadow-nj) !important;
  border-bottom: 1px solid var(--line);
}

#header-sticky .logo-shape {
  display: none !important;
}

#header-sticky .header-main .logo {
  width: 168px;
  flex: 0 0 168px;
}

#header-sticky .header-main .logo img {
  width: 168px !important;
  max-width: 168px !important;
  height: auto !important;
}

#mobile-menu > ul > li {
  margin-right: 30px !important;
}

#mobile-menu > ul > li:last-child {
  margin-right: 0 !important;
}

.header-main .main-menu ul li a,
.header-1 .header-right .sidebar__toggle {
  color: var(--ink) !important;
}
.header-main .main-menu ul li .submenu {
  background-color: var(--bg-deep-nj) !important;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-nj) !important;
}
.header-main .main-menu ul li .submenu li a {
  color: var(--muted) !important;
}
.header-main .main-menu ul li .submenu li a:hover {
  color: var(--accent) !important;
}
.header-main .main-menu ul li:hover > a,
.header-main .main-menu ul li.active > a {
  color: var(--accent) !important;
}

.header-2 .category-oneadjust,
.header-3 .category-oneadjust {
  background: var(--card-2) !important;
}
.header-2 .category-oneadjust .single-select,
.header-3 .category-oneadjust .single-select {
  color: var(--ink) !important;
}
.header-2 .category-oneadjust .single-select::after,
.header-3 .category-oneadjust .single-select::after {
  border-bottom-color: var(--ink) !important;
  border-right-color: var(--ink) !important;
}

.main-header__search {
  color: var(--ink) !important;
}

.mhq-search-widget form button,
.blog-search form button {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}

.post-box {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* mobile / mean menu */
.mean-container .mean-bar,
.mean-container .mean-nav {
  background: var(--bg-deep-nj) !important;
}
.mean-container .mean-nav ul li a {
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line) !important;
}
.mean-container .mean-nav ul li a:hover {
  color: var(--accent) !important;
}
.mean-container a.meanmenu-reveal span {
  background: var(--ink) !important;
}

/* offcanvas / sidebar drawer */
.offcanvas__info,
.offcanvas__wrapper {
  background: var(--bg-deep-nj) !important;
}
.offcanvas__overlay {
  background: rgba(0, 0, 0, .6) !important;
}
.offcanvas__wrapper .offcanvas__content p,
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li,
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li span {
  color: var(--muted) !important;
}
.offcanvas__wrapper .offcanvas__content .offcanvas__contact .contact-list li a,
.offcanvas__wrapper .offcanvas__content .social-icon a {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.offcanvas__wrapper .offcanvas__content .social-icon a:hover {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* search popup */
.search-popup__form input[type=text] {
  background-color: var(--card-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
.search-popup__form input[type=text]:focus {
  color: var(--ink) !important;
}
.search-popup__form .search-btn:hover {
  background-color: var(--accent-d) !important;
}

/* ==========================================================================
   03. Buttons (.theme-btn) — the site-wide CTA pattern
   ========================================================================== */
.theme-btn {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}
.theme-btn i {
  background-color: var(--accent-d) !important;
  color: var(--accent-ink) !important;
}
.theme-btn::before {
  background-color: var(--accent-d) !important;
}
.theme-btn:hover {
  color: var(--accent-ink) !important;
}
.theme-btn:hover i {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}

#header-sticky .header-right .theme-btn,
.nj-lms-actions .theme-btn,
.nj-lms-course-card .theme-btn,
.mhq-courses-box-items.nj-course-card--featured .theme-btn,
.offcanvas__content > .theme-btn {
  width: fit-content !important;
  max-width: 100%;
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  white-space: nowrap;
}

#header-sticky .header-right .theme-btn {
  min-height: 46px;
  font-size: 14px;
}

#header-sticky .header-right .theme-btn i,
.nj-lms-actions .theme-btn i,
.nj-lms-course-card .theme-btn i,
.mhq-courses-box-items.nj-course-card--featured .theme-btn i,
.offcanvas__content > .theme-btn i {
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  flex: 0 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}
/* outlined / secondary variants that borrowed the old grey border */
.mhq-programs-box-items-2 .mhq-content .theme-btn,
.mhq-event-box-items-2 .mhq-content .theme-btn,
.mhq-news-box-items .mhq-content .theme-btn,
.news-left-items .news-left-content .theme-btn,
.news-post-items li .theme-btn {
  border: 1px solid var(--line) !important;
}

.back-to-top {
  background-color: var(--card-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.back-to-top:hover {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* ==========================================================================
   04. Generic light-card surfaces (former var(--white) / hex backgrounds)
   ========================================================================== */
body,
.search-popup__form input[type=text],
.header-main .main-menu ul li .submenu,
.header-2 .mega-menu-wrapper,
.sticky,
.offcanvas__info,
.mhq-hero-1 .mhq-right-items .client-counter-box,
.mhq-hero-1 .mhq-right-items .counter-box,
.mhq-hero-2 .mhq-hero-content .theme-btn,
.mhq-programs-box-items-2,
.discount-box-items .btn-box .theme-btn.style-2 i,
.mhq-pricing-section-3 .section-title .nav .nav-link::after,
.mhq-choose-us-wrapper-2 .mhq-icon-box-items-area .mhq-box-items .mhq-box.style-2,
.mhq-choose-us-style-22 .mhq-box-items .mhq-box .icon,
.mhq-category-box-items:hover .mhq-icon,
.mhq-courses-box-items .mhq-courses-content .post-date li .icon,
.mhq-category-box-items-3 .mhq-icon,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .nav,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .instructors-items .instructors-box-items.style-2,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .courses-reviews-box-items .courses-reviews-box .reviews-box,
.mhq-courses-details-area .details-list-area,
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items .courses-list-box,
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items .mhq-search-widget form input,
.mhq-event-details-area .event-details-information .coming-soon-timer .timer-content h3,
.mhq-team-box-items .mhq-image .mhq-content,
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content .social-icon a,
.mhq-team-wrapper-3 .mhq-team-content .array-button .array-prev,
.mhq-team-wrapper-3 .mhq-team-content .array-button .array-next:hover,
.team-box-items-4 .team-image .social-profile ul li a,
.team-box-items-4.style-2 .team-image .social-profile ul li a,
.team-box-items-4.style-2 .team-image .social-profile .plus-btn,
.mhq-testimonial-box-2,
.mhq-faq-wrapper-3 .faq-content .accordion-item .accordion-header .accordion-button:not(.collapsed)::after,
.mhq-faq-wrapper-3 .faq-content .accordion-item .accordion-header .accordion-button.collapsed,
.mhq-faq-wrapper-3 .faq-content .accordion-item .accordion-collapse .accordion-body,
.faq-search-item input,
.mhq-cta-class-wrapper .content .theme-btn,
.mhq-cta-new-wrapper form input,
.mhq-project-wrapper-2 .mhq-project-image .mhq-project-content-items .circle-shape,
.mhq-news-grid-wrapper .main-sideber .single-sideber-widget .mhq-search-widget form input,
.mhq-news-grid-wrapper .main-sideber .single-sideber-widget .category-list li,
.mhq-news-grid-wrapper .main-sideber .single-sideber-widget .tagcloud a,
.mhq-news-details-wrapper .main-sideber .single-sideber-widget .mhq-search-widget form input,
.mhq-news-details-wrapper .main-sideber .single-sideber-widget .category-list li,
.mhq-news-details-wrapper .main-sideber .single-sideber-widget .tagcloud a,
.contact-wrapper .mhq-contact-items .contact-form-box .form-clt input,
.contact-wrapper .mhq-contact-items .contact-form-box .form-clt textarea,
.mhq-footer-wrapper .mhq-footer-widget-items .mhq-footer-content .footer-input input,
.mhq-footer-wrapper .mhq-footer-widget-items .mhq-footer-content .footer-input .theme-btn::before,
.form-clt input,
.mhq-divider span,
.blog-filter-bar .filter-chip,
.blog-filter-bar .blog-search input,
.mhq-choose-us-wrapper-2 .mhq-icon-box-items-area .mhq-box-items .mhq-box,
.mhq-choose-us-style-22 .mhq-box-items .mhq-box,
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content,
.course-details-card,
.info-card-soft,
.check-icon::after,
.icon-fix {
  background-color: var(--card) !important;
}

/* card containers get a hairline lime-tinted border for definition on the black page */
.mhq-programs-box-items-2,
.mhq-choose-us-wrapper-2 .mhq-icon-box-items-area .mhq-box-items .mhq-box,
.mhq-choose-us-style-22 .mhq-box-items .mhq-box,
.mhq-courses-box-items,
.mhq-category-box-items-3,
.mhq-event-box-items-2,
.mhq-news-box-items.style-2,
.news-post-items li,
.mhq-testimonial-box-items,
.mhq-testimonial-box-2,
.course-details-card,
.info-card-soft,
.mhq-team-box-items .mhq-image .mhq-content,
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content,
.mhq-pricing-box-items-3,
.mhq-news-grid-wrapper .main-sideber .single-sideber-widget,
.mhq-news-details-wrapper .main-sideber .single-sideber-widget,
.contact-wrapper .mhq-contact-items .contact-form-box,
.mhq-team-details-wrapper .contact-content .contact-form-box,
.news-left-items {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

/* form inputs need slightly stronger surface + visible border */
.search-popup__form input[type=text],
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items .mhq-search-widget form input,
.faq-search-item input,
.mhq-cta-new-wrapper form input,
.mhq-news-grid-wrapper .main-sideber .single-sideber-widget .mhq-search-widget form input,
.mhq-news-details-wrapper .main-sideber .single-sideber-widget .mhq-search-widget form input,
.contact-wrapper .mhq-contact-items .contact-form-box .form-clt input,
.contact-wrapper .mhq-contact-items .contact-form-box .form-clt textarea,
.mhq-team-details-wrapper .contact-content .contact-form-box .form-clt input,
.mhq-team-details-wrapper .contact-content .contact-form-box .form-clt textarea,
.mhq-footer-wrapper .mhq-footer-widget-items .mhq-footer-content .footer-input input,
.form-clt input,
.blog-filter-bar .blog-search input,
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt input,
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt textarea {
  background-color: var(--card-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
}
.search-popup__form input[type=text]::placeholder,
.mhq-cta-new-wrapper form input::placeholder,
.form-clt input::placeholder,
.blog-filter-bar .blog-search input::placeholder,
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt input::placeholder,
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt textarea::placeholder {
  color: var(--faint) !important;
}

/* ==========================================================================
   05. Text color fixes (former var(--header)/var(--text)/hex dark text)
   ========================================================================== */
.mhq-testimonial-box-items h4,
.mhq-footer-wrapper .mhq-footer-widget-items .list-items li a,
.mhq-footer-wrapper .mhq-footer-widget-items .contact-info li,
.mhq-footer-wrapper .mhq-footer-widget-items .contact-info li a,
.mhq-footer-bottom .text-color,
.mhq-footer-bottom .text-color-2 {
  color: var(--ink) !important;
}
.mhq-footer-wrapper .mhq-footer-widget-items .list-items li a::before {
  background-color: var(--ink) !important;
}
.mhq-courses-box-items .mhq-courses-content .star i:last-child,
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content .share-icon,
.section-title-area .nav .nav-item .nav-link,
.event-countdown__label,
.cursor-inner.cursor-hover {
  color: var(--muted) !important;
}
.cursor-inner.cursor-hover {
  border-color: var(--muted) !important;
}
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt input,
.mhq-news-details-wrapper .mhq-left-content .comment-form-wrap .form-clt textarea {
  color: var(--ink) !important;
}
.event-countdown__value {
  color: var(--ink) !important;
}
.event-countdown__card {
  background-color: var(--card) !important;
  border: 1px solid var(--line) !important;
}
.mhq-footer-section .mhq-footer-bg-1::before {
  background: var(--bg-deep-nj) !important;
}
.mhq-footer-wrapper.style-new-3 .mhq-footer-content p,
.mhq-footer-wrapper.style-new-3 .list-items li a {
  color: var(--muted) !important;
}
.mhq-footer-wrapper.style-new-3 .list-items li a::before {
  background-color: var(--muted) !important;
}
.mhq-footer-bottom p {
  color: var(--muted) !important;
}

/* pagination */
.page-nav-wrap ul li .page-numbers,
.gt-page-nav-wrap ul li .gt-page-numbers {
  background: transparent !important;
  color: var(--muted) !important;
}
.page-nav-wrap ul li.active .page-numbers,
.page-nav-wrap ul li .page-numbers.current {
  background-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* rating stars / old brand accent remnants -> lime accent */
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .courses-reviews-box-items .courses-reviews-box .reviews-box .star,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .courses-reviews-box-items .reviews-ratting-right .reviews-ratting-item .star,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .instructors-box-items .content .star,
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items .courses-list-box .star {
  color: var(--accent) !important;
}
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .courses-reviews-box-items .reviews-ratting-right .reviews-ratting-item .progress-value {
  background: var(--accent) !important;
}
.custom-page-content a {
  color: var(--accent) !important;
}
.custom-page-content a:hover {
  color: var(--accent-l) !important;
}

/* status badge (success) uses the fixed status color, not the accent */
.custom-page-hero .badge-success-soft {
  background: var(--success-bg) !important;
  color: var(--success) !important;
}

/* ==========================================================================
   06. Section / band backgrounds
   ========================================================================== */
.section-bg,
.footer-bg-2 {
  background-color: var(--bg-deep-nj) !important;
}
.section-bg-2 {
  background-color: var(--bg-deep-nj) !important;
}
.section-bg-3 {
  background: var(--bg-deep-nj) !important;
}
.footer-bg {
  background-color: var(--bg-deep-nj) !important;
}
.mhq-event-details-area .event-details-information,
.mhq-category-box-items .mhq-icon,
.header-2 .category-oneadjust,
.header-3 .category-oneadjust,
.mhq-choose-us-wrapper-2 .mhq-icon-box-items-area .mhq-box-items .mhq-box .icon,
.mhq-courses-details-area .mhq-courses-details-wrapper .mhq-left-content .list-date li h6,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .instructors-items .instructors-box-items,
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items,
.section-title-area .mhq-testimonial-author-items .mhq-testimonial-author .icon,
.mhq-testimonial-box-items,
.mhq-news-box-items.style-2,
.news-post-items li,
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content .share-icon,
.mhq-team-details-wrapper .contact-content .contact-form-box .form-clt input,
.mhq-team-details-wrapper .contact-content .contact-form-box .form-clt textarea,
.contact-wrapper .mhq-contact-items .contact-form-box {
  background-color: var(--card) !important;
}
.mhq-choose-us-style-22 .mhq-box-items .mhq-box.style-4 {
  background-color: var(--accent) !important;
}
.mhq-choose-us-style-22 .mhq-box-items .mhq-box.style-4,
.mhq-choose-us-style-22 .mhq-box-items .mhq-box.style-4 * {
  color: var(--accent-ink) !important;
}
.mhq-about-wrapper-2 .mhq-about-content .circle-progress-bar-wrapper .single-circle-bar .circle-bar .background {
  background-color: var(--card-2) !important;
}
.mhq-team-wrapper-3 .mhq-team-content {
  background: var(--bg-deep-nj) !important;
}
.mhq-team-wrapper-3 .mhq-team-image-items .team-img .team-content h3 a:hover {
  background-image: linear-gradient(180deg, var(--accent) 0%, var(--accent) 100%) !important;
}
.offcanvas__overlay,
.search-popup__overlay {
  background: rgba(0, 0, 0, .6) !important;
}

/* checkmark / success icon (decorative, keep the semantic green, just fine on dark bg) */
.check-icon {
  border-color: var(--success) !important;
}
.icon-line {
  background-color: var(--success) !important;
}
.success-checkmark {
  stroke: var(--success) !important;
}

/* ==========================================================================
   07. Footer
   ========================================================================== */
.mhq-footer-wrapper,
.mhq-footer-section {
  background-color: var(--bg-deep-nj) !important;
}
.mhq-footer-wrapper .mhq-footer-widget-items .payment-save label {
  color: var(--muted) !important;
}
.mhq-footer-wrapper.style-2 .mhq-footer-widget-items .list-items li a {
  color: var(--muted) !important;
}

.mhq-footer-wrapper .mhq-widget-head h3,
.mhq-contact-content ul li .content h5 {
  text-transform: none !important;
}

/* ==========================================================================
   08. Course cards / listing / details
   ========================================================================== */
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .nav .nav-item .nav-link,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .course-curriculum-items .courses-faq-items .accordion .accordion-item .accordion-body ul li span,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .instructors-items .instructors-box-items .content .social-icon a,
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .courses-reviews-items .courses-reviews-box-items .reviews-ratting-right .reviews-ratting-item .star i.color-2,
.mhq-courses-wrapper .courses-main-sidebar-area .courses-main-sidebar .courses-sidebar-items .mhq-search-widget form input,
.mhq-event-details-area .mhq-event-details-wrapper .details-content .location li a,
.mhq-event-details-area .event-details-information .information-list li span,
.contact-wrapper .mhq-contact-content ul li .content a {
  color: var(--muted) !important;
}
.mhq-courses-details-area .mhq-courses-details-wrapper .courses-details-content .instructors-items .instructors-box-items .content .social-icon a {
  border-color: var(--line) !important;
}

/* ==========================================================================
   09. Custom page hero / static content pages
   ========================================================================== */
.custom-page-hero {
  background-color: var(--bg-deep-nj) !important;
}

.breadcrumb-wrapper {
  background-color: var(--card) !important;
  background-image: url('../img/nelson/generated/inner-science-banner.jpg') !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breadcrumb-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 4, .44);
}

.breadcrumb-wrapper .page-heading {
  padding: 76px 0 !important;
}

/* ==========================================================================
   10. Background-image sections (hero / discount / newsletter / category)
   These sections use light stock photography (bg-cover + inline
   background-image). A dark gradient overlay is layered behind the
   content (z-index: -1, same stacking pattern main.css already uses for
   .mhq-discount-section) so text stays readable without touching the
   images themselves.
   ========================================================================== */
.mhq-hero-1.bg-cover {
  position: relative;
  z-index: 9;
}
.mhq-hero-1.bg-cover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(6, 7, 4, .88) 0%, rgba(6, 7, 4, .94) 100%);
  z-index: -1;
}

/* the banner already ships its own ::before fade — widen it to full coverage */
.mhq-discount-section::before {
  background: linear-gradient(90deg, rgba(6, 7, 4, .94) 0%, rgba(6, 7, 4, .82) 55%, rgba(6, 7, 4, .9) 100%) !important;
}

.mhq-cta-new-wrapper.bg-cover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(6, 7, 4, .85) 0%, rgba(6, 7, 4, .92) 100%);
  border-radius: inherit;
  z-index: -1;
}

.mhq-top-category-section.bg-cover {
  position: relative;
  z-index: 9;
}
.mhq-top-category-section.bg-cover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 7, 4, .55);
  z-index: -1;
}

/* ==========================================================================
   11. Bootstrap utility classes used directly in views (alert-info, bg-light)
   ========================================================================== */
.alert.alert-info {
  background-color: var(--card) !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
}
.mhq-courses-section.bg-light {
  background-color: var(--bg-deep-nj) !important;
}

/* ==========================================================================
   12. Auth pages (login / register) — the light card floating on the hero
   ========================================================================== */
.mhq-login-wrapper,
.mhq-register-wrapper {
  background: rgba(17, 19, 9, .96) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-nj) !important;
  border-radius: 8px !important;
  backdrop-filter: blur(4px) !important;
}

.mhq-login-header h2,
.mhq-register-header h2 {
  text-transform: none !important;
}
.mhq-login-header p,
.mhq-register-header p {
  color: var(--muted) !important;
}
.mhq-login-wrapper .text-primary,
.mhq-register-wrapper .text-primary {
  color: var(--accent) !important;
}
.mhq-login-wrapper .text-primary:hover,
.mhq-register-wrapper .text-primary:hover {
  color: var(--accent-l) !important;
}
.mhq-login-wrapper .form-check-label,
.mhq-register-wrapper .form-check-label {
  color: var(--muted) !important;
}
.mhq-login-wrapper .form-check-input,
.mhq-register-wrapper .form-check-input {
  background-color: var(--card-2) !important;
  border: 1px solid var(--line) !important;
}
.mhq-login-wrapper .form-check-input:checked,
.mhq-register-wrapper .form-check-input:checked {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}
.mhq-register-wrapper small.text-muted {
  color: var(--faint) !important;
}
.mhq-login-wrapper .invalid-feedback,
.mhq-register-wrapper .invalid-feedback {
  color: var(--danger) !important;
}

.nj-login-shell {
  min-height: calc(100vh - 149px);
  position: relative;
  isolation: isolate;
  padding: 0 !important;
  background-color: var(--bg-deep-nj) !important;
  background-image: url('../img/nelson/generated/inner-science-banner.jpg') !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nj-login-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 4, .76);
}

.nj-login-shell__row {
  min-height: calc(100vh - 149px);
  box-sizing: border-box;
  padding: 32px 0;
}

.nj-login-card-col {
  max-width: 540px;
}

.mhq-login-form .theme-btn {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.mhq-login-form .theme-btn i {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  line-height: 1 !important;
}

/* ==========================================================================
   13. Nelson LMS home and contrast corrections
   ========================================================================== */
.offcanvas__wrapper .offcanvas__content .offcanvas__close i,
.search-popup__form .search-btn {
  color: var(--accent-ink) !important;
}

.offcanvas__wrapper .offcanvas__content .offcanvas__close:focus-visible,
.search-popup__form .search-btn:focus-visible,
.theme-btn:focus-visible,
.nj-lms-secondary:focus-visible,
.nj-lms-shortcut:focus-visible,
.nj-lms-text-link:focus-visible {
  outline: 3px solid var(--accent-l);
  outline-offset: 3px;
}

.nj-lms-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg-deep-nj);
  background-image: url('../img/nelson/generated/hero-science-ai.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nj-lms-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 7, 4, .28);
}

.nj-lms-hero__inner {
  width: 100%;
  padding-block: 40px;
}

.nj-lms-hero__content {
  max-width: 680px;
}

.nj-lms-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nj-lms-hero h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink) !important;
  font-size: 48px;
  line-height: 1.06;
  text-transform: none;
  text-wrap: balance;
}

.nj-lms-hero p.nj-lms-hero__subtitle {
  max-width: 540px;
  margin: 18px 0 0;
  color: #d7dacd !important;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.nj-lms-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.nj-lms-hero__proof {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .24);
}

.nj-lms-hero__facts {
  flex: 1 1 390px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
}

.nj-lms-hero__facts > div {
  min-width: 120px;
  padding: 0 18px;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.nj-lms-hero__facts > div:first-child {
  padding-left: 0;
}

.nj-lms-hero__facts > div:last-child {
  border-right: 0;
}

.nj-lms-hero__facts dt {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.nj-lms-hero__facts dd {
  margin: 3px 0 0;
  color: #c8ccbe;
  font-size: 12px;
  text-transform: uppercase;
}

.nj-lms-mec {
  flex: 0 0 230px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.nj-lms-mec img {
  width: 64px;
  height: 64px;
  display: block;
  object-fit: contain;
}

.nj-lms-mec strong,
.nj-lms-mec span {
  display: block;
}

.nj-lms-mec strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
}

.nj-lms-mec span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nj-lms-actions .theme-btn,
.nj-lms-course-card .theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
}

.mhq-footer-wrapper .contact-info li a i {
  margin-right: 8px;
  color: var(--accent);
}

.nj-lms-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 6px;
  color: var(--ink) !important;
  font-weight: 700;
}

.nj-lms-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nj-lms-band,
.nj-lms-courses,
.nj-lms-program,
.nj-lms-tracks,
.nj-lms-lead,
.nj-lms-journal {
  padding: 72px 0;
  background: var(--bg-nj);
}

.nj-lms-courses,
.nj-lms-tracks,
.nj-lms-journal {
  background: var(--bg-deep-nj);
}

.nj-lms-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.nj-lms-section-head h2 {
  margin: 0;
  color: var(--ink) !important;
  font-size: 42px;
  line-height: 1.1;
}

.nj-lms-section-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted) !important;
  line-height: 1.6;
}

.nj-lms-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nj-lms-shortcut {
  min-height: 102px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.nj-lms-shortcut:hover {
  border-color: var(--line-2);
  background: var(--card-2);
}

.nj-lms-shortcut__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
}

.nj-lms-shortcut strong,
.nj-lms-shortcut small {
  display: block;
}

.nj-lms-shortcut strong {
  color: var(--ink);
  font-size: 16px;
}

.nj-lms-shortcut small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.nj-lms-shortcut > i {
  color: var(--faint);
}

.nj-lms-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent) !important;
  font-weight: 700;
}

.nj-lms-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nj-lms-course-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.nj-lms-course-grid--single .nj-lms-course-card {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.nj-lms-course-grid--single .nj-lms-course-card__media {
  aspect-ratio: auto;
  min-height: 360px;
}

.nj-lms-course-grid--single .nj-lms-course-card__body {
  align-self: center;
  padding: 38px;
}

.nj-lms-course-grid--single .nj-lms-course-card h3 {
  max-width: 680px;
  font-size: 31px;
}

.nj-lms-course-grid--single .nj-lms-course-card p {
  max-width: 650px;
}

.nj-lms-course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.nj-lms-course-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-nj);
}

.nj-lms-course-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nj-lms-course-card__body {
  padding: 22px;
}

.nj-lms-course-card__body > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nj-lms-course-card h3 {
  margin: 10px 0 0;
  font-size: 23px;
  line-height: 1.2;
}

.nj-lms-course-card h3 a {
  color: var(--ink) !important;
}

.nj-lms-course-card p {
  min-height: 50px;
  margin: 12px 0 0;
  color: var(--muted) !important;
  line-height: 1.55;
}

.nj-lms-course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.nj-lms-course-card__meta i {
  margin-right: 5px;
  color: var(--accent);
}

.nj-lms-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--muted);
}

.nj-lms-empty > i {
  color: var(--accent);
  font-size: 32px;
}

.nj-lms-empty h3,
.nj-lms-empty p {
  margin: 0;
}

.nj-lms-program {
  overflow: hidden;
}

.nj-lms-program__grid,
.nj-lms-lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  align-items: center;
  gap: 72px;
}

.nj-lms-program__content h2,
.nj-lms-lead__content h2,
.nj-lms-closing h2 {
  margin: 0;
  color: var(--ink) !important;
  font-size: 42px;
  line-height: 1.1;
}

.nj-lms-program__content > p,
.nj-lms-lead__content > p,
.nj-lms-closing p {
  margin: 22px 0 0;
  color: var(--muted) !important;
  font-size: 17px;
  line-height: 1.7;
}

.nj-lms-program__media,
.nj-lms-lead__media {
  margin: 0;
}

.nj-lms-program__media {
  min-height: 430px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-bottom: 1px solid var(--line-2);
}

.nj-lms-program__media img {
  width: 100%;
  max-height: 500px;
  display: block;
  object-fit: contain;
  object-position: center bottom;
}

.nj-lms-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 22px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.nj-lms-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  line-height: 1.45;
}

.nj-lms-checklist i {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
}

.nj-lms-track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nj-lms-track {
  min-height: 270px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--card);
}

.nj-lms-track:nth-child(2) {
  border-top-color: var(--teal-nj);
}

.nj-lms-track:nth-child(3) {
  border-top-color: var(--gold-nj);
}

.nj-lms-track:nth-child(4) {
  border-top-color: var(--coral-nj);
}

.nj-lms-track__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-weight: 800;
}

.nj-lms-track__top i {
  color: var(--accent);
  font-size: 26px;
}

.nj-lms-track:nth-child(2) .nj-lms-track__top i {
  color: var(--teal-nj);
}

.nj-lms-track:nth-child(3) .nj-lms-track__top i {
  color: var(--gold-nj);
}

.nj-lms-track:nth-child(4) .nj-lms-track__top i {
  color: var(--coral-nj);
}

.nj-lms-track h3 {
  margin: 52px 0 0;
  color: var(--ink) !important;
  font-size: 23px;
  line-height: 1.2;
}

.nj-lms-track p {
  margin: 14px 0 0;
  color: var(--muted) !important;
  line-height: 1.55;
}

.nj-lms-lead__grid {
  grid-template-columns: minmax(340px, .78fr) minmax(0, 1.22fr);
}

.nj-lms-lead__media {
  height: 580px;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f3f0;
}

.nj-lms-lead__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.nj-lms-lead__role {
  color: var(--accent) !important;
  font-weight: 700;
}

.nj-lms-credentials {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.nj-lms-credentials span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.nj-lms-credentials i {
  width: 36px;
  color: var(--accent);
  font-size: 19px;
  text-align: center;
}

.nj-lms-journal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.nj-lms-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.nj-lms-article__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-nj);
}

.nj-lms-article__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
}

.nj-lms-article:hover .nj-lms-article__media img {
  transform: scale(1.025);
}

.nj-lms-article__body {
  padding: 24px;
}

.nj-lms-article__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nj-lms-article__meta span {
  color: var(--accent);
  font-weight: 800;
}

.nj-lms-article h3 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.25;
}

.nj-lms-article h3 a {
  color: var(--ink) !important;
}

.nj-lms-article p {
  min-height: 76px;
  margin: 12px 0 18px;
  color: var(--muted) !important;
  line-height: 1.55;
}

.nj-lms-closing {
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.nj-lms-closing__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.nj-lms-closing__inner > div {
  max-width: 780px;
}

.nj-lms-closing .theme-btn {
  flex: 0 0 auto;
}

.nj-lms-empty h3 {
  color: var(--ink);
}

.nj-lms-empty p {
  margin-top: 6px;
  color: var(--muted) !important;
}

@media (max-width: 1199px) {
  #header-sticky .header-right .theme-btn {
    display: none !important;
  }

  .offcanvas__content > .theme-btn {
    width: 100% !important;
  }
}

@media (max-width: 991px) {
  .nj-lms-hero {
    min-height: 510px;
    background-position: 62% center;
  }

  .nj-lms-hero::before {
    background: rgba(6, 7, 4, .64);
  }

  .nj-lms-shortcuts,
  .nj-lms-track-grid,
  .nj-lms-journal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nj-lms-course-grid,
  .nj-lms-course-grid--single,
  .nj-lms-program__grid,
  .nj-lms-lead__grid {
    grid-template-columns: 1fr;
  }

  .nj-lms-course-grid--single .nj-lms-course-card {
    grid-template-columns: 1fr;
  }

  .nj-lms-course-grid--single .nj-lms-course-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .nj-lms-program__grid,
  .nj-lms-lead__grid {
    gap: 44px;
  }

  .nj-lms-lead__media {
    height: 520px;
  }

  .nj-lms-closing__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .nj-login-shell,
  .nj-login-shell__row {
    min-height: calc(100vh - 72px);
  }

  .nj-login-shell__row {
    padding: 32px 0;
  }

  .breadcrumb-wrapper {
    min-height: 230px;
  }

  .breadcrumb-wrapper .page-heading {
    padding: 58px 0 !important;
  }

  .nj-lms-hero {
    min-height: 540px;
    align-items: end;
    background-position: 68% center;
  }

  .nj-lms-hero__inner {
    padding-block: 28px;
  }

  .nj-lms-hero h1 {
    font-size: 34px;
  }

  .nj-lms-hero p.nj-lms-hero__subtitle {
    font-size: 17px;
  }

  .nj-lms-section-head h2 {
    font-size: 34px;
  }

  .nj-lms-actions,
  .nj-lms-actions .theme-btn,
  .nj-lms-secondary {
    width: 100%;
  }

  .nj-lms-actions .theme-btn {
    width: 100% !important;
  }

  .mhq-courses-box-items.nj-course-card--featured .theme-btn {
    width: 100% !important;
  }

  .nj-lms-band,
  .nj-lms-courses,
  .nj-lms-program,
  .nj-lms-tracks,
  .nj-lms-lead,
  .nj-lms-journal {
    padding: 52px 0;
  }

  .nj-lms-section-head {
    display: block;
  }

  .nj-lms-section-head > p,
  .nj-lms-text-link {
    margin-top: 14px;
  }

  .nj-lms-shortcut {
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    padding: 17px;
  }

  .nj-lms-hero__facts > div {
    min-width: 50%;
    margin-top: 14px;
    padding: 0 14px;
  }

  .nj-lms-hero__facts > div:nth-child(2) {
    border-right: 0;
  }

  .nj-lms-hero__facts > div:nth-child(3) {
    padding-left: 0;
  }

  .nj-lms-shortcuts,
  .nj-lms-track-grid,
  .nj-lms-journal__grid,
  .nj-lms-checklist {
    grid-template-columns: 1fr;
  }

  .nj-lms-program__content h2,
  .nj-lms-lead__content h2,
  .nj-lms-closing h2 {
    font-size: 34px;
  }

  .nj-lms-program__media {
    min-height: 330px;
  }

  .nj-lms-track {
    min-height: 235px;
  }

  .nj-lms-track h3 {
    margin-top: 34px;
  }

  .nj-lms-lead__media {
    height: 460px;
  }

  .nj-lms-course-grid--single .nj-lms-course-card__body {
    padding: 24px;
  }

  .nj-lms-course-grid--single .nj-lms-course-card h3 {
    font-size: 25px;
  }

  .nj-lms-article p {
    min-height: 0;
  }
}
/* The supplied Nelson mark is white; keep it visible on every dark surface. */
.offcanvas__logo img,
.header-logo img,
.header-logo2 img,
.footer-logo img {
  filter: none !important;
}

.login-logo img {
  filter: brightness(0);
}

.offcanvas__logo img,
.footer-logo img {
  width: 168px !important;
  max-width: 168px !important;
  height: auto !important;
}

.language-switcher,
.mobile-language-switcher {
  display: none !important;
}

/* Preserve editorial sentence case from the Nelson content. */
.breadcrumb-wrapper h1,
.breadcrumb-wrapper .breadcrumb-items li,
.breadcrumb-wrapper .breadcrumb-items a,
.mhq-news-box-items h3,
.mhq-news-box-items h4,
.recent-content h5,
.post-content h1,
.post-content h2,
.post-content h3 {
  text-transform: none !important;
}

.breadcrumb-wrapper .page-heading h1 {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
  font-size: 56px;
  line-height: 1.08;
}

@media (max-width: 991px) {
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 42px;
  }
}

@media (max-width: 575px) {
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 32px;
  }
}

[id^="nj-"] {
  scroll-margin-top: 118px;
}

/* Course media uses a stable editorial crop instead of the template's free height. */
.mhq-courses-box-items .mhq-courses-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-2);
}

.mhq-courses-box-items .mhq-courses-image > img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center top;
}

.mhq-news-box-items .mhq-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--card-2);
}

.mhq-news-box-items .mhq-image > img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center;
}

.mhq-courses-box-items.nj-course-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  min-height: 430px;
}

.mhq-courses-box-items.nj-course-card--featured .mhq-courses-image {
  min-height: 430px;
  aspect-ratio: auto;
}

.mhq-courses-box-items.nj-course-card--featured .mhq-courses-content {
  align-self: center;
  padding: 40px;
}

.mhq-courses-box-items.nj-course-card--featured .mhq-courses-content h3 {
  font-size: 32px;
  line-height: 1.15;
  text-transform: none;
}

.mhq-courses-box-items.nj-course-card--featured .client-info-area h2 {
  max-width: 210px;
  color: var(--muted) !important;
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.mhq-courses-box-items.nj-course-card--featured .theme-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .mhq-courses-box-items.nj-course-card--featured {
    grid-template-columns: 1fr;
  }

  .mhq-courses-box-items.nj-course-card--featured .mhq-courses-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  #header-sticky .header-main .logo {
    width: 128px;
    flex-basis: 128px;
  }

  #header-sticky .header-main .logo img,
  .offcanvas__logo img {
    width: 128px !important;
    max-width: 128px !important;
  }

  .nj-lms-hero__proof {
    align-items: flex-start;
    gap: 20px;
  }

  .nj-lms-mec {
    flex-basis: 100%;
  }

  .mhq-courses-box-items.nj-course-card--featured {
    min-height: 0;
  }

  .mhq-courses-box-items.nj-course-card--featured .mhq-courses-content {
    padding: 24px;
  }

  .mhq-courses-box-items.nj-course-card--featured .mhq-courses-content h3 {
    font-size: 25px;
  }
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 9999;
  margin: 0 auto;
  max-width: 760px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11130e;
  box-shadow: var(--shadow-nj);
}

.cookie-consent > div,
.cookie-consent > div > div {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0;
  background: transparent;
}

.cookie-consent > div > div > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  background: transparent;
}

.cookie-consent__message {
  margin: 0;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-consent__agree {
  min-height: 40px;
  padding: 9px 16px !important;
  border: 0;
  border-radius: 6px !important;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 575px) {
  .cookie-consent > div > div > div {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ==========================================================================
   19. Responsive typography contract
   Keep headings short, balanced and readable without viewport-based scaling.
   ========================================================================== */
.nj-lms-hero h1,
.breadcrumb-wrapper .page-heading h1,
.nj-lms-section-head h2,
.nj-lms-program__content h2,
.nj-lms-lead__content h2,
.nj-lms-closing h2,
.mhq-login-header h2,
.mhq-register-header h2,
.mhq-courses-box-items .mhq-courses-content h3,
.mhq-news-box-items .mhq-content h3,
.post-content h1,
.post-content h2,
.post-content h3 {
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.nj-lms-hero h1 {
  max-width: 22ch;
}

.breadcrumb-wrapper .page-heading h1 {
  max-width: 24ch;
}

.nj-lms-section-head h2,
.nj-lms-program__content h2,
.nj-lms-lead__content h2,
.nj-lms-closing h2 {
  max-width: 22ch;
}

.mhq-login-header h2,
.mhq-register-header h2 {
  max-width: 18ch;
  margin-right: auto;
  margin-left: auto;
  font-size: 32px;
  line-height: 1.15;
}

.mhq-courses-box-items .mhq-courses-content h3,
.mhq-news-box-items .mhq-content h3 {
  max-width: 28ch;
  line-height: 1.22;
}

.post-content h1 { max-width: 24ch; }
.post-content h2 { max-width: 28ch; }
.post-content h3 { max-width: 34ch; }

.nj-lms-hero__subtitle,
.nj-lms-section-head > p,
.nj-lms-program__content > p,
.nj-lms-lead__content > p,
.nj-lms-closing p,
.mhq-login-header p,
.mhq-register-header p,
.post-content p {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

@media (max-width: 991px) {
  .nj-lms-hero h1 {
    font-size: 42px;
    line-height: 1.1;
  }

  .nj-lms-section-head h2,
  .nj-lms-program__content h2,
  .nj-lms-lead__content h2,
  .nj-lms-closing h2 {
    font-size: 36px;
    line-height: 1.12;
  }

  .mhq-courses-box-items.nj-course-card--featured .mhq-courses-content h3 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .nj-lms-hero h1,
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .nj-lms-section-head h2,
  .nj-lms-program__content h2,
  .nj-lms-lead__content h2,
  .nj-lms-closing h2 {
    max-width: 20ch;
    font-size: 30px;
    line-height: 1.15;
  }

  .mhq-login-header h2,
  .mhq-register-header h2 {
    font-size: 28px;
  }

  .mhq-courses-box-items .mhq-courses-content h3,
  .mhq-news-box-items .mhq-content h3 {
    max-width: 24ch;
  }
}

@media (max-width: 575px) {
  .nj-lms-hero h1 {
    font-size: 32px;
  }

  .breadcrumb-wrapper .page-heading h1 {
    max-width: 20ch;
    font-size: 30px;
  }

  .nj-lms-section-head h2,
  .nj-lms-program__content h2,
  .nj-lms-lead__content h2,
  .nj-lms-closing h2 {
    font-size: 28px;
  }

  .mhq-courses-box-items.nj-course-card--featured .mhq-courses-content h3 {
    font-size: 23px;
  }
}
