/*
 * NobexSkill Home UI/UX H2 R1
 * Scope: public homepage only. Mobile-first, bilingual typography-aware.
 * Source authority: H1 fresh audit 2026-09-21T230904Z.
 */

:root {
  --nx-ink: #102d43;
  --nx-ink-2: #29485f;
  --nx-muted: #677b8b;
  --nx-primary: #0d607d;
  --nx-primary-strong: #084b63;
  --nx-primary-soft: #eaf5f8;
  --nx-accent: #12a77a;
  --nx-accent-soft: #e9f8f3;
  --nx-border: #e5edf2;
  --nx-surface: #ffffff;
  --nx-surface-soft: #f7fafc;
  --nx-surface-tint: #f2f8fa;
  --nx-shadow-sm: 0 10px 28px rgba(16, 45, 67, .07);
  --nx-shadow-md: 0 22px 58px rgba(16, 45, 67, .12);
  --nx-radius-sm: 14px;
  --nx-radius-md: 20px;
  --nx-radius-lg: 28px;
  --nx-shell: 1240px;
}

.nx-home,
.nx-home *,
.nx-home *::before,
.nx-home *::after {
  box-sizing: border-box;
}

html[lang^="en"] .nx-home,
html[lang^="en"] .nobex-premium-header,
html[lang^="en"] #footer {
  font-family: "Inter", "Poppins", Arial, sans-serif;
}

html[lang^="bn"] .nx-home,
html[lang^="bn"] .nobex-premium-header,
html[lang^="bn"] #footer {
  font-family: "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}

.nx-home {
  overflow: clip;
  background: var(--nx-surface);
  color: var(--nx-ink);
  line-height: 1.6;
}

.nx-home a { text-decoration: none; }
.nx-home img { display: block; max-width: 100%; }
.nx-home svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.nx-shell {
  width: min(var(--nx-shell), calc(100% - 32px));
  margin-inline: auto;
}

.nx-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.nx-section--compact {
  padding-top: clamp(54px, 6vw, 82px);
  padding-bottom: clamp(48px, 6vw, 82px);
}

.nx-section--tinted { background: var(--nx-surface-tint); }
.nx-section--soft { background: var(--nx-surface-soft); }

.nx-kicker,
.nx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--nx-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

html[lang^="bn"] .nx-kicker,
html[lang^="bn"] .nx-eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
}

.nx-eyebrow {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(13, 96, 125, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 8px 22px rgba(16, 45, 67, .05);
}

.nx-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-accent);
  box-shadow: 0 0 0 5px rgba(18, 167, 122, .11);
}

.nx-section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.nx-section-head--action {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nx-section-head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.nx-section-head h2,
.nx-why-copy h2,
.nx-cta h2 {
  margin: 8px 0 10px;
  color: var(--nx-ink);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}

html[lang^="bn"] .nx-section-head h2,
html[lang^="bn"] .nx-why-copy h2,
html[lang^="bn"] .nx-cta h2 {
  line-height: 1.24;
  letter-spacing: 0;
}

.nx-section-head p,
.nx-why-copy > p,
.nx-cta p {
  margin: 0;
  max-width: 660px;
  color: var(--nx-muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
}

.nx-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--nx-primary) !important;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.nx-text-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.nx-text-link:hover svg { transform: translateX(3px); }

/* Hero */
.nx-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(52px, 8vw, 112px) 0 clamp(58px, 8vw, 106px);
  background:
    radial-gradient(circle at 85% 18%, rgba(18, 167, 122, .13), transparent 27%),
    radial-gradient(circle at 16% 8%, rgba(13, 96, 125, .12), transparent 34%),
    linear-gradient(180deg, #f9fcfd 0%, #ffffff 100%);
}

.nx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image: radial-gradient(rgba(13, 96, 125, .17) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.nx-hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.nx-hero__content { min-width: 0; }

.nx-hero__title {
  margin: 18px 0 18px;
  max-width: 780px;
  color: var(--nx-ink);
  font-size: clamp(40px, 9vw, 68px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 800;
}

.nx-hero__title span,
.nx-hero__title strong { display: block; }
.nx-hero__title strong { color: var(--nx-primary); font-weight: 800; }

html[lang^="bn"] .nx-hero__title {
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.nx-hero__text {
  max-width: 680px;
  margin: 0;
  color: var(--nx-muted);
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.78;
}

.nx-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 690px;
  margin-top: 28px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--nx-shadow-sm);
}

.nx-search > svg { width: 20px; height: 20px; color: #7890a2; }

.nx-search input {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nx-ink);
  font: inherit;
  font-size: 15px;
}

.nx-search input::placeholder { color: #90a0ad; }

.nx-search button {
  grid-column: 1 / -1;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--nx-primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.nx-search button:hover { background: var(--nx-primary-strong); }

.nx-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.nx-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nx-button:hover { transform: translateY(-1px); }
.nx-button svg { width: 17px; height: 17px; }
.nx-button--primary { background: var(--nx-primary); color: #fff !important; box-shadow: 0 12px 28px rgba(13, 96, 125, .2); }
.nx-button--primary:hover { background: var(--nx-primary-strong); }
.nx-button--ghost { border-color: #dbe6ec; background: rgba(255,255,255,.8); color: var(--nx-ink) !important; }
.nx-button--light { margin-top: 26px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff !important; }
.nx-button--white { background: #fff; color: var(--nx-primary-strong) !important; box-shadow: 0 14px 32px rgba(3, 31, 44, .18); }

.nx-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-top: 24px;
}

.nx-trust-row span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #566f82;
  font-size: 12px;
  font-weight: 650;
}

.nx-trust-row i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border-radius: 50%;
  background: var(--nx-accent-soft);
  color: var(--nx-accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.nx-hero__visual {
  position: relative;
  width: min(100%, 560px);
  margin-inline: auto;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.nx-learning-card {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgba(16,45,67,.09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16,45,67,.17);
  transform: rotate(-1.5deg);
}

.nx-learning-card__media {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: linear-gradient(135deg, #dceef4, #eef8f6);
}

.nx-learning-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nx-learning-card__media--fallback { display: grid; place-items: center; }
.nx-learning-card__fallback-mark { font-size: 78px; font-weight: 800; color: rgba(13,96,125,.22); }
.nx-learning-card__badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(16,45,67,.88); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nx-learning-card__body { padding: 18px; }
.nx-learning-card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #6f8290; font-size: 11px; font-weight: 650; }
.nx-learning-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.nx-learning-card__meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-accent); }
.nx-learning-card h2 { margin: 11px 0 16px; color: var(--nx-ink); font-size: clamp(18px, 4vw, 23px); line-height: 1.3; font-weight: 800; }
.nx-progress { height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f5; }
.nx-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nx-primary), var(--nx-accent)); }
.nx-learning-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: #718391; font-size: 11px; }
.nx-learning-card__footer strong { color: var(--nx-primary); }

.nx-float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid rgba(16,45,67,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 44px rgba(16,45,67,.14);
  backdrop-filter: blur(10px);
}

.nx-float-card small,
.nx-float-card strong { display: block; }
.nx-float-card small { color: #7c8d99; font-size: 10px; }
.nx-float-card strong { color: var(--nx-ink); font-size: 12px; }
.nx-float-card--live { top: 30px; right: -2px; }
.nx-float-card--language { left: 0; bottom: 22px; }
.nx-float-card--language > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--nx-primary-soft); color: var(--nx-primary); font-family: "Hind Siliguri", sans-serif; font-size: 18px; font-weight: 700; }
.nx-live-dot { width: 10px; height: 10px; border-radius: 50%; background: #eb4d5c; box-shadow: 0 0 0 6px rgba(235,77,92,.1); }
.nx-orbit { position: absolute; z-index: 0; border: 1px solid rgba(13,96,125,.12); border-radius: 50%; }
.nx-orbit--one { width: 380px; height: 380px; }
.nx-orbit--two { width: 490px; height: 490px; border-style: dashed; opacity: .6; }

/* Categories */
.nx-category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nx-category-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--nx-border);
  border-radius: 16px;
  background: #fff;
  color: var(--nx-ink) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nx-category-card:hover { transform: translateY(-3px); border-color: rgba(13,96,125,.24); box-shadow: var(--nx-shadow-sm); }
.nx-category-card__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--nx-primary-soft); color: var(--nx-primary); font-size: 17px; font-weight: 800; }
.nx-category-card__copy { min-width: 0; }
.nx-category-card__copy strong { display: block; overflow: hidden; color: var(--nx-ink); font-size: 13px; font-weight: 750; line-height: 1.35; text-overflow: ellipsis; }
.nx-category-card__copy small { display: block; margin-top: 3px; color: #8a9aa7; font-size: 10px; }
.nx-category-card > svg { display: none; width: 17px; height: 17px; color: var(--nx-primary); }

/* Course cards */
.nx-course-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(278px, 86vw);
  gap: 16px;
  margin-inline: -16px;
  padding-inline: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}
.nx-course-grid::-webkit-scrollbar { display: none; }
.nx-course-card { min-width: 0; overflow: hidden; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-md); background: #fff; box-shadow: 0 7px 20px rgba(16,45,67,.045); scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.nx-course-card:hover { transform: translateY(-4px); border-color: rgba(13,96,125,.2); box-shadow: var(--nx-shadow-md); }
.nx-course-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #edf4f6; }
.nx-course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nx-course-card:hover .nx-course-card__media img { transform: scale(1.025); }
.nx-course-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #e6f2f6, #eff8f4); color: rgba(13,96,125,.34); font-size: 58px; font-weight: 800; }
.nx-course-card__badge { position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 9px; border-radius: 999px; background: rgba(16,45,67,.88); color: #fff; font-size: 10px; font-weight: 750; }
.nx-course-card__body { padding: 16px; display: flex; min-height: 210px; flex-direction: column; }
.nx-course-card__instructor { min-height: 20px; margin-bottom: 5px; overflow: hidden; color: #81909b; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nx-course-card h3 { min-height: 52px; margin: 0; font-size: 16px; line-height: 1.5; font-weight: 750; }
.nx-course-card h3 a { color: var(--nx-ink) !important; }
.nx-course-card__footer { min-height: 44px; display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf1f4; }
.nx-course-card__price { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.nx-course-card__price strong { color: var(--nx-primary); font-size: 17px; font-weight: 800; }
.nx-course-card__price del { color: #9aa7b1; font-size: 11px; }
.nx-course-card__details { display: inline-flex; min-height: 36px; align-items: center; justify-content: flex-end; gap: 6px; flex: 0 0 auto; color: var(--nx-primary) !important; font-size: 11px; font-weight: 750; white-space: nowrap; }
.nx-course-card__details svg { width: 15px; height: 15px; transition: transform .2s ease; }
.nx-course-card__details:hover svg { transform: translateX(2px); }
.nx-course-card__actions { margin-top: auto; padding-top: 12px; }
.nx-course-card__form { width: 100%; margin: 0; }
.nx-course-card__cta { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 9px 13px; font: inherit; font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.nx-course-card__cta:hover { transform: translateY(-1px); }
.nx-course-card__cta--primary { background: var(--nx-primary); color: #fff !important; box-shadow: 0 8px 20px rgba(13,96,125,.14); }
.nx-course-card__cta--primary:hover { background: #0a536d; color: #fff !important; }
.nx-course-card__cta--secondary { border-color: rgba(13,96,125,.16); background: var(--nx-primary-soft); color: var(--nx-primary) !important; }
.nx-course-card__cta--secondary:hover { border-color: rgba(13,96,125,.28); background: #e5f2f6; color: var(--nx-primary) !important; }

/* Learning modes */
.nx-mode-grid { display: grid; gap: 14px; }
.nx-mode-card { min-width: 0; padding: 22px; border: 1px solid rgba(13,96,125,.09); border-radius: 18px; background: rgba(255,255,255,.8); }
.nx-mode-card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 18px; }
.nx-mode-card__icon svg { width: 23px; height: 23px; }
.nx-mode-card__icon--play { background: #eaf5f8; color: #0d607d; }
.nx-mode-card__icon--live { background: #fff0f1; color: #d84858; }
.nx-mode-card__icon--progress { background: #eaf8f3; color: #10956d; }
.nx-mode-card h3 { margin: 0 0 7px; color: var(--nx-ink); font-size: 18px; font-weight: 780; }
.nx-mode-card p { margin: 0; color: var(--nx-muted); font-size: 14px; line-height: 1.75; }

/* Why */
.nx-section--why { background: #102d43; }
.nx-why-grid { display: grid; gap: 38px; }
.nx-why-copy .nx-kicker { color: #76d6bc; }
.nx-why-copy h2 { color: #fff; }
.nx-why-copy > p { color: #b9cad5; }
.nx-why-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.08); }
.nx-why-item { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 20px; background: rgba(12,39,57,.86); }
.nx-why-item > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(118,214,188,.1); color: #76d6bc; font-size: 11px; font-weight: 800; }
.nx-why-item h3 { margin: 0 0 4px; color: #fff; font-size: 17px; font-weight: 750; }
.nx-why-item p { margin: 0; color: #adc0cc; font-size: 13px; line-height: 1.7; }

/* Instructors */
.nx-instructor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nx-instructor-card { min-width: 0; overflow: hidden; border: 1px solid var(--nx-border); border-radius: 18px; background: #fff; color: var(--nx-ink) !important; transition: transform .2s ease, box-shadow .2s ease; }
.nx-instructor-card:hover { transform: translateY(-3px); box-shadow: var(--nx-shadow-sm); }
.nx-instructor-card__media { aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #e5f2f6, #f0f8f5); }
.nx-instructor-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nx-instructor-card__media > span { color: rgba(13,96,125,.35); font-size: 56px; font-weight: 800; }
.nx-instructor-card__body { padding: 14px; }
.nx-instructor-card__role { display: block; margin-bottom: 4px; color: var(--nx-primary); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.nx-instructor-card h3 { min-width: 0; margin: 0; overflow: hidden; color: var(--nx-ink); font-size: 14px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.nx-instructor-card__body > div { display: flex; align-items: center; gap: 5px; margin-top: 8px; color: #7c8d9a; font-size: 10px; font-weight: 650; }
.nx-instructor-card__body svg { width: 13px; height: 13px; }

/* Blog */
.nx-blog-grid { display: grid; gap: 16px; }
.nx-blog-card { overflow: hidden; border: 1px solid var(--nx-border); border-radius: 18px; background: #fff; }
.nx-blog-card__media { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg,#e7f2f6,#eef8f4); }
.nx-blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nx-blog-card__media > span { color: rgba(13,96,125,.3); font-size: 52px; font-weight: 800; }
.nx-blog-card__body { padding: 18px; }
.nx-blog-card time { color: #8a9aa6; font-size: 11px; font-weight: 650; }
.nx-blog-card h3 { margin: 8px 0 14px; font-size: 17px; line-height: 1.45; font-weight: 760; }
.nx-blog-card h3 a { color: var(--nx-ink) !important; }

/* CTA */
.nx-section--cta { padding-top: 0; }
.nx-cta { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 6vw, 56px); border-radius: 24px; background: linear-gradient(125deg, #0d607d 0%, #102d43 58%, #0c8f72 130%); box-shadow: 0 24px 70px rgba(16,45,67,.18); }
.nx-kicker--light { color: #91e1cb; }
.nx-cta h2 { max-width: 760px; color: #fff; font-size: clamp(28px, 5vw, 44px); }
.nx-cta p { color: #c5d6df; }
.nx-cta > .nx-button { width: 100%; }

/* Trusted */
.nx-section--trusted { padding-top: 18px; padding-bottom: clamp(54px,7vw,82px); }
.nx-trusted-title { margin: 0 0 22px; text-align: center; color: #8b9aa6; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nx-trusted-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nx-trusted-grid a { min-height: 74px; display: grid; place-items: center; padding: 14px; border: 1px solid #edf1f4; border-radius: 14px; background: #fff; }
.nx-trusted-grid img { max-width: 120px; max-height: 38px; object-fit: contain; filter: grayscale(1); opacity: .65; }
.nx-trusted-grid span { color: #a4b0b8; font-weight: 800; }
.nx-home-end { height: 1px; }

/* Existing footer visual integration on homepage only */
.nx-home + #footer,
body:has(.nx-home) #footer { border-top: 1px solid #edf1f4; }
body:has(.nx-home) #footer .newsletter-main-block { background: #f6fafb; }
body:has(.nx-home) #footer .newsletter-heading { color: var(--nx-ink); font-weight: 800; letter-spacing: -.02em; }

/* >= 480 */
@media (min-width: 480px) {
  .nx-shell { width: min(var(--nx-shell), calc(100% - 40px)); }
  .nx-search { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .nx-search button { grid-column: auto; min-width: 108px; }
  .nx-hero__actions { flex-direction: row; flex-wrap: wrap; }
  .nx-hero__actions .nx-button { width: auto; }
  .nx-trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
  .nx-category-card { grid-template-columns: 44px minmax(0,1fr) 18px; }
  .nx-category-card > svg { display: block; }
  .nx-cta > .nx-button { width: fit-content; }
  .nx-trusted-grid { grid-template-columns: repeat(4, 1fr); }
}

/* >= 768 */
@media (min-width: 768px) {
  .nx-shell { width: min(var(--nx-shell), calc(100% - 56px)); }
  .nx-section-head--action { flex-direction: row; align-items: end; justify-content: space-between; }
  .nx-category-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .nx-course-grid { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0,1fr)); margin-inline: 0; padding-inline: 0; overflow: visible; }
  .nx-mode-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  .nx-instructor-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
  .nx-blog-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .nx-cta { grid-template-columns: minmax(0,1fr) auto; }
  .nx-trusted-grid { grid-template-columns: repeat(8, minmax(0,1fr)); }
}

/* >= 992 */
@media (min-width: 992px) {
  .nx-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 58px; }
  .nx-hero__visual { min-height: 520px; }
  .nx-learning-card { width: 450px; }
  .nx-float-card--live { top: 48px; right: -8px; }
  .nx-float-card--language { left: -4px; bottom: 42px; }
  .nx-category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-why-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: 70px; }
}

/* >= 1180 */
@media (min-width: 1180px) {
  .nx-course-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
  .nx-category-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .nx-category-card { min-height: 104px; }
  .nx-mode-card { padding: 28px; }
  .nx-instructor-card__body { padding: 17px; }
  .nx-instructor-card h3 { font-size: 16px; }
}

/* 320px hardening */
@media (max-width: 359px) {
  .nx-shell { width: calc(100% - 24px); }
  .nx-hero { padding-top: 42px; }
  .nx-hero__title { font-size: 36px; }
  html[lang^="bn"] .nx-hero__title { font-size: 34px; }
  .nx-category-grid { grid-template-columns: 1fr; }
  .nx-category-card { min-height: 84px; }
  .nx-trust-row { grid-template-columns: 1fr; }
  .nx-hero__visual { min-height: 360px; }
  .nx-float-card--live { right: 0; top: 12px; }
  .nx-float-card--language { left: 0; bottom: 8px; }
  .nx-orbit--two { width: 370px; height: 370px; }
  .nx-orbit--one { width: 290px; height: 290px; }
  .nx-instructor-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-home *,
  .nx-home *::before,
  .nx-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
