:root {
  --primary: #0d3b8e;
  --primary-2: #123c88;
  --accent: #22b8cf;
  --ink: #132238;
  --muted: #667085;
  --soft: #f5f9ff;
  --border: #e7eef9;
  --footer: #081b3f;
  --shadow: 0 14px 35px rgba(13, 59, 142, .12);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; }
.flash-alert { position: fixed; top: 92px; right: 24px; z-index: 2000; max-width: 420px; box-shadow: var(--shadow); }

.topbar { background: var(--primary); color: #fff; font-size: 14px; padding: 8px 0; }
.topbar a { color: #fff; margin-right: 16px; }
.topbar-actions a:last-child, .topbar-social a:last-child { margin-right: 0; }
.main-navbar { background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.06); backdrop-filter: blur(12px); }
.navbar-brand img { width: 46px; height: 46px; object-fit: contain; }
.navbar-brand span { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: 0; }
.nav-link { font-weight: 650; color: var(--ink); }
.nav-link.active, .nav-link:hover { color: var(--primary); }
.btn-primary-soft, .btn-primary-pill, .btn-light-pill, .btn-outline-light-pill { border-radius: 999px; padding: 11px 24px; font-weight: 700; border: 1px solid transparent; }
.btn-primary-soft, .btn-primary-pill { background: var(--primary); color: #fff; }
.btn-primary-soft:hover, .btn-primary-pill:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); }
.btn-light-pill { background: #fff; color: var(--primary); }
.btn-outline-light-pill { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light-pill:hover { background: #fff; color: var(--primary); }

.hero-section { position: relative; min-height: 720px; display: flex; align-items: center; color: #fff; background: url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=85') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,20,48,.86), rgba(13,59,142,.52)); }
.hero-content { position: relative; padding-top: 60px; }
.hero-content h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; line-height: 1; margin: 14px 0 22px; letter-spacing: 0; }
.hero-content p { max-width: 760px; font-size: 1.25rem; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.section-pad { padding: 95px 0; }
.bg-soft { background: var(--soft); }
.section-label { display: inline-block; color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 0; margin-bottom: 10px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.section-heading h2, .section-title, .register-band h2, .newsletter-box h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 850; color: var(--ink); letter-spacing: 0; }

.quick-news { margin-top: -58px; position: relative; z-index: 2; }
.quick-card { min-height: 116px; background: #fff; border-radius: 8px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.quick-card i { color: var(--accent); font-size: 24px; margin-bottom: 12px; }
.quick-card span { display: block; color: var(--muted); font-size: 13px; }
.quick-card strong { display: block; color: var(--ink); line-height: 1.35; }
.about-image { width: 100%; height: 470px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.check-grid span, .value-list span, .skill-cloud span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-weight: 650; }
.check-grid i { color: var(--accent); margin-right: 8px; }
.value-list, .skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }

.icon-card, .service-card, .media-card, .team-card, .blog-card, .panel-card, .form-card, .auth-card, .stat-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); }
.icon-card, .service-card { height: 100%; padding: 30px; transition: .25s ease; }
.icon-card:hover, .service-card:hover, .media-card:hover, .team-card:hover { transform: translateY(-7px); }
.icon-card i, .service-card i { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(34,184,207,.12); color: var(--primary); font-size: 24px; margin-bottom: 20px; }
.icon-card h3, .service-card h3, .media-card h3, .team-card h3, .blog-card h3 { font-size: 1.25rem; font-weight: 800; }
.service-card a, .media-card a, .blog-card a { font-weight: 800; }
.media-card { overflow: hidden; height: 100%; transition: .25s ease; }
.media-card img, .blog-card img { width: 100%; height: 230px; object-fit: cover; }
.media-card-body, .blog-body { padding: 24px; }
.badge-soft { display: inline-block; background: rgba(34,184,207,.12); color: var(--primary); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; margin-bottom: 10px; }

.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.gallery-filter { border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; font-weight: 750; }
.gallery-filter.active, .gallery-filter:hover { background: var(--primary); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; margin: 0; height: 230px; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 18px 18px; color: #fff; font-weight: 850; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.gallery-item:hover img { transform: scale(1.08); }

.team-card { padding: 24px; text-align: center; transition: .25s ease; height: 100%; }
.team-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin: 0 auto 18px; border: 6px solid var(--soft); }
.team-card span { color: var(--accent); font-weight: 800; }
.team-card a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--soft); margin: 4px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.register-band { background: var(--soft); border-radius: 8px; padding: 40px; border: 1px solid var(--border); }
.quick-register { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.quick-register input, .newsletter-box input, .footer-newsletter input { border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; }
.newsletter-section { padding: 80px 0; background: var(--primary); color: #fff; }
.newsletter-box { text-align: center; }
.newsletter-box h2 { color: #fff; }
.newsletter-box form { display: flex; max-width: 650px; margin: 24px auto 0; background: #fff; border-radius: 999px; padding: 7px; }
.newsletter-box input { flex: 1; border: 0; }
.newsletter-box button, .footer-newsletter button { border: 0; border-radius: 999px; background: var(--accent); color: #05204a; font-weight: 850; padding: 11px 24px; }

.page-hero, .dashboard-hero { color: #fff; padding: 120px 0 80px; background: linear-gradient(rgba(5,20,48,.72), rgba(5,20,48,.72)), url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=85') center/cover; }
.page-hero.compact { padding: 80px 0 48px; }
.page-hero span { color: var(--accent); font-weight: 850; text-transform: uppercase; }
.page-hero h1, .dashboard-hero h1 { max-width: 820px; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 900; letter-spacing: 0; }
.auth-page { min-height: 78vh; display: grid; place-items: center; padding: 80px 20px; background: var(--soft); }
.auth-card, .form-card, .panel-card { padding: 30px; }
.auth-card { width: min(460px, 100%); display: grid; gap: 14px; }
.auth-card h1, .panel-card h2 { font-size: 1.55rem; font-weight: 850; margin-bottom: 15px; }
.form-card label, .stack-form label { font-weight: 750; margin-bottom: 5px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.checkbox-grid label, .terms-line { background: var(--soft); border-radius: 8px; padding: 10px 12px; }
.dashboard-hero { background: linear-gradient(120deg, var(--primary), #071a3c); padding: 78px 0; }
.dashboard .panel-card { height: auto; }
.profile-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.stack-form { display: grid; gap: 12px; }
.mini-list { display: grid; gap: 10px; }
.mini-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--soft); }
.admin-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-menu a { border-radius: 999px; background: var(--primary); color: #fff; padding: 10px 16px; font-weight: 800; }
.stat-card { padding: 22px; }
.stat-card span { color: var(--muted); font-weight: 750; }
.stat-card strong { display: block; color: var(--primary); font-size: 2.2rem; line-height: 1.1; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.table-actions form { display: flex; gap: 8px; align-items: center; }

.membership-card {
  width: min(820px, 100%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #08204c, var(--primary));
  color: #fff;
  box-shadow: 0 28px 80px rgba(13,59,142,.26);
}
.membership-top, .membership-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 30px;
}
.membership-top img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 50%; padding: 6px; }
.membership-top span { display: block; color: rgba(255,255,255,.72); font-weight: 700; }
.membership-top strong { display: block; font-size: 1.6rem; line-height: 1.1; }
.membership-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  background: #fff;
  color: var(--ink);
  margin: 0 22px;
  border-radius: 14px;
  padding: 30px;
}
.membership-photo {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--soft);
  margin-bottom: 16px;
}
.membership-photo.placeholder { display: grid; place-items: center; background: var(--soft); color: var(--primary); font-size: 42px; }
.membership-body h2 { font-size: 2rem; font-weight: 900; margin-bottom: 6px; }
.membership-code { display: inline-block; background: var(--primary); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 850; }
.membership-qr { text-align: center; align-self: center; }
.membership-qr img, .certificate-qr img { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--border); }
.membership-qr small, .certificate-qr small { display: block; margin-top: 8px; color: var(--muted); font-weight: 700; }
.membership-bottom { font-weight: 850; color: rgba(255,255,255,.84); }

.badge-page {
  background: #86b2e7;
}
.id-card-stage {
  display: grid;
  grid-template-columns: repeat(2, 286px);
  justify-content: center;
  gap: 52px;
}
.nexus-id-card {
  position: relative;
  width: 286px;
  min-height: 486px;
  overflow: hidden;
  color: #fff;
  border-radius: 2px;
  padding: 32px 28px 24px;
  box-shadow: 0 22px 48px rgba(13, 20, 90, .26);
  background:
    radial-gradient(circle at 88% 78%, rgba(132, 41, 231, .9) 0 30px, transparent 31px),
    radial-gradient(circle at 86% 52%, rgba(33, 22, 129, .82) 0 55px, transparent 56px),
    linear-gradient(150deg, #25106e 0%, #0a0f62 58%, #02083f 100%);
}
.nexus-id-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, transparent 0 57%, rgba(37, 78, 219, .22) 58% 70%, transparent 71%),
    linear-gradient(28deg, transparent 0 68%, rgba(92, 19, 184, .28) 69% 84%, transparent 85%);
  pointer-events: none;
}
.nexus-id-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: 124px;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(28, 70, 255, .72);
  transform: rotate(30deg);
  pointer-events: none;
}
.id-pattern {
  position: absolute;
  inset: 0;
  opacity: .48;
  background-image: radial-gradient(circle, rgba(106, 88, 255, .75) 2px, transparent 2px);
  background-size: 17px 17px;
  mask-image: linear-gradient(180deg, #000 0, transparent 78%);
}
.id-plus {
  position: absolute;
  color: #123cff;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}
.plus-one { right: 24px; top: 132px; }
.plus-two { left: 20px; bottom: 24px; }
.plus-three { left: 20px; top: 262px; }
.plus-four { right: 28px; top: 48px; }
.id-photo-wrap {
  position: relative;
  z-index: 2;
  width: 176px;
  height: 190px;
  margin: 22px auto 22px;
  background: rgba(255,255,255,.94);
  padding: 7px;
  box-shadow: 8px 8px 0 rgba(6, 4, 61, .42);
  border: 2px solid rgba(70, 71, 255, .95);
  border-bottom-right-radius: 42px;
}
.id-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom-right-radius: 34px;
}
.id-photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f5f7ff;
  font-size: 54px;
}
.id-front-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.id-front-content h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.id-position {
  margin: 8px 0 22px;
  color: #ff2ea8;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 7px;
  text-transform: uppercase;
}
.id-small {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.3px;
  font-style: italic;
}
.id-barcode {
  width: 116px;
  height: 28px;
  margin: 9px auto 16px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px);
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
}
.id-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
  line-height: .95;
}
.id-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}
.id-logo-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: 4px 0 24px;
}
.id-qr-box {
  position: relative;
  z-index: 2;
  width: 162px;
  height: 162px;
  margin: 0 auto 18px;
  background: #fff;
  padding: 8px;
}
.id-qr-box img {
  width: 100%;
  height: 100%;
}
.id-dates {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 30px;
}
.id-dates p {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  font-style: italic;
}
.id-terms {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 200px;
  margin: 0 auto 30px;
}
.id-terms h3 {
  margin: 0 0 8px;
  color: #ff2ea8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}
.id-terms p {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
}
.id-social {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 8px;
  font-weight: 800;
}
.id-social i {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.certificate-sheet {
  width: min(1000px, 100%);
  margin: 0 auto;
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.certificate-frame {
  min-height: 680px;
  border: 4px solid var(--primary);
  border-radius: 8px;
  padding: 42px;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
    url('../images/logo_nexus.png') center/360px no-repeat;
}
.certificate-head { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 54px; }
.certificate-head img { width: 72px; height: 72px; object-fit: contain; }
.certificate-head span { display: block; color: var(--muted); font-weight: 800; }
.certificate-head strong { display: block; color: var(--primary); font-size: 1.8rem; font-weight: 900; }
.certificate-label { color: var(--muted); text-transform: uppercase; font-weight: 850; }
.certificate-frame h1 { color: var(--primary); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; margin: 8px 0 24px; }
.certificate-frame h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 850; margin: 18px 0; }
.certificate-text, .certificate-meta { color: var(--muted); font-size: 1.05rem; }
.certificate-footer { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 70px; text-align: left; }
.signature-line { border-bottom: 2px solid var(--primary); width: 260px; padding-bottom: 12px; font-family: Georgia, serif; font-size: 1.35rem; color: var(--primary); }
.certificate-footer small { display: block; color: var(--muted); word-break: break-all; max-width: 320px; }

@media print {
  .topbar, .main-navbar, .site-footer, .chatbot-toggle, .chatbot-window, .btn, .page-hero { display: none !important; }
  .section-pad { padding: 0; }
  .membership-card, .certificate-sheet { box-shadow: none; }
  .badge-page { background: #fff; }
  .id-card-stage { gap: 18px; grid-template-columns: repeat(2, 286px); }
  .nexus-id-card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}

.site-footer { background: var(--footer); color: rgba(255,255,255,.78); padding: 70px 0 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; object-fit: contain; }
.site-footer h5 { color: #fff; font-weight: 850; margin-bottom: 18px; }
.site-footer a { display: block; color: rgba(255,255,255,.78); margin-bottom: 9px; }
.footer-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; margin-right: 8px; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter input { flex: 1; min-width: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; text-align: center; }

.chatbot-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); font-size: 22px; }
.chatbot-window { position: fixed; right: 24px; bottom: 92px; width: min(360px, calc(100vw - 32px)); height: 480px; background: #fff; border-radius: 8px; box-shadow: 0 25px 70px rgba(0,0,0,.22); z-index: 1501; display: none; overflow: hidden; border: 1px solid var(--border); }
.chatbot-window.open { display: grid; grid-template-rows: auto 1fr auto; }
.chatbot-head { display: flex; align-items: center; justify-content: space-between; background: var(--primary); color: #fff; padding: 16px; }
.chatbot-head span { display: block; font-size: 12px; opacity: .8; }
.chatbot-close { background: transparent; color: #fff; border: 0; }
.chatbot-messages { padding: 16px; overflow-y: auto; background: var(--soft); }
.bot-message, .user-message { padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; max-width: 86%; }
.bot-message { background: #fff; border: 1px solid var(--border); }
.user-message { background: var(--primary); color: #fff; margin-left: auto; }
.chatbot-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chatbot-form input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 12px; }
.chatbot-form button { border: 0; border-radius: 50%; width: 42px; height: 42px; background: var(--accent); color: #05204a; }

@media (max-width: 991px) {
  .hero-section { min-height: 620px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-register { grid-template-columns: 1fr 1fr; }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .id-card-stage { grid-template-columns: repeat(2, 286px); gap: 28px; }
}

@media (max-width: 575px) {
  .section-pad { padding: 64px 0; }
  .hero-section { min-height: 560px; }
  .check-grid, .gallery-grid, .quick-register, .checkbox-grid { grid-template-columns: 1fr; }
  .newsletter-box form, .footer-newsletter { flex-direction: column; border-radius: 8px; background: transparent; }
  .newsletter-box input, .newsletter-box button, .footer-newsletter input, .footer-newsletter button { width: 100%; }
  .register-band { padding: 24px; }
  .about-image { height: 320px; }
  .membership-body, .certificate-footer { grid-template-columns: 1fr; display: grid; text-align: center; }
  .membership-qr { margin: 0 auto; }
  .certificate-frame { padding: 24px; }
  .id-card-stage { grid-template-columns: 1fr; justify-items: center; }
  .nexus-id-card { width: min(286px, 100%); }
}

/* NEXUS premium visual refresh: dark violet + deep blue, responsive from phone to TV. */
:root {
  --primary: #0a2f86;
  --primary-2: #061b4f;
  --violet: #24085f;
  --violet-2: #3b0d8f;
  --accent: #22d3ee;
  --accent-2: #f23bb6;
  --ink: #10172a;
  --muted: #667085;
  --soft: #f4f7ff;
  --border: rgba(19, 43, 103, .12);
  --footer: #050a24;
  --shadow: 0 18px 44px rgba(7, 19, 65, .12);
  --shadow-strong: 0 28px 80px rgba(5, 10, 36, .22);
  --surface: rgba(255, 255, 255, .94);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(244,247,255,.92), #fff 360px),
    #fff;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, .75);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 32px, 1220px);
}

.topbar {
  background: linear-gradient(90deg, var(--footer), var(--violet), var(--primary-2));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.main-navbar {
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(13, 47, 134, .08);
  box-shadow: 0 16px 48px rgba(5, 10, 36, .08);
}

.navbar-brand img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 8px 16px rgba(10, 47, 134, .22));
}

.navbar-brand span {
  color: var(--violet);
  font-weight: 950;
}

.nav-link {
  position: relative;
  color: #172145;
  padding-inline: 10px !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.btn-primary-soft,
.btn-primary-pill {
  background: linear-gradient(135deg, var(--violet), var(--primary));
  border: 0;
  box-shadow: 0 12px 28px rgba(10, 47, 134, .22);
}

.btn-primary-soft:hover,
.btn-primary-pill:hover {
  background: linear-gradient(135deg, var(--primary), var(--violet-2));
  box-shadow: 0 18px 40px rgba(36, 8, 95, .26);
}

.btn-light-pill {
  color: var(--violet);
  box-shadow: 0 14px 34px rgba(255,255,255,.2);
}

.btn-outline-light-pill {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.48);
  backdrop-filter: blur(10px);
}

.hero-section {
  min-height: clamp(680px, 86vh, 960px);
  isolation: isolate;
  background:
    linear-gradient(rgba(6, 11, 42, .38), rgba(6, 11, 42, .38)),
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2200&q=88') center/cover no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(5, 10, 36, .94) 0%, rgba(36, 8, 95, .82) 46%, rgba(10, 47, 134, .56) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 84px);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(34, 211, 238, .13) 58% 66%, transparent 66%),
    linear-gradient(25deg, transparent 0 70%, rgba(242, 59, 182, .13) 70% 82%, transparent 82%);
}

.hero-content {
  z-index: 2;
  max-width: 920px;
}

.hero-content .section-label {
  color: #fff;
  background: rgba(34, 211, 238, .13);
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 999px;
  padding: 9px 15px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: clamp(3.4rem, 7.8vw, 8.4rem);
  letter-spacing: 0;
  text-shadow: 0 22px 60px rgba(0,0,0,.34);
}

.hero-content p {
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  max-width: 820px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 30px;
  margin-bottom: 24px;
}

.hero-metrics div {
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 54px rgba(0,0,0,.16);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 950;
}

.hero-metrics span {
  color: rgba(255,255,255,.76);
  font-size: .86rem;
  font-weight: 750;
}

.section-pad {
  position: relative;
  padding: clamp(70px, 7vw, 124px) 0;
}

.bg-soft {
  background:
    linear-gradient(180deg, rgba(244,247,255,.98), rgba(239,243,255,.95));
}

.section-label {
  color: var(--violet-2);
  letter-spacing: .8px;
}

.section-heading h2,
.section-title,
.register-band h2,
.newsletter-box h2 {
  color: #0d1430;
  font-weight: 950;
}

.section-heading h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 4px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.quick-news {
  margin-top: 0;
  padding: 56px 0 24px;
  background: #fff;
}

.quick-news .container {
  position: relative;
}

.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(16px);
}

.quick-card::before,
.icon-card::before,
.service-card::before,
.panel-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--violet-2), var(--accent-2));
}

.quick-card i {
  color: var(--violet-2);
}

.about-image {
  height: clamp(340px, 38vw, 560px);
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: var(--shadow-strong);
}

.check-grid span,
.value-list span,
.skill-cloud span {
  background: rgba(255,255,255,.88);
  border-color: rgba(10,47,134,.12);
  box-shadow: 0 10px 26px rgba(10,47,134,.06);
}

.icon-card,
.service-card,
.media-card,
.team-card,
.blog-card,
.panel-card,
.form-card,
.auth-card,
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10,47,134,.11);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.icon-card:hover,
.service-card:hover,
.media-card:hover,
.team-card:hover,
.blog-card:hover,
.panel-card:hover {
  border-color: rgba(34,211,238,.32);
  box-shadow: var(--shadow-strong);
}

.icon-card i,
.service-card i {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--primary));
  box-shadow: 0 12px 30px rgba(36,8,95,.22);
}

.icon-card h3,
.service-card h3,
.media-card h3,
.team-card h3,
.blog-card h3 {
  color: #0c1635;
  font-weight: 900;
}

.media-card img,
.blog-card img {
  height: clamp(220px, 18vw, 300px);
}

.media-card-body,
.blog-body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), #fff);
}

.badge-soft {
  background: rgba(36,8,95,.08);
  color: var(--violet);
  border: 1px solid rgba(36,8,95,.12);
}

.gallery-filter {
  box-shadow: 0 8px 20px rgba(10,47,134,.07);
}

.gallery-filter.active,
.gallery-filter:hover {
  background: linear-gradient(135deg, var(--violet), var(--primary));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 24px);
}

.gallery-item {
  height: clamp(210px, 20vw, 340px);
  box-shadow: var(--shadow);
}

.team-card img {
  border-color: rgba(34,211,238,.18);
  box-shadow: 0 18px 44px rgba(36,8,95,.14);
}

.team-card a {
  background: linear-gradient(135deg, rgba(34,211,238,.14), rgba(59,13,143,.1));
}

.register-band,
.newsletter-section,
.dashboard-hero,
.page-hero {
  background:
    linear-gradient(135deg, rgba(5,10,36,.94), rgba(36,8,95,.88), rgba(10,47,134,.82)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 96px);
  color: #fff;
}

.register-band {
  border: 0;
  box-shadow: var(--shadow-strong);
}

.register-band h2,
.register-band .section-label {
  color: #fff;
}

.quick-register input,
.newsletter-box input,
.footer-newsletter input,
.form-control,
.form-select {
  min-height: 46px;
  border-color: rgba(10,47,134,.16);
  box-shadow: none;
}

.quick-register input:focus,
.newsletter-box input:focus,
.footer-newsletter input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(34,211,238,.16);
}

.newsletter-section {
  padding: clamp(72px, 7vw, 120px) 0;
}

.newsletter-box form {
  box-shadow: 0 22px 52px rgba(5,10,36,.2);
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(244,247,255,.96), rgba(235,241,255,.96)),
    repeating-linear-gradient(90deg, rgba(10,47,134,.05) 0 1px, transparent 1px 76px);
}

.auth-card,
.form-card,
.panel-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.admin-menu a {
  background: linear-gradient(135deg, var(--violet), var(--primary));
  box-shadow: 0 12px 28px rgba(36,8,95,.16);
}

.stat-card strong {
  color: var(--violet);
}

.table {
  --bs-table-hover-bg: rgba(34,211,238,.07);
}

.site-footer {
  background:
    linear-gradient(135deg, #050a24, #12063a 48%, #061b4f),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 90px);
}

.chatbot-toggle {
  background: linear-gradient(135deg, var(--accent-2), var(--violet), var(--primary));
  box-shadow: 0 18px 46px rgba(36,8,95,.32);
}

.chatbot-head {
  background: linear-gradient(135deg, var(--violet), var(--primary));
}

.user-message {
  background: linear-gradient(135deg, var(--violet), var(--primary));
}

.chatbot-form button {
  background: var(--accent);
}

@media (min-width: 1400px) {
  .container {
    width: min(100% - 72px, 1380px);
  }

  .navbar-brand span {
    font-size: 30px;
  }

  .quick-card {
    padding: 28px;
  }
}

@media (min-width: 1800px) {
  .container {
    width: min(100% - 112px, 1580px);
  }

  body {
    font-size: 18px;
  }

  .hero-section {
    min-height: 980px;
  }

  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .section-heading {
    max-width: 880px;
  }
}

@media (max-width: 1199px) {
  .main-navbar .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-link {
    padding-block: 10px !important;
  }
}

@media (max-width: 991px) {
  .hero-section {
    min-height: 720px;
  }

  .quick-news {
    margin-top: 0;
  }

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

  .quick-register {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, 100%);
  }

  .hero-content {
    padding-top: 28px;
  }

  .hero-actions,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics div {
    min-height: 78px;
  }

  .quick-news {
    margin-top: 0;
    padding-top: 34px;
    background: var(--soft);
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .media-card img,
  .blog-card img {
    height: 230px;
  }

  .quick-register,
  .checkbox-grid,
  .check-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .auth-card,
  .form-card,
  .panel-card {
    padding: 22px;
  }

  .mini-list a {
    display: grid;
  }
}

@media (max-width: 380px) {
  .navbar-brand span {
    font-size: 22px;
  }

  .navbar-brand img {
    width: 42px;
    height: 42px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}

/* Navbar refinement requested: logo only, larger mark, lighter CTA. */
.main-navbar {
  min-height: 92px;
}

.main-navbar .container {
  gap: 18px;
}

.navbar-brand {
  min-width: 150px;
  padding: 0;
}

.navbar-brand img {
  width: 118px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(36, 8, 95, .16));
}

.navbar-brand span {
  display: none;
}

.main-navbar .navbar-nav {
  gap: 2px;
}

.main-navbar .nav-link {
  font-size: 15.5px;
  font-weight: 800;
  color: #121a3d;
  padding: 10px 9px !important;
}

.main-navbar .nav-link::after {
  left: 9px;
  right: 9px;
  bottom: 5px;
}

.btn-nav-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--primary));
  box-shadow: 0 14px 30px rgba(36, 8, 95, .2);
  border: 1px solid rgba(255,255,255,.22);
}

.btn-nav-register:hover {
  color: #fff;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--primary), var(--violet-2));
  box-shadow: 0 18px 42px rgba(10, 47, 134, .24);
}

.nexus-dropdown {
  min-width: 220px;
  padding: 10px;
  border: 1px solid rgba(10,47,134,.12);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(5,10,36,.14);
}

.nexus-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 10px;
  color: #131b3e;
  font-weight: 800;
}

.nexus-dropdown .dropdown-item i {
  width: 20px;
  color: var(--violet-2);
}

.nexus-dropdown .dropdown-item:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--primary));
}

.nexus-dropdown .dropdown-item:hover i {
  color: #fff;
}

@media (min-width: 1400px) {
  .navbar-brand img {
    width: 132px;
    height: 78px;
  }

  .main-navbar .nav-link {
    font-size: 16.5px;
    padding-inline: 12px !important;
  }

  .btn-nav-register {
    padding-inline: 24px;
  }
}

@media (max-width: 1199px) {
  .main-navbar {
    min-height: 82px;
  }

  .navbar-brand img {
    width: 104px;
    height: 62px;
  }

  .navbar-brand {
    min-width: 112px;
  }

  .btn-nav-register {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .navbar-brand img {
    width: 92px;
    height: 56px;
  }

  .main-navbar .container {
    width: min(100% - 20px, 100%);
  }
}

/* Technology direction: interface panels, circuit lines, sharper contrast. */
.tech-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  max-width: none;
}

.hero-copy {
  max-width: 880px;
}

.hero-tech-panel {
  position: relative;
  min-height: 480px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, .28);
  background:
    linear-gradient(145deg, rgba(7, 15, 58, .76), rgba(36, 8, 95, .52)),
    repeating-linear-gradient(90deg, rgba(34,211,238,.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(34,211,238,.06) 0 1px, transparent 1px 34px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.05),
    0 28px 90px rgba(0,0,0,.32);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  overflow: hidden;
}

.hero-tech-panel::before,
.hero-tech-panel::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(34, 211, 238, .16);
  pointer-events: none;
}

.hero-tech-panel::after {
  inset: auto 0 42px 0;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  animation: scanLine 4.2s linear infinite;
}

@keyframes scanLine {
  0% { transform: translateY(-300px); opacity: 0; }
  20%, 80% { opacity: .9; }
  100% { transform: translateY(300px); opacity: 0; }
}

.tech-panel-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.tech-panel-top span {
  color: var(--accent);
}

.tech-panel-top strong {
  color: #fff;
}

.circuit-board {
  position: relative;
  z-index: 2;
  height: 300px;
  margin: 34px 0 24px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(34,211,238,.42) 24% calc(24% + 2px), transparent calc(24% + 2px)),
    linear-gradient(0deg, transparent 0 36%, rgba(242,59,182,.42) 36% calc(36% + 2px), transparent calc(36% + 2px)),
    linear-gradient(90deg, transparent 0 72%, rgba(34,211,238,.32) 72% calc(72% + 2px), transparent calc(72% + 2px)),
    linear-gradient(0deg, transparent 0 68%, rgba(34,211,238,.28) 68% calc(68% + 2px), transparent calc(68% + 2px));
}

.circuit-board::before {
  content: "";
  position: absolute;
  left: 24%;
  top: 36%;
  width: 48%;
  height: 32%;
  border: 2px solid rgba(34,211,238,.42);
  border-left-color: rgba(242,59,182,.5);
  box-shadow: inset 0 0 34px rgba(34,211,238,.08);
}

.circuit-node {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  background: #07143f;
  box-shadow: 0 0 24px rgba(34,211,238,.62);
}

.node-a { left: calc(24% - 7px); top: calc(36% - 7px); }
.node-b { right: calc(28% - 7px); top: calc(36% - 7px); border-color: var(--accent-2); box-shadow: 0 0 24px rgba(242,59,182,.55); }
.node-c { left: calc(24% - 7px); bottom: calc(32% - 7px); }
.node-d { right: calc(28% - 7px); bottom: calc(32% - 7px); }

.chip-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(230px, 72%);
  min-height: 128px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  border: 1px solid rgba(34,211,238,.42);
  background: linear-gradient(145deg, rgba(5,10,36,.92), rgba(36,8,95,.86));
  box-shadow: 0 22px 60px rgba(0,0,0,.26);
}

.chip-card i {
  font-size: 42px;
  color: var(--accent);
  filter: drop-shadow(0 0 16px rgba(34,211,238,.5));
}

.chip-card span {
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 1.4px;
}

.tech-stack {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tech-stack span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}

.quick-card,
.icon-card,
.service-card,
.media-card,
.team-card,
.blog-card {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.quick-card::after,
.service-card::after,
.icon-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 34px;
  border-right: 2px solid rgba(34,211,238,.18);
  border-bottom: 2px solid rgba(34,211,238,.18);
  pointer-events: none;
}

.media-card img,
.blog-card img,
.about-image {
  filter: saturate(1.08) contrast(1.04);
}

@media (min-width: 1800px) {
  .tech-hero-content {
    grid-template-columns: minmax(0, 1fr) 560px;
  }

  .hero-tech-panel {
    min-height: 560px;
  }

  .circuit-board {
    height: 360px;
  }
}

@media (max-width: 1199px) {
  .tech-hero-content {
    grid-template-columns: 1fr;
  }

  .hero-tech-panel {
    width: min(620px, 100%);
    min-height: 420px;
  }
}

@media (max-width: 767px) {
  .hero-tech-panel {
    display: none;
  }

  .tech-hero-content {
    display: block;
  }
}

/* Learning-platform redesign inspired by the provided reference, adapted for NEXUS. */
body {
  background: #fff;
  color: #1d2238;
}

.udemy-nav {
  min-height: 92px;
  background: #fff;
  border-bottom: 1px solid #e6e8f1;
  box-shadow: 0 2px 16px rgba(18, 24, 43, .06);
}

.udemy-nav .container {
  width: min(100% - 32px, 1840px);
  max-width: none;
}

.udemy-nav .navbar-brand {
  min-width: 126px;
}

.udemy-nav .navbar-brand img {
  width: 112px;
  height: 58px;
  object-fit: contain;
  filter: none;
}

.udemy-nav .nav-link {
  color: #34364a;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px !important;
}

.udemy-nav .nav-link::after {
  display: none;
}

.udemy-nav .nav-link:hover,
.udemy-nav .nav-link.active {
  color: #6d28d9;
}

.nav-search {
  flex: 1 1 520px;
  max-width: 760px;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  border: 1px solid #9ba1bd;
  border-radius: 999px;
  background: #fff;
}

.nav-search i {
  color: #7b8197;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #1f2437;
  font-size: 15px;
  background: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-login,
.btn-nav-register {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 17px;
  font-weight: 800;
  box-shadow: none;
}

.btn-nav-login {
  color: #6d28d9;
  border: 1px solid #6d28d9;
  background: #fff;
}

.btn-nav-login:hover {
  color: #4c1d95;
  background: #f4edff;
}

.btn-nav-register {
  color: #fff;
  border: 1px solid #6d28d9;
  background: #6d28d9;
}

.btn-nav-register:hover {
  color: #fff;
  background: #5b21b6;
  transform: none;
}

.learning-hero {
  min-height: auto;
  padding: 0;
  background: #fff;
}

.learning-hero::before,
.learning-hero .hero-overlay {
  display: none;
}

.learning-hero .container {
  width: min(100% - 32px, 1676px);
  max-width: none;
}

.learning-hero-frame {
  position: relative;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(380px, 550px) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 34%, rgba(190, 171, 255, .75) 0 110px, transparent 112px),
    radial-gradient(circle at 92% 68%, rgba(34, 211, 238, .44) 0 130px, transparent 132px),
    linear-gradient(135deg, #5624d0 0%, #6d28d9 42%, #4c1d95 100%);
}

.learning-hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(255,255,255,.13) 45% 58%, transparent 58%),
    linear-gradient(120deg, transparent 0 64%, rgba(34,211,238,.18) 64% 78%, transparent 78%);
}

.learning-hero-card {
  position: relative;
  z-index: 2;
  margin-left: 90px;
  max-width: 550px;
  padding: 32px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(25, 26, 42, .18);
}

.learning-hero-card .section-label {
  color: #6d28d9;
  margin-bottom: 8px;
}

.learning-hero-card h1 {
  margin: 0 0 20px;
  color: #1d2238;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  font-weight: 900;
}

.learning-hero-card p {
  color: #3f4358;
  font-size: 1.08rem;
  margin-bottom: 24px;
}

.learning-hero-card .hero-actions {
  margin: 0;
}

.btn-outline-purple {
  border: 1px solid #6d28d9;
  color: #6d28d9;
  background: #fff;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 800;
}

.btn-outline-purple:hover {
  color: #4c1d95;
  background: #f4edff;
}

.learning-hero-card .btn-primary-pill {
  border-radius: 8px;
  background: #6d28d9;
  box-shadow: none;
}

.learning-hero-card .btn-primary-pill:hover {
  background: #5b21b6;
  transform: none;
}

.learning-hero-visual {
  position: relative;
  z-index: 1;
  height: 500px;
  align-self: end;
}

.learning-hero-visual img {
  position: absolute;
  right: 130px;
  bottom: 0;
  width: min(470px, 42vw);
  height: 455px;
  object-fit: cover;
  object-position: center;
  border-radius: 170px 170px 0 0;
  filter: saturate(1.05) contrast(1.02);
}

.floating-skill {
  position: absolute;
  z-index: 3;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  color: #6d28d9;
  font-size: 42px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(31, 20, 75, .22);
}

.skill-one { left: 18%; top: 48%; }
.skill-two { right: 15%; top: 16%; }
.skill-three { right: 9%; bottom: 68px; color: #0faaa9; }

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #1f2437;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 36, 55, .14);
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

.quick-news {
  padding: 64px 0 16px;
  background: #fff;
}

.quick-card,
.icon-card,
.service-card,
.media-card,
.team-card,
.blog-card,
.panel-card,
.stat-card,
.form-card,
.auth-card {
  clip-path: none;
  border: 1px solid #dfe3f0;
  border-radius: 16px;
  box-shadow: none;
  background: #fff;
}

.quick-card::before,
.quick-card::after,
.icon-card::before,
.icon-card::after,
.service-card::before,
.service-card::after,
.panel-card::before,
.stat-card::before {
  display: none;
}

.quick-card {
  min-height: 132px;
  padding: 24px;
}

.quick-card i {
  color: #6d28d9;
  font-size: 28px;
}

.quick-card:hover,
.icon-card:hover,
.service-card:hover,
.media-card:hover,
.team-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(31, 36, 55, .1);
  border-color: #cbd2e4;
}

.section-heading {
  max-width: 920px;
}

.section-heading h2::after {
  display: none;
}

.section-label {
  color: #6d28d9;
}

.bg-soft {
  background: #f7f9fc;
}

.icon-card i,
.service-card i {
  color: #6d28d9;
  background: #f4edff;
  box-shadow: none;
}

.media-card img,
.blog-card img {
  height: 195px;
  border-radius: 12px;
  margin: 20px 20px 0;
  width: calc(100% - 40px);
}

.media-card-body,
.blog-body {
  background: #fff;
}

.badge-soft {
  background: #c2f0f3;
  color: #12343b;
  border: 0;
}

.register-band,
.newsletter-section {
  border-radius: 28px;
  background: #1d2030;
  box-shadow: none;
}

.register-band .quick-register input {
  border-radius: 8px;
}

.gallery-item {
  border-radius: 18px;
}

@media (min-width: 1800px) {
  .learning-hero-frame {
    min-height: 560px;
  }

  .learning-hero-visual {
    height: 560px;
  }

  .learning-hero-visual img {
    height: 510px;
    width: 520px;
  }
}

@media (max-width: 1199px) {
  .nav-search {
    max-width: none;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .learning-hero-frame {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 24px;
  }

  .learning-hero-card {
    margin: 0;
    max-width: 620px;
  }

  .learning-hero-visual {
    display: none;
  }

  .hero-arrow {
    display: none;
  }
}

@media (max-width: 767px) {
  .udemy-nav {
    min-height: 76px;
  }

  .udemy-nav .container {
    width: min(100% - 20px, 100%);
  }

  .udemy-nav .navbar-brand img {
    width: 92px;
    height: 50px;
  }

  .nav-actions {
    grid-template-columns: 1fr;
  }

  .learning-hero .container {
    width: 100%;
  }

  .learning-hero-frame {
    padding: 28px 16px;
  }

  .learning-hero-card {
    padding: 24px;
  }

  .learning-hero-card .hero-actions {
    display: grid;
  }
}

.learning-path-section,
.trend-section {
  padding: 70px 0;
  background: #fff;
}

.learning-path-section .container,
.trend-section .container,
.dark-learning-band .container {
  width: min(100% - 40px, 1616px);
  max-width: none;
}

.learning-path-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) repeat(3, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.learning-path-copy h2,
.trend-heading h2,
.dark-learning-copy h2 {
  color: #1d2238;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0 0 18px;
}

.learning-path-copy p,
.trend-heading p {
  color: #5b6076;
  font-size: 1.05rem;
  margin: 0;
}

.learning-path-card {
  position: relative;
  min-height: 320px;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #f3f4f8;
  box-shadow: none;
}

.learning-path-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .25s ease;
}

.learning-path-card span {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: #1d2238;
  background: #fff;
  border-radius: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(31,36,55,.12);
}

.learning-path-card:hover img {
  transform: scale(1.04);
}

.trend-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.trend-heading a {
  color: #6d28d9;
  font-weight: 900;
  white-space: nowrap;
}

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

.course-card {
  overflow: hidden;
  border: 1px solid #dfe3f0;
  border-radius: 16px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(31,36,55,.1);
}

.course-card img {
  width: calc(100% - 40px);
  height: 190px;
  margin: 20px 20px 0;
  object-fit: cover;
  border-radius: 10px;
}

.course-body {
  padding: 18px 20px 22px;
}

.course-body h3 {
  min-height: 58px;
  color: #10172a;
  font-size: 1.24rem;
  line-height: 1.18;
  font-weight: 900;
  margin: 0 0 8px;
}

.course-body p {
  color: #5b6076;
  margin: 0 0 12px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3f4358;
  font-weight: 750;
  margin-bottom: 12px;
}

.course-rating i {
  color: #b4690e;
}

.course-rating span {
  color: #6b7280;
  font-weight: 500;
}

.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-badges span {
  color: #12343b;
  background: #c2f0f3;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: .82rem;
  font-weight: 850;
}

.dark-learning-band {
  padding: 78px 0;
  background: #fff;
}

.dark-learning-box {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: clamp(34px, 5vw, 76px);
  border-radius: 28px;
  color: #fff;
  background: #1f2230;
}

.dark-learning-copy h2 {
  color: #fff;
}

.dark-learning-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.84);
  font-size: 1.08rem;
  line-height: 1.7;
}

.dark-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.dark-features span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 850;
}

.dark-features i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #4c1d95;
  background: #d8ccff;
  border-radius: 50%;
}

.dark-learning-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 22px;
}

.dark-learning-tiles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.dark-learning-tiles img:first-child {
  grid-row: span 2;
}

@media (max-width: 1199px) {
  .learning-path-grid,
  .course-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-path-copy {
    grid-column: 1 / -1;
  }

  .dark-learning-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .learning-path-section .container,
  .trend-section .container,
  .dark-learning-band .container {
    width: min(100% - 24px, 100%);
  }

  .learning-path-grid,
  .course-row,
  .dark-features {
    grid-template-columns: 1fr;
  }

  .trend-heading {
    display: block;
  }

  .trend-heading a {
    display: inline-block;
    margin-top: 14px;
    white-space: normal;
  }

  .dark-learning-box {
    min-height: auto;
    padding: 28px;
    border-radius: 18px;
  }

  .dark-learning-tiles {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .dark-learning-tiles img:first-child {
    grid-row: auto;
  }
}

/* Eduleb-inspired direction: soft education layout, organic hero, search-first UX. */
:root {
  --edu-primary: #29156f;
  --edu-purple: #6d28d9;
  --edu-blue: #123c88;
  --edu-yellow: #ffb703;
  --edu-soft: #f6f3ff;
  --edu-ink: #14182f;
}

.udemy-nav {
  min-height: 86px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 28px rgba(20,24,47,.06);
}

.udemy-nav .container {
  width: min(100% - 36px, 1320px);
}

.udemy-nav .navbar-collapse {
  justify-content: flex-end;
}

.udemy-nav .navbar-brand img {
  width: 128px;
  height: 64px;
}

.udemy-nav .nav-link {
  font-weight: 800;
  color: var(--edu-ink);
}

.btn-nav-login {
  border-radius: 999px;
  color: var(--edu-primary);
  border-color: rgba(41,21,111,.24);
}

.btn-nav-register {
  border-radius: 999px;
  color: #fff;
  border-color: var(--edu-primary);
  background: var(--edu-primary);
}

.learning-hero {
  padding: 34px 0 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,183,3,.16), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(109,40,217,.12), transparent 28%),
    linear-gradient(180deg, #fff, #fbfaff);
}

.learning-hero .container {
  width: min(100% - 36px, 1320px);
}

.eduleb-hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .85fr);
  gap: 48px;
  align-items: center;
  min-height: 610px;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(246,243,255,.92), rgba(255,255,255,.96)),
    #fff;
  box-shadow: 0 28px 80px rgba(41,21,111,.12);
}

.eduleb-hero-frame::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255,183,3,.22);
}

.eduleb-hero-frame::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: rgba(109,40,217,.16);
}

.eduleb-hero-copy {
  position: relative;
  z-index: 2;
}

.eduleb-hero-copy .section-label {
  color: var(--edu-purple);
  background: #efe7ff;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 950;
}

.eduleb-hero-copy h1 {
  max-width: 680px;
  margin: 18px 0 18px;
  color: var(--edu-ink);
  font-size: clamp(2.7rem, 5vw, 5.8rem);
  line-height: .98;
  font-weight: 950;
}

.eduleb-hero-copy p {
  max-width: 600px;
  color: #62677b;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  margin-bottom: 30px;
}

.hero-search {
  width: min(100%, 640px);
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(41,21,111,.14);
}

.hero-search i {
  color: var(--edu-purple);
}

.hero-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.hero-search button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  font-weight: 900;
  background: var(--edu-primary);
}

.eduleb-hero-visual {
  position: relative;
  z-index: 2;
  min-height: 500px;
}

.eduleb-hero-visual img {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: min(420px, 82%);
  height: 500px;
  object-fit: cover;
  border-radius: 220px 220px 42px 42px;
  box-shadow: 0 24px 64px rgba(41,21,111,.18);
}

.hero-blob {
  position: absolute;
  border-radius: 42% 58% 58% 42% / 50% 38% 62% 50%;
}

.blob-one {
  right: 4%;
  top: 32px;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, #6d28d9, #123c88);
}

.blob-two {
  left: 0;
  bottom: 42px;
  width: 210px;
  height: 210px;
  background: rgba(255,183,3,.6);
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--edu-ink);
  background: #fff;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(41,21,111,.16);
}

.badge-robot { left: 0; top: 32%; }
.badge-ai { right: 0; bottom: 22%; }
.hero-badge i { color: var(--edu-purple); }

.eduleb-stats {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 56px));
  margin: -42px auto 0;
  padding: 26px;
  border-radius: 24px;
  background: var(--edu-primary);
  box-shadow: 0 20px 60px rgba(41,21,111,.2);
}

.eduleb-stats div {
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.18);
}

.eduleb-stats div:last-child {
  border-right: 0;
}

.eduleb-stats strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 950;
}

.eduleb-stats span {
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.quick-news {
  padding-top: 76px;
}

.quick-card,
.service-card,
.icon-card {
  border-radius: 24px;
  border: 0;
  background: #fff;
  box-shadow: 0 16px 44px rgba(41,21,111,.08);
}

.quick-card i,
.service-card i,
.icon-card i {
  color: #fff;
  background: var(--edu-purple);
}

.learning-path-section,
.trend-section {
  background: #fff;
}

.learning-path-card {
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(41,21,111,.08);
}

.learning-path-card span {
  border-radius: 18px;
}

.course-card,
.media-card,
.blog-card,
.team-card {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 16px 44px rgba(41,21,111,.08);
}

.course-card img,
.media-card img,
.blog-card img {
  border-radius: 20px;
}

.dark-learning-box {
  background:
    radial-gradient(circle at 80% 20%, rgba(109,40,217,.42), transparent 30%),
    #171827;
  border-radius: 34px;
}

@media (max-width: 1199px) {
  .eduleb-hero-frame {
    grid-template-columns: 1fr;
  }

  .eduleb-hero-visual {
    display: none;
  }

  .eduleb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eduleb-stats div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 767px) {
  .learning-hero .container {
    width: min(100% - 22px, 100%);
  }

  .eduleb-hero-frame {
    min-height: auto;
    padding: 28px;
    border-radius: 24px;
  }

  .eduleb-hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-search {
    grid-template-columns: auto 1fr;
    border-radius: 22px;
    padding: 16px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .eduleb-stats {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .eduleb-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    padding-bottom: 16px;
  }

  .eduleb-stats div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
}

/* Final Eduleb-style homepage rebuild for NEXUS. */
.eduleb-home {
  --edu-bg: #f8f6ff;
  --edu-dark: #15152b;
  --edu-text: #14182f;
  --edu-muted: #666b80;
  --edu-purple: #6d28d9;
  --edu-violet: #29156f;
  --edu-yellow: #ffb703;
  --edu-border: #ece8f8;
  background: #fff;
  color: var(--edu-text);
}

.eduleb-home .container,
.udemy-nav .container {
  width: min(100% - 40px, 1320px);
  max-width: none;
}

.udemy-nav {
  min-height: 86px;
  border-bottom: 1px solid #f0eef8;
  background: #fff;
  box-shadow: 0 12px 30px rgba(41,21,111,.06);
}

.udemy-nav .navbar-brand img {
  width: 132px;
  height: 66px;
}

.udemy-nav .navbar-collapse {
  justify-content: flex-end;
}

.udemy-nav .nav-link {
  color: var(--edu-text);
  font-weight: 800;
  font-size: 15.5px;
}

.udemy-nav .nav-link:hover,
.udemy-nav .nav-link.active {
  color: var(--edu-purple);
}

.btn-nav-login,
.btn-nav-register {
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 22px;
}

.btn-nav-login {
  color: var(--edu-violet);
  border: 1px solid rgba(41,21,111,.18);
  background: #fff;
}

.btn-nav-register {
  color: #fff;
  border-color: var(--edu-violet);
  background: var(--edu-violet);
}

.edu-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--edu-purple);
  background: #efe8ff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.eduleb-hero {
  position: relative;
  padding: 32px 0 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255,183,3,.18), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(109,40,217,.16), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
  overflow: hidden;
}

.eduleb-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .88fr);
  gap: 52px;
  align-items: center;
  min-height: 640px;
  padding: clamp(38px, 5.5vw, 82px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(250,247,255,.95), rgba(255,255,255,.98));
  box-shadow: 0 26px 90px rgba(41,21,111,.11);
  overflow: hidden;
}

.eduleb-hero-grid::before {
  content: "";
  position: absolute;
  left: -145px;
  bottom: -155px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: rgba(255,183,3,.22);
}

.eduleb-hero-grid::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -150px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(109,40,217,.16);
}

.eduleb-hero-copy {
  position: relative;
  z-index: 2;
}

.eduleb-hero-copy h1 {
  max-width: 760px;
  margin: 18px 0;
  color: var(--edu-text);
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: .96;
  font-weight: 950;
  letter-spacing: -1px;
}

.eduleb-hero-copy p {
  max-width: 650px;
  color: var(--edu-muted);
  font-size: 1.16rem;
  line-height: 1.75;
  margin: 0 0 30px;
}

.hero-search {
  width: min(100%, 650px);
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(41,21,111,.14);
}

.hero-search i {
  color: var(--edu-purple);
}

.hero-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--edu-text);
  font-size: 1rem;
  background: transparent;
}

.hero-search button,
.edu-link-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff;
  background: var(--edu-violet);
  font-weight: 900;
}

.hero-search button:hover,
.edu-link-btn:hover {
  color: #fff;
  background: var(--edu-purple);
}

.eduleb-hero-art {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.eduleb-hero-art img {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: min(440px, 82%);
  height: 510px;
  object-fit: cover;
  border-radius: 240px 240px 46px 46px;
  box-shadow: 0 28px 74px rgba(41,21,111,.18);
}

.hero-shape {
  position: absolute;
  border-radius: 44% 56% 62% 38% / 44% 42% 58% 56%;
}

.hero-shape-one {
  right: 0;
  top: 34px;
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, var(--edu-purple), var(--edu-blue));
}

.hero-shape-two {
  left: 0;
  bottom: 38px;
  width: 220px;
  height: 220px;
  background: rgba(255,183,3,.66);
}

.hero-floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 17px;
  border-radius: 999px;
  color: var(--edu-text);
  background: #fff;
  font-weight: 900;
  box-shadow: 0 18px 46px rgba(41,21,111,.17);
}

.hero-floating-card i {
  color: var(--edu-purple);
}

.card-a { left: 2%; top: 34%; }
.card-b { right: 0; bottom: 24%; }

.edu-stats {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(1160px, calc(100% - 56px));
  margin: -44px auto 0;
  padding: 28px;
  border-radius: 28px;
  background: var(--edu-violet);
  box-shadow: 0 22px 64px rgba(41,21,111,.22);
}

.edu-stats div {
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.16);
}

.edu-stats div:last-child {
  border-right: 0;
}

.edu-stats strong {
  display: block;
  font-size: clamp(1.7rem, 2.8vw, 2.65rem);
  line-height: 1;
  font-weight: 950;
}

.edu-stats span {
  color: rgba(255,255,255,.75);
  font-weight: 750;
}

.edu-journey,
.edu-about,
.edu-categories,
.edu-courses,
.edu-instructors,
.edu-why,
.edu-testimonials,
.edu-blog {
  padding: clamp(78px, 7vw, 120px) 0;
}

.edu-journey {
  background: #fff;
}

.edu-split,
.edu-about-grid,
.edu-why-grid {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 78px);
  align-items: center;
}

.edu-section-copy h2,
.edu-section-head h2 {
  margin: 14px 0 18px;
  color: var(--edu-text);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 950;
}

.edu-section-copy p,
.edu-section-head p {
  color: var(--edu-muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.journey-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.journey-card {
  min-height: 220px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(41,21,111,.08);
}

.journey-card span {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--edu-purple);
  font-weight: 950;
}

.journey-card h3 {
  color: var(--edu-text);
  font-weight: 950;
  line-height: 1.18;
}

.journey-card p {
  color: var(--edu-muted);
  margin: 0;
}

.edu-about,
.edu-courses,
.edu-testimonials {
  background: var(--edu-bg);
}

.edu-image-stack,
.why-image {
  position: relative;
}

.edu-image-stack .main-img,
.why-image img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 24px 70px rgba(41,21,111,.13);
}

.edu-counter,
.why-badge {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 190px;
  min-height: 138px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: var(--edu-violet);
  box-shadow: 0 18px 48px rgba(41,21,111,.2);
}

.edu-counter strong,
.why-badge strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 950;
}

.edu-checklist {
  display: grid;
  gap: 13px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.edu-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--edu-text);
  font-weight: 800;
}

.edu-checklist i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--edu-purple);
}

.edu-section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.edu-section-head.side {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

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

.category-cloud a {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--edu-text);
  background: #fff;
  box-shadow: 0 14px 42px rgba(41,21,111,.07);
  font-weight: 900;
}

.category-cloud a:hover {
  color: #fff;
  background: var(--edu-purple);
}

.category-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 34px;
  border-radius: 30px;
  color: #fff;
  background: var(--edu-violet);
}

.category-cta h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 950;
}

.category-cta a {
  color: #fff;
  font-weight: 900;
}

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

.edu-course-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(41,21,111,.08);
  transition: transform .22s ease, box-shadow .22s ease;
}

.edu-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(41,21,111,.13);
}

.edu-course-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

.edu-course-body {
  padding: 24px;
}

.edu-course-category {
  color: var(--edu-purple);
  font-weight: 950;
}

.edu-course-body h3 {
  margin: 10px 0 18px;
  color: var(--edu-text);
  font-size: 1.22rem;
  font-weight: 950;
}

.edu-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--edu-muted);
  font-weight: 750;
}

.edu-course-body p {
  margin: 18px 0 0;
  color: var(--edu-text);
  font-weight: 850;
}

.edu-logo-strip {
  padding: 70px 0;
  text-align: center;
  background: #fff;
}

.edu-logo-strip h2 {
  margin-bottom: 34px;
  color: #555b70;
  font-size: 1.35rem;
  font-weight: 700;
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  color: #7a7f8f;
  font-size: 1.2rem;
  font-weight: 950;
}

.edu-instructor-grid,
.testimonial-grid,
.edu-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.edu-instructor-card,
.testimonial-card,
.edu-blog-card {
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(41,21,111,.08);
  overflow: hidden;
}

.edu-instructor-card {
  position: relative;
  padding-bottom: 26px;
  text-align: center;
}

.edu-instructor-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.instructor-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -22px;
  position: relative;
  z-index: 2;
}

.instructor-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--edu-purple);
}

.edu-instructor-card h3 {
  margin: 18px 0 4px;
  font-weight: 950;
}

.edu-instructor-card p {
  color: var(--edu-muted);
  margin: 0;
}

.edu-why {
  background: #fff;
}

.edu-why-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
}

.testimonial-card {
  padding: 34px;
}

.testimonial-card i {
  color: var(--edu-purple);
  font-size: 34px;
  margin-bottom: 18px;
}

.testimonial-card p {
  color: var(--edu-text);
  line-height: 1.8;
}

.testimonial-card strong {
  color: var(--edu-purple);
}

.edu-blog-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.edu-blog-card div {
  padding: 24px;
}

.edu-blog-card span {
  color: var(--edu-purple);
  font-weight: 850;
}

.edu-blog-card h3 {
  margin: 12px 0 18px;
  color: var(--edu-text);
  font-weight: 950;
}

.edu-events,
.edu-projects {
  padding: clamp(78px, 7vw, 120px) 0;
}

.edu-events {
  background: #fff;
}

.edu-projects {
  background: var(--edu-bg);
}

.edu-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.edu-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.edu-event-card,
.edu-project-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(41,21,111,.08);
}

.edu-event-card img,
.edu-project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.edu-event-card div,
.edu-project-card div {
  padding: 24px;
}

.edu-event-card span,
.edu-project-card span {
  color: var(--edu-purple);
  font-weight: 900;
}

.edu-event-card h3,
.edu-project-card h3 {
  margin: 10px 0 12px;
  color: var(--edu-text);
  font-weight: 950;
}

.edu-event-card p,
.edu-project-card p {
  color: var(--edu-muted);
  margin: 0;
  line-height: 1.65;
}

.newsletter-section {
  background: #fff;
}

.newsletter-box {
  padding: 54px;
  border-radius: 34px;
  background: var(--edu-violet);
}

@media (max-width: 1199px) {
  .eduleb-hero-grid,
  .edu-split,
  .edu-about-grid,
  .edu-why-grid {
    grid-template-columns: 1fr;
  }

  .eduleb-hero-art {
    display: none;
  }

  .edu-stats,
  .category-cloud,
  .edu-course-grid,
  .edu-event-grid,
  .edu-project-grid,
  .edu-instructor-grid,
  .testimonial-grid,
  .edu-blog-grid,
  .logo-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-stats div {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.16);
    padding: 14px 0;
  }
}

@media (max-width: 767px) {
  .eduleb-home .container,
  .udemy-nav .container {
    width: min(100% - 22px, 100%);
  }

  .eduleb-hero-grid {
    min-height: auto;
    padding: 28px;
    border-radius: 24px;
  }

  .eduleb-hero-copy h1 {
    font-size: 2.75rem;
  }

  .hero-search {
    grid-template-columns: auto 1fr;
    border-radius: 24px;
    padding: 16px;
  }

  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .edu-stats,
  .journey-list,
  .category-cloud,
  .edu-course-grid,
  .edu-event-grid,
  .edu-project-grid,
  .edu-instructor-grid,
  .testimonial-grid,
  .edu-blog-grid,
  .logo-cloud {
    grid-template-columns: 1fr;
  }

  .edu-section-head.side,
  .category-cta {
    display: block;
  }

  .category-cta a,
  .edu-section-head.side .edu-link-btn {
    margin-top: 18px;
  }

  .edu-image-stack .main-img,
  .why-image img {
    min-height: 340px;
  }

  .newsletter-box {
    padding: 28px;
  }
}

/* Requested luxury dark navbar + first section only. */
.luxury-nav {
  min-height: 124px;
  background: #030303 !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: none;
}

.luxury-nav .container {
  width: min(100% - 64px, 1820px);
  max-width: none;
}

.luxury-nav .navbar-brand img {
  width: 112px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.16));
}

.luxury-nav .navbar-collapse {
  align-self: stretch;
  align-items: end;
  padding-bottom: 20px;
}

.luxury-nav .navbar-nav {
  gap: 18px;
}

.luxury-nav .nav-link {
  color: rgba(255,255,255,.86) !important;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: .2px;
}

.luxury-nav .nav-link i {
  margin-right: 8px;
  color: rgba(255,255,255,.72);
}

.luxury-nav .nav-link:hover,
.luxury-nav .nav-link.active {
  color: #fff !important;
}

.luxury-nav .btn-nav-login,
.luxury-nav .btn-nav-register {
  min-height: 42px;
  border-radius: 999px;
  padding: 8px 20px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
}

.luxury-nav .btn-nav-register {
  background: #fff;
  color: #080808;
  border-color: #fff;
}

.luxury-nav .nexus-dropdown {
  background: #090909;
  border-color: rgba(255,255,255,.12);
}

.luxury-nav .nexus-dropdown .dropdown-item {
  color: rgba(255,255,255,.86);
}

.luxury-hero {
  min-height: calc(100vh - 124px);
  display: flex;
  align-items: stretch;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(13,5,30,.82) 33%, rgba(48,12,92,.56) 57%, rgba(0,0,0,.18) 100%),
    linear-gradient(0deg, rgba(0,0,0,.64), rgba(0,0,0,.06) 42%, rgba(39,9,78,.48)),
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2200&q=90') center right/cover no-repeat;
}

.luxury-hero .container {
  width: min(100% - 100px, 1820px);
  max-width: none;
  display: flex;
  align-items: center;
}

.luxury-hero::before,
.luxury-hero::after {
  display: none;
}

.luxury-hero-content {
  width: min(680px, 100%);
  padding: 80px 0;
  color: #fff;
}

.luxury-kicker {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.luxury-hero h1 {
  margin: 0 0 32px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 8.4rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -2px;
}

.luxury-hero p {
  max-width: 640px;
  margin: 0 0 46px;
  color: #fff;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.55;
  font-weight: 700;
}

.luxury-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.luxury-primary,
.luxury-secondary {
  min-width: 286px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.luxury-primary {
  background: linear-gradient(135deg, #5b21b6, #111827);
  box-shadow: 0 18px 46px rgba(91,33,182,.32);
}

.luxury-secondary {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.06);
}

.luxury-primary:hover,
.luxury-secondary:hover {
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .luxury-nav {
    min-height: 86px;
  }

  .luxury-nav .navbar-brand img {
    width: 96px;
    height: 66px;
  }

  .luxury-nav .navbar-collapse {
    align-items: stretch;
    padding: 18px;
    background: #030303;
  }

  .luxury-nav .navbar-nav {
    gap: 4px;
  }

  .luxury-hero {
    min-height: calc(100vh - 86px);
  }
}

@media (max-width: 767px) {
  .luxury-nav .container,
  .luxury-hero .container {
    width: min(100% - 28px, 100%);
  }

  .luxury-hero {
    min-height: 680px;
    background:
      linear-gradient(90deg, rgba(0,0,0,.94), rgba(38,10,78,.72)),
      url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1400&q=90') center/cover no-repeat;
  }

  .luxury-hero h1 {
    font-size: 3.6rem;
  }

  .luxury-primary,
  .luxury-secondary {
    width: 100%;
    min-width: 0;
  }
}

/* Adaptation inspired by nexus_platform.html: dark neon, grid, glass cards. */
.nexus-neon-page {
  --neon-blue: #4fc3f7;
  --neon-violet: #7c3aed;
  --neon-magenta: #e91e8c;
  --neon-dark: #05030f;
  --neon-dark-2: #0d0720;
  --neon-card: rgba(255,255,255,.045);
  --neon-border: rgba(255,255,255,.09);
  --neon-text: #e8e6ff;
  --neon-muted: rgba(232,230,255,.64);
  font-family: "Exo 2", "Segoe UI", sans-serif;
  background: var(--neon-dark);
  color: var(--neon-text);
  overflow-x: hidden;
}

.nexus-neon-page::before,
.nexus-neon-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.nexus-neon-page::before {
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 80%, rgba(233,30,140,.13), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(79,195,247,.075), transparent 70%);
}

.nexus-neon-page::after {
  background-image:
    linear-gradient(rgba(79,195,247,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,.045) 1px, transparent 1px);
  background-size: 60px 60px;
}

.nexus-neon-page .topbar,
.nexus-neon-page .luxury-nav,
.nexus-neon-page .main-navbar {
  background: rgba(5,3,15,.86) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neon-border);
}

.nexus-neon-page .luxury-nav {
  min-height: 76px;
}

.nexus-neon-page .luxury-nav .navbar-brand img {
  width: 92px;
  height: 54px;
  filter: drop-shadow(0 0 10px rgba(79,195,247,.55));
}

.nexus-neon-page .luxury-nav .navbar-collapse {
  align-items: center;
  padding-bottom: 0;
}

.nexus-neon-page .luxury-nav .nav-link {
  color: rgba(232,230,255,.74) !important;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 8px;
}

.nexus-neon-page .luxury-nav .nav-link:hover,
.nexus-neon-page .luxury-nav .nav-link.active {
  color: var(--neon-blue) !important;
  background: rgba(79,195,247,.1);
}

.nexus-neon-page .luxury-nav .btn-nav-login {
  color: var(--neon-blue);
  border-color: rgba(79,195,247,.42);
  background: rgba(79,195,247,.06);
}

.nexus-neon-page .luxury-nav .btn-nav-register {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
  box-shadow: 0 0 24px rgba(124,58,237,.45);
}

.nexus-neon-page .eduleb-home {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--neon-text);
}

.nexus-neon-page .luxury-hero {
  min-height: 100vh;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(5,3,15,.42), rgba(5,3,15,.9)),
    radial-gradient(ellipse at 50% 35%, rgba(124,58,237,.25), transparent 45%),
    url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=2200&q=90') center/cover no-repeat;
}

.nexus-neon-page .luxury-hero .container {
  justify-content: center;
  width: min(100% - 32px, 1200px);
}

.nexus-neon-page .luxury-hero-content {
  width: min(900px, 100%);
  padding-top: 110px;
}

.neon-hero-logo {
  width: min(360px, 78vw);
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 0 40px rgba(79,195,247,.5)) drop-shadow(0 0 80px rgba(124,58,237,.28));
  animation: nexusFloat 4s ease-in-out infinite;
}

@keyframes nexusFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.nexus-neon-page .luxury-kicker,
.nexus-neon-page .edu-eyebrow {
  font-family: "Orbitron", monospace;
  color: var(--neon-blue);
  background: rgba(79,195,247,.1);
  border: 1px solid rgba(79,195,247,.3);
  padding: 7px 20px;
  border-radius: 999px;
  letter-spacing: .22em;
  font-size: .68rem;
}

.nexus-neon-page .luxury-hero h1,
.nexus-neon-page .edu-section-copy h2,
.nexus-neon-page .edu-section-head h2,
.nexus-neon-page .category-cta h3,
.nexus-neon-page .newsletter-box h2 {
  font-family: "Orbitron", monospace;
  color: #fff;
  letter-spacing: 0;
}

.nexus-neon-page .luxury-hero h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.05;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-violet), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nexus-neon-page .luxury-hero p,
.nexus-neon-page .edu-section-copy p,
.nexus-neon-page .edu-section-head p,
.nexus-neon-page .edu-event-card p,
.nexus-neon-page .edu-project-card p,
.nexus-neon-page .testimonial-card p {
  color: var(--neon-muted);
}

.nexus-neon-page .luxury-actions {
  justify-content: center;
}

.nexus-neon-page .luxury-primary,
.nexus-neon-page .hero-search button,
.nexus-neon-page .edu-link-btn {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
  box-shadow: 0 0 30px rgba(124,58,237,.45);
}

.nexus-neon-page .luxury-secondary {
  color: var(--neon-blue);
  border-color: rgba(79,195,247,.42);
  background: rgba(79,195,247,.06);
}

.nexus-neon-page .edu-journey,
.nexus-neon-page .edu-about,
.nexus-neon-page .edu-categories,
.nexus-neon-page .edu-courses,
.nexus-neon-page .edu-logo-strip,
.nexus-neon-page .edu-events,
.nexus-neon-page .edu-projects,
.nexus-neon-page .edu-instructors,
.nexus-neon-page .edu-why,
.nexus-neon-page .edu-testimonials,
.nexus-neon-page .edu-blog,
.nexus-neon-page .newsletter-section {
  position: relative;
  z-index: 1;
  background: transparent;
}

.nexus-neon-page .edu-stats,
.nexus-neon-page .journey-card,
.nexus-neon-page .edu-course-card,
.nexus-neon-page .edu-event-card,
.nexus-neon-page .edu-project-card,
.nexus-neon-page .edu-instructor-card,
.nexus-neon-page .testimonial-card,
.nexus-neon-page .edu-blog-card,
.nexus-neon-page .category-cloud a,
.nexus-neon-page .category-cta,
.nexus-neon-page .newsletter-box,
.nexus-neon-page .edu-counter,
.nexus-neon-page .why-badge {
  background: var(--neon-card);
  border: 1px solid var(--neon-border);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.nexus-neon-page .journey-card,
.nexus-neon-page .edu-course-card,
.nexus-neon-page .edu-event-card,
.nexus-neon-page .edu-project-card,
.nexus-neon-page .edu-instructor-card,
.nexus-neon-page .testimonial-card,
.nexus-neon-page .edu-blog-card,
.nexus-neon-page .category-cloud a {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nexus-neon-page .journey-card:hover,
.nexus-neon-page .edu-course-card:hover,
.nexus-neon-page .edu-event-card:hover,
.nexus-neon-page .edu-project-card:hover,
.nexus-neon-page .edu-instructor-card:hover,
.nexus-neon-page .testimonial-card:hover,
.nexus-neon-page .edu-blog-card:hover,
.nexus-neon-page .category-cloud a:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 22px 70px rgba(124,58,237,.18);
}

.nexus-neon-page .journey-card span,
.nexus-neon-page .edu-checklist i,
.nexus-neon-page .instructor-social a {
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
}

.nexus-neon-page .journey-card h3,
.nexus-neon-page .edu-course-body h3,
.nexus-neon-page .edu-event-card h3,
.nexus-neon-page .edu-project-card h3,
.nexus-neon-page .edu-instructor-card h3,
.nexus-neon-page .edu-blog-card h3,
.nexus-neon-page .testimonial-card strong {
  color: var(--neon-blue);
}

.nexus-neon-page .edu-course-body,
.nexus-neon-page .edu-event-card div,
.nexus-neon-page .edu-project-card div,
.nexus-neon-page .edu-blog-card div {
  background: transparent;
}

.nexus-neon-page .edu-course-category,
.nexus-neon-page .edu-event-card span,
.nexus-neon-page .edu-project-card span,
.nexus-neon-page .edu-blog-card span,
.nexus-neon-page .trend-heading a,
.nexus-neon-page .category-cta a {
  color: var(--neon-magenta);
}

.nexus-neon-page .edu-course-meta,
.nexus-neon-page .edu-course-body p,
.nexus-neon-page .edu-instructor-card p,
.nexus-neon-page .logo-cloud,
.nexus-neon-page .edu-logo-strip h2 {
  color: var(--neon-muted);
}

.nexus-neon-page .category-cloud a {
  color: var(--neon-text);
}

.nexus-neon-page .category-cloud a:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.24), rgba(233,30,140,.18));
}

.nexus-neon-page .edu-image-stack .main-img,
.nexus-neon-page .why-image img,
.nexus-neon-page .edu-course-card img,
.nexus-neon-page .edu-event-card img,
.nexus-neon-page .edu-project-card img,
.nexus-neon-page .edu-instructor-card img,
.nexus-neon-page .edu-blog-card img {
  border: 1px solid var(--neon-border);
  filter: saturate(1.08) contrast(1.06);
}

.nexus-neon-page .newsletter-box form,
.nexus-neon-page .hero-search {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--neon-border);
}

.nexus-neon-page .newsletter-box input,
.nexus-neon-page .hero-search input {
  color: #fff;
}

.nexus-neon-page .newsletter-box input::placeholder,
.nexus-neon-page .hero-search input::placeholder {
  color: rgba(232,230,255,.48);
}

.nexus-neon-page .site-footer {
  position: relative;
  z-index: 1;
  background: rgba(5,3,15,.94);
  border-top: 1px solid var(--neon-border);
}

@media (max-width: 767px) {
  .nexus-neon-page .luxury-nav .navbar-collapse {
    background: rgba(5,3,15,.96);
    border: 1px solid var(--neon-border);
  }

  .neon-hero-logo {
    width: min(280px, 82vw);
  }
}

/* Global neon theme and contrast fixes for every page, not only home. */
body:not(.nexus-neon-page) {
  --neon-blue: #4fc3f7;
  --neon-violet: #7c3aed;
  --neon-magenta: #e91e8c;
  --neon-dark: #05030f;
  --neon-card: rgba(255,255,255,.055);
  --neon-border: rgba(255,255,255,.1);
  --neon-text: #e8e6ff;
  --neon-muted: rgba(232,230,255,.66);
  font-family: "Exo 2", "Segoe UI", sans-serif;
  color: var(--neon-text);
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 82% 80%, rgba(233,30,140,.12), transparent 60%),
    linear-gradient(180deg, #05030f, #09051b);
}

body:not(.nexus-neon-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(79,195,247,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

body:not(.nexus-neon-page) > * {
  position: relative;
  z-index: 1;
}

body:not(.nexus-neon-page) .main-navbar,
body:not(.nexus-neon-page) .topbar {
  background: rgba(5,3,15,.9) !important;
  border-bottom: 1px solid var(--neon-border);
  backdrop-filter: blur(18px);
}

body:not(.nexus-neon-page) .navbar-brand img {
  filter: drop-shadow(0 0 10px rgba(79,195,247,.5));
}

body:not(.nexus-neon-page) .nav-link {
  color: rgba(232,230,255,.78) !important;
}

body:not(.nexus-neon-page) .nav-link:hover,
body:not(.nexus-neon-page) .nav-link.active {
  color: var(--neon-blue) !important;
}

body:not(.nexus-neon-page) .page-hero,
body:not(.nexus-neon-page) .dashboard-hero {
  background:
    linear-gradient(135deg, rgba(5,3,15,.92), rgba(39,12,78,.82)),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1800&q=85') center/cover;
}

body:not(.nexus-neon-page) .section-pad,
body:not(.nexus-neon-page) .dashboard,
body:not(.nexus-neon-page) .auth-page,
body:not(.nexus-neon-page) .badge-page,
body:not(.nexus-neon-page) .certificate-page {
  background: transparent !important;
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .section-heading h2,
body:not(.nexus-neon-page) .section-title,
body:not(.nexus-neon-page) .auth-card h1,
body:not(.nexus-neon-page) .panel-card h2,
body:not(.nexus-neon-page) .media-card h3,
body:not(.nexus-neon-page) .service-card h3,
body:not(.nexus-neon-page) .icon-card h3,
body:not(.nexus-neon-page) .team-card h3,
body:not(.nexus-neon-page) .blog-card h3 {
  color: #fff;
}

body:not(.nexus-neon-page) p,
body:not(.nexus-neon-page) .text-muted,
body:not(.nexus-neon-page) small {
  color: var(--neon-muted) !important;
}

body:not(.nexus-neon-page) .icon-card,
body:not(.nexus-neon-page) .service-card,
body:not(.nexus-neon-page) .media-card,
body:not(.nexus-neon-page) .team-card,
body:not(.nexus-neon-page) .blog-card,
body:not(.nexus-neon-page) .panel-card,
body:not(.nexus-neon-page) .form-card,
body:not(.nexus-neon-page) .auth-card,
body:not(.nexus-neon-page) .stat-card,
body:not(.nexus-neon-page) .quick-card,
body:not(.nexus-neon-page) .register-band {
  background: var(--neon-card) !important;
  border: 1px solid var(--neon-border) !important;
  color: var(--neon-text);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body:not(.nexus-neon-page) .media-card-body,
body:not(.nexus-neon-page) .blog-body {
  background: transparent !important;
}

body:not(.nexus-neon-page) .form-control,
body:not(.nexus-neon-page) .form-select,
body:not(.nexus-neon-page) textarea,
body:not(.nexus-neon-page) input {
  background: rgba(255,255,255,.07);
  border-color: var(--neon-border);
  color: #fff;
}

body:not(.nexus-neon-page) .form-control::placeholder,
body:not(.nexus-neon-page) textarea::placeholder,
body:not(.nexus-neon-page) input::placeholder {
  color: rgba(232,230,255,.45);
}

body:not(.nexus-neon-page) .form-select option {
  color: #111827;
  background: #fff;
}

body:not(.nexus-neon-page) label,
body:not(.nexus-neon-page) .form-card label,
body:not(.nexus-neon-page) .stack-form label {
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .checkbox-grid label,
body:not(.nexus-neon-page) .terms-line,
body:not(.nexus-neon-page) .mini-list a,
body:not(.nexus-neon-page) .check-grid span,
body:not(.nexus-neon-page) .value-list span,
body:not(.nexus-neon-page) .skill-cloud span {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--neon-border);
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .table {
  color: var(--neon-text);
  --bs-table-color: var(--neon-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255,255,255,.11);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(79,195,247,.08);
}

body:not(.nexus-neon-page) .table th,
body:not(.nexus-neon-page) .table td {
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .badge-soft {
  color: var(--neon-blue);
  background: rgba(79,195,247,.1);
  border: 1px solid rgba(79,195,247,.25);
}

body:not(.nexus-neon-page) .btn-outline-primary,
body:not(.nexus-neon-page) .btn-nav-login {
  color: var(--neon-blue);
  border-color: rgba(79,195,247,.35);
  background: rgba(79,195,247,.06);
}

body:not(.nexus-neon-page) .btn-primary-pill,
body:not(.nexus-neon-page) .btn-primary-soft,
body:not(.nexus-neon-page) .admin-menu a,
body:not(.nexus-neon-page) .btn-nav-register {
  color: #fff;
  background: linear-gradient(135deg, var(--neon-violet), var(--neon-magenta));
  border: 0;
}

body:not(.nexus-neon-page) .nexus-dropdown,
body:not(.nexus-neon-page) .dropdown-menu {
  background: rgba(5,3,15,.96);
  border: 1px solid var(--neon-border);
}

body:not(.nexus-neon-page) .dropdown-item {
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .dropdown-item:hover {
  color: #fff;
  background: rgba(124,58,237,.25);
}

body:not(.nexus-neon-page) .site-footer {
  background: rgba(5,3,15,.94);
  border-top: 1px solid var(--neon-border);
}

body:not(.nexus-neon-page) .chatbot-window {
  background: rgba(5,3,15,.96);
  border: 1px solid var(--neon-border);
  color: var(--neon-text);
}

body:not(.nexus-neon-page) .chatbot-messages {
  background: rgba(255,255,255,.04);
}

body:not(.nexus-neon-page) .bot-message {
  color: var(--neon-text);
  background: rgba(255,255,255,.07);
  border-color: var(--neon-border);
}

body:not(.nexus-neon-page) .certificate-sheet,
body:not(.nexus-neon-page) .membership-body {
  background: #fff !important;
  color: #10172a !important;
}

body:not(.nexus-neon-page) .certificate-sheet p,
body:not(.nexus-neon-page) .membership-body p,
body:not(.nexus-neon-page) .certificate-sheet small {
  color: #475467 !important;
}

body:not(.nexus-neon-page) .certificate-sheet h1,
body:not(.nexus-neon-page) .certificate-sheet h2,
body:not(.nexus-neon-page) .membership-body h2 {
  color: #0d3b8e !important;
}

/* Unified platform shell: keeps internal pages aligned with the index page. */
.nexus-platform-page {
  --platform-bg: #ffffff;
  --platform-bg-soft: #fbf7fd;
  --platform-ink: #1a1020;
  --platform-muted: #6c6170;
  --platform-purple: #60127d;
  --platform-purple-bright: #8d23bd;
  --platform-purple-hot: #d73898;
  --platform-line: rgba(96, 18, 125, .14);
  --platform-shadow: 0 24px 70px rgba(31, 4, 47, .14);
  --platform-container: 1320px;
  color: var(--platform-ink);
  background: var(--platform-bg);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.nexus-platform-page::before {
  display: none;
}

.nexus-platform-page > * {
  position: relative;
  z-index: 1;
}

.nexus-platform-page a {
  text-decoration: none;
}

.nexus-platform-page .site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  color: #ffffff;
}

.nexus-platform-page .topbar,
.nexus-platform-page .site-header .navbar,
.nexus-platform-page .site-footer {
  width: min(var(--platform-container), calc(100% - 56px));
  margin-inline: auto;
}

.nexus-platform-page .topbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0;
  color: rgba(255, 255, 255, .82);
  background: transparent !important;
  border: 0;
  font-size: 15px;
  backdrop-filter: none;
}

.nexus-platform-page .topbar p {
  margin: 0;
  color: inherit !important;
}

.nexus-platform-page .topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nexus-platform-page .topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0;
  padding: 0 13px 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 750;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.nexus-platform-page .topbar-links a:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.nexus-platform-page .topbar-links svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nexus-platform-page .topbar-links a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.nexus-platform-page .site-header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(17, 3, 27, .62) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  backdrop-filter: blur(18px);
}

.nexus-platform-page .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nexus-platform-page .brand-logo {
  width: 176px;
  height: auto;
  object-fit: contain;
  filter: none;
}

.nexus-platform-page .nav-panel {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nexus-platform-page .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nexus-platform-page .nav-links a {
  display: block;
  color: rgba(255, 255, 255, .9) !important;
  font-size: 15px;
  font-weight: 700;
}

.nexus-platform-page .nav-links a:hover,
.nexus-platform-page .nav-links a.is-current {
  color: #ffffff !important;
}

.nexus-platform-page .nav-links a.is-current::after {
  content: "";
  display: block;
  width: 18px;
  height: 3px;
  margin: 7px auto 0;
  border-radius: 999px;
  background: var(--platform-purple-hot);
}

.nexus-platform-page .nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, .08);
}

.nexus-platform-page .nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: currentColor;
}

.nexus-platform-page .nav-cta,
.nexus-platform-page .btn-primary-pill,
.nexus-platform-page .btn-primary-soft,
.nexus-platform-page .admin-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--platform-purple-bright), var(--platform-purple-hot)) !important;
  box-shadow: 0 18px 38px rgba(141, 35, 189, .26);
  transition: transform .2s ease, box-shadow .2s ease;
}

.nexus-platform-page .nav-cta:hover,
.nexus-platform-page .btn-primary-pill:hover,
.nexus-platform-page .btn-primary-soft:hover,
.nexus-platform-page .admin-menu a:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(141, 35, 189, .32);
}

.nexus-platform-page .page-hero,
.nexus-platform-page .dashboard-hero {
  min-height: 420px;
  display: flex;
  align-items: end;
  padding: 210px 0 82px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(8, 0, 13, .94), rgba(96, 18, 125, .68)),
    radial-gradient(circle at 82% 20%, rgba(215, 56, 152, .26), transparent 34%),
    url('../images/background-purple.png') center/cover no-repeat;
}

.nexus-platform-page .page-hero.compact {
  min-height: 340px;
  padding: 190px 0 58px;
}

.nexus-platform-page .page-hero span,
.nexus-platform-page .dashboard-hero span,
.nexus-platform-page .section-label {
  color: var(--platform-purple-hot);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nexus-platform-page .page-hero h1,
.nexus-platform-page .dashboard-hero h1 {
  max-width: 880px;
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.nexus-platform-page .dashboard-hero p {
  color: rgba(255,255,255,.78) !important;
}

.nexus-platform-page .section-pad {
  padding: 95px 0;
  color: var(--platform-ink);
  background: var(--platform-bg);
}

.nexus-platform-page .auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 210px 20px 92px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,247,253,.96)),
    radial-gradient(circle at 12% 20%, rgba(215,56,152,.12), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(96,18,125,.14), transparent 34%);
}

.nexus-platform-page .icon-card,
.nexus-platform-page .service-card,
.nexus-platform-page .media-card,
.nexus-platform-page .team-card,
.nexus-platform-page .blog-card,
.nexus-platform-page .panel-card,
.nexus-platform-page .form-card,
.nexus-platform-page .auth-card,
.nexus-platform-page .stat-card,
.nexus-platform-page .quick-card,
.nexus-platform-page .register-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--platform-line) !important;
  border-radius: 18px;
  color: var(--platform-ink);
  background: #ffffff !important;
  box-shadow: var(--platform-shadow);
  backdrop-filter: none;
}

.nexus-platform-page .form-card,
.nexus-platform-page .panel-card,
.nexus-platform-page .auth-card {
  padding: clamp(24px, 3vw, 38px);
}

.nexus-platform-page .panel-card::before,
.nexus-platform-page .form-card::before,
.nexus-platform-page .auth-card::before,
.nexus-platform-page .stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--platform-purple-bright), var(--platform-purple-hot));
}

.nexus-platform-page .auth-card {
  width: min(480px, 100%);
}

.nexus-platform-page .section-heading h2,
.nexus-platform-page .section-title,
.nexus-platform-page .auth-card h1,
.nexus-platform-page .panel-card h2,
.nexus-platform-page .media-card h3,
.nexus-platform-page .service-card h3,
.nexus-platform-page .icon-card h3,
.nexus-platform-page .team-card h3,
.nexus-platform-page .blog-card h3 {
  color: var(--platform-ink);
}

.nexus-platform-page p,
.nexus-platform-page .text-muted,
.nexus-platform-page small {
  color: var(--platform-muted) !important;
}

.nexus-platform-page .form-control,
.nexus-platform-page .form-select,
.nexus-platform-page textarea,
.nexus-platform-page input {
  color: var(--platform-ink);
  background: #ffffff;
  border-color: rgba(96, 18, 125, .18);
  border-radius: 12px;
}

.nexus-platform-page .form-control:focus,
.nexus-platform-page .form-select:focus,
.nexus-platform-page textarea:focus,
.nexus-platform-page input:focus {
  border-color: var(--platform-purple-bright);
  box-shadow: 0 0 0 .25rem rgba(141, 35, 189, .14);
}

.nexus-platform-page .form-control::placeholder,
.nexus-platform-page textarea::placeholder,
.nexus-platform-page input::placeholder {
  color: rgba(26, 16, 32, .46);
}

.nexus-platform-page label,
.nexus-platform-page .form-card label,
.nexus-platform-page .stack-form label {
  color: var(--platform-ink);
}

.nexus-platform-page .checkbox-grid label,
.nexus-platform-page .terms-line,
.nexus-platform-page .mini-list a,
.nexus-platform-page .check-grid span,
.nexus-platform-page .value-list span,
.nexus-platform-page .skill-cloud span {
  color: var(--platform-ink);
  background: var(--platform-bg-soft);
  border: 1px solid var(--platform-line);
}

.nexus-platform-page .table {
  --bs-table-color: var(--platform-ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(96, 18, 125, .12);
  color: var(--platform-ink);
}

.nexus-platform-page .table th,
.nexus-platform-page .table td {
  color: var(--platform-ink);
}

.nexus-platform-page .badge-soft {
  color: var(--platform-purple);
  background: rgba(215, 56, 152, .1);
  border: 1px solid rgba(215, 56, 152, .22);
}

.nexus-platform-page .btn-outline-primary {
  color: var(--platform-purple);
  border-color: rgba(96, 18, 125, .25);
  background: rgba(96, 18, 125, .04);
}

.nexus-platform-page .btn-light-pill {
  min-height: 48px;
  border-radius: 999px;
  color: var(--platform-purple);
  background: #ffffff;
}

.nexus-platform-page .btn-outline-light-pill {
  min-height: 48px;
  border-radius: 999px;
  color: #ffffff;
  border-color: rgba(255,255,255,.62);
}

.nexus-platform-page .site-footer {
  display: grid;
  grid-template-columns: 1.4fr .7fr .7fr;
  gap: 70px;
  max-width: none;
  width: 100%;
  margin-inline: auto;
  padding: 70px max(28px, calc((100% - var(--platform-container)) / 2));
  color: rgba(255, 255, 255, .74);
  background: #08000d;
  border-top: 0;
}

.nexus-platform-page .site-footer img {
  width: 210px;
  height: auto;
  margin-bottom: 22px;
}

.nexus-platform-page .site-footer h3 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.nexus-platform-page .site-footer p,
.nexus-platform-page .site-footer a {
  color: rgba(255, 255, 255, .74) !important;
}

.nexus-platform-page .site-footer a {
  display: block;
  margin-top: 12px;
}

.nexus-platform-page .footer-newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 20px;
}

.nexus-platform-page .footer-newsletter input {
  min-width: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}

.nexus-platform-page .footer-newsletter button,
.nexus-platform-page .chatbot-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  background: linear-gradient(135deg, var(--platform-purple-bright), var(--platform-purple-hot));
}

.nexus-platform-page .chatbot-toggle {
  background: linear-gradient(135deg, var(--platform-purple-bright), var(--platform-purple-hot));
  box-shadow: 0 18px 42px rgba(141, 35, 189, .32);
}

.nexus-platform-page .chatbot-head {
  background: #08000d;
}

.nexus-platform-page .chatbot-window {
  border: 1px solid var(--platform-line);
  border-radius: 18px;
  background: #ffffff;
}

.nexus-platform-page .chatbot-messages {
  background: var(--platform-bg-soft);
}

.nexus-platform-page .bot-message {
  color: var(--platform-ink);
  background: #ffffff;
  border: 1px solid var(--platform-line);
}

@media (max-width: 1199px) {
  .nexus-platform-page .nav-panel {
    gap: 20px;
  }

  .nexus-platform-page .nav-links {
    gap: 16px;
  }

  .nexus-platform-page .brand-logo {
    width: 148px;
  }
}

@media (max-width: 980px) {
  .nexus-platform-page .topbar {
    display: none !important;
  }

  .nexus-platform-page .site-header {
    position: fixed;
    padding-top: 14px;
  }

  .nexus-platform-page .site-header .navbar {
    min-height: 72px;
  }

  .nexus-platform-page .nav-toggle {
    display: block;
  }

  .nexus-platform-page .nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 28px;
    background: rgba(18, 3, 28, .96);
  }

  .nexus-platform-page .site-header.is-open .nav-panel {
    display: flex;
  }

  .nexus-platform-page .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nexus-platform-page .nav-links a.is-current::after {
    margin-left: 0;
    margin-right: auto;
  }

  .nexus-platform-page .nav-cta {
    width: 100%;
  }

  .nexus-platform-page .page-hero,
  .nexus-platform-page .dashboard-hero {
    padding-top: 170px;
  }
}

@media (max-width: 767px) {
  .nexus-platform-page .topbar,
  .nexus-platform-page .site-header .navbar {
    width: min(var(--platform-container), calc(100% - 28px));
  }

  .nexus-platform-page .page-hero,
  .nexus-platform-page .dashboard-hero {
    min-height: 360px;
    padding-bottom: 58px;
  }

  .nexus-platform-page .section-pad {
    padding: 70px 0;
  }

  .nexus-platform-page .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .nexus-platform-page .site-footer {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .nexus-platform-page .footer-newsletter {
    grid-template-columns: 1fr;
  }
}

/* Specificity guard against legacy body:not(.nexus-neon-page) rules. */
body.nexus-platform-page {
  color: var(--platform-ink);
  background: var(--platform-bg);
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

body.nexus-platform-page .section-pad,
body.nexus-platform-page .dashboard,
body.nexus-platform-page .badge-page,
body.nexus-platform-page .certificate-page {
  color: var(--platform-ink);
  background: var(--platform-bg) !important;
}

body.nexus-platform-page .auth-page {
  color: var(--platform-ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,247,253,.96)),
    radial-gradient(circle at 12% 20%, rgba(215,56,152,.12), transparent 30%),
    radial-gradient(circle at 88% 70%, rgba(96,18,125,.14), transparent 34%) !important;
}

body.nexus-platform-page .page-hero,
body.nexus-platform-page .dashboard-hero {
  background:
    linear-gradient(120deg, rgba(8, 0, 13, .94), rgba(96, 18, 125, .68)),
    radial-gradient(circle at 82% 20%, rgba(215, 56, 152, .26), transparent 34%),
    url('../images/background-purple.png') center/cover no-repeat !important;
}

body.nexus-platform-page .icon-card,
body.nexus-platform-page .service-card,
body.nexus-platform-page .media-card,
body.nexus-platform-page .team-card,
body.nexus-platform-page .blog-card,
body.nexus-platform-page .panel-card,
body.nexus-platform-page .form-card,
body.nexus-platform-page .auth-card,
body.nexus-platform-page .stat-card,
body.nexus-platform-page .quick-card,
body.nexus-platform-page .register-band {
  color: var(--platform-ink);
  background: #ffffff !important;
  border-color: var(--platform-line) !important;
  box-shadow: var(--platform-shadow);
  backdrop-filter: none;
}

body.nexus-platform-page .section-heading h2,
body.nexus-platform-page .section-title,
body.nexus-platform-page .auth-card h1,
body.nexus-platform-page .panel-card h2,
body.nexus-platform-page .media-card h3,
body.nexus-platform-page .service-card h3,
body.nexus-platform-page .icon-card h3,
body.nexus-platform-page .team-card h3,
body.nexus-platform-page .blog-card h3 {
  color: var(--platform-ink);
}

body.nexus-platform-page p,
body.nexus-platform-page .text-muted,
body.nexus-platform-page small {
  color: var(--platform-muted) !important;
}

body.nexus-platform-page .form-control,
body.nexus-platform-page .form-select,
body.nexus-platform-page textarea,
body.nexus-platform-page input {
  color: var(--platform-ink);
  background: #ffffff;
  border-color: rgba(96, 18, 125, .18);
}

body.nexus-platform-page label,
body.nexus-platform-page .form-card label,
body.nexus-platform-page .stack-form label {
  color: var(--platform-ink);
}

body.nexus-platform-page .checkbox-grid label,
body.nexus-platform-page .terms-line,
body.nexus-platform-page .mini-list a,
body.nexus-platform-page .check-grid span,
body.nexus-platform-page .value-list span,
body.nexus-platform-page .skill-cloud span {
  color: var(--platform-ink);
  background: var(--platform-bg-soft);
  border-color: var(--platform-line);
}

body.nexus-platform-page .site-footer {
  color: rgba(255, 255, 255, .74);
  background: #08000d;
  border-top: 0;
}

/* Internal page spacing fixes after adopting the shared platform shell. */
html {
  background: #08000d;
}

body.nexus-platform-page {
  min-height: 100vh;
}

body.nexus-platform-page .site-header {
  background: transparent;
}

body.nexus-platform-page .topbar {
  width: 100%;
  padding-inline: max(28px, calc((100% - var(--platform-container)) / 2));
  background: rgba(8, 0, 13, .92) !important;
}

body.nexus-platform-page .site-header .navbar {
  margin-top: 0;
}

body.nexus-platform-page .auth-page {
  min-height: 100vh;
  align-items: start;
  justify-items: center;
  padding-top: 226px;
  padding-bottom: 72px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.92), rgba(251,247,253,.96)),
    radial-gradient(circle at 72% 18%, rgba(215,56,152,.13), transparent 30%),
    radial-gradient(circle at 18% 76%, rgba(96,18,125,.12), transparent 34%) !important;
}

body.nexus-platform-page .page-hero,
body.nexus-platform-page .dashboard-hero {
  min-height: 600px;
  padding-top: 230px;
  padding-bottom: 90px;
}

body.nexus-platform-page .section-pad {
  padding-top: 82px;
  padding-bottom: 96px;
}

body.nexus-platform-page .site-footer {
  width: 100%;
  min-height: 360px;
  margin: 0;
  padding-top: 84px;
  padding-bottom: 84px;
}

body.nexus-platform-page .footer-newsletter {
  max-width: 370px;
}

body.nexus-platform-page .footer-newsletter input {
  min-height: 56px;
  padding-inline: 20px;
}

body.nexus-platform-page .footer-newsletter button {
  min-height: 56px;
  padding-inline: 28px;
}

body.nexus-platform-page .chatbot-toggle {
  right: 24px;
  left: auto;
  bottom: 24px;
}

body.nexus-platform-page .chatbot-window {
  right: 24px;
  left: auto;
}

@media (min-width: 981px) {
  body.nexus-platform-page .site-header .navbar {
    width: min(var(--platform-container), calc(100% - 252px));
  }
}

@media (max-width: 980px) {
  body.nexus-platform-page .topbar {
    display: none !important;
  }

  body.nexus-platform-page .auth-page {
    padding-top: 116px;
  }

  body.nexus-platform-page .page-hero,
  body.nexus-platform-page .dashboard-hero {
    min-height: 440px;
    padding-top: 150px;
  }
}

@media (max-width: 767px) {
  body.nexus-platform-page .auth-page {
    padding-inline: 14px;
  }

  body.nexus-platform-page .page-hero,
  body.nexus-platform-page .dashboard-hero {
    min-height: 390px;
    padding-top: 138px;
  }

  body.nexus-platform-page .page-hero h1,
  body.nexus-platform-page .dashboard-hero h1 {
    font-size: 2.6rem;
  }

  body.nexus-platform-page .site-footer {
    padding-inline: 28px;
  }
}

/* Final page-shell overrides: login background, footer bottom, chatbot placement. */
html,
body.nexus-platform-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  background: #08000d !important;
}

body.nexus-platform-page .auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(7, 0, 12, .82) 0%, rgba(20, 3, 31, .66) 48%, rgba(83, 13, 105, .32) 100%),
    linear-gradient(180deg, rgba(8, 0, 13, .05), rgba(8, 0, 13, .82)),
    url('../images/background.png') center / cover no-repeat,
    #08000d !important;
}

body.nexus-platform-page .auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(215, 56, 152, .18), transparent 28%),
    radial-gradient(circle at 82% 70%, rgba(96, 18, 125, .22), transparent 34%);
}

body.nexus-platform-page .auth-card {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 30px 90px rgba(8, 0, 13, .34);
}

body.nexus-platform-page .site-footer {
  display: grid;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #08000d !important;
}

body.nexus-platform-page .site-footer::after {
  content: "";
  display: block;
  height: 0;
}

body.nexus-platform-page .chatbot-toggle {
  position: fixed !important;
  right: 24px !important;
  left: auto !important;
  bottom: 24px !important;
  z-index: 3000 !important;
  transform: none !important;
}

body.nexus-platform-page .chatbot-window {
  position: fixed !important;
  right: 24px !important;
  left: auto !important;
  bottom: 92px !important;
  width: min(380px, calc(100vw - 48px)) !important;
  max-width: calc(100vw - 48px) !important;
  height: min(520px, calc(100vh - 128px)) !important;
  z-index: 3001 !important;
  transform: none !important;
}

body.nexus-platform-page .chatbot-window.open {
  display: grid !important;
  grid-template-rows: auto 1fr auto;
}

@media (max-width: 520px) {
  body.nexus-platform-page .chatbot-toggle {
    right: 16px !important;
    bottom: 16px !important;
  }

  body.nexus-platform-page .chatbot-window {
    right: 16px !important;
    bottom: 84px !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* Public news detail page. */
body.nexus-platform-page .news-detail-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78) !important;
  font-size: 18px;
  font-weight: 800;
}

body.nexus-platform-page .news-detail-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(215, 56, 152, .10), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbf7fd) !important;
}

body.nexus-platform-page .news-detail-card {
  overflow: hidden;
  border: 1px solid rgba(96, 18, 125, .12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(31, 4, 47, .14);
}

body.nexus-platform-page .news-detail-card > img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

body.nexus-platform-page .news-detail-content {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 64px);
}

body.nexus-platform-page .news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.nexus-platform-page .news-detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #60127d;
  background: rgba(215, 56, 152, .10);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Admin readability and attendance module. */
body.nexus-platform-page.admin-page {
  color: #ffffff;
  background: #08000d !important;
}

body.nexus-platform-page.admin-page .dashboard,
body.nexus-platform-page.admin-page .section-pad {
  color: #1b1024;
  background:
    linear-gradient(120deg, rgba(8, 0, 13, .86), rgba(96, 18, 125, .40)),
    radial-gradient(circle at 82% 12%, rgba(215, 56, 152, .24), transparent 34%),
    url('../images/background.png') center / cover fixed no-repeat,
    #08000d !important;
}

body.nexus-platform-page.admin-page .page-hero,
body.nexus-platform-page.admin-page .dashboard-hero {
  background:
    linear-gradient(120deg, rgba(8, 0, 13, .94), rgba(96, 18, 125, .66)),
    url('../images/background-purple.png') center / cover no-repeat !important;
}

body.nexus-platform-page.admin-page .panel-card,
body.nexus-platform-page.admin-page .stat-card,
body.nexus-platform-page.admin-page .form-card {
  color: #1b1024 !important;
  background: rgba(255, 255, 255, .96) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow: 0 28px 90px rgba(8, 0, 13, .30) !important;
}

body.nexus-platform-page.admin-page .panel-card h2,
body.nexus-platform-page.admin-page .stat-card strong,
body.nexus-platform-page.admin-page label,
body.nexus-platform-page.admin-page .table th,
body.nexus-platform-page.admin-page .table td {
  color: #14091d !important;
}

body.nexus-platform-page.admin-page .panel-card p,
body.nexus-platform-page.admin-page .panel-card small,
body.nexus-platform-page.admin-page .stat-card span {
  color: #65586d !important;
}

body.nexus-platform-page.admin-page .form-control,
body.nexus-platform-page.admin-page .form-select,
body.nexus-platform-page.admin-page textarea,
body.nexus-platform-page.admin-page input {
  color: #14091d !important;
  background: #ffffff !important;
  border-color: rgba(96, 18, 125, .20) !important;
}

body.nexus-platform-page.admin-page .form-control::placeholder {
  color: rgba(101, 88, 109, .58) !important;
}

body.nexus-platform-page.admin-page .table {
  --bs-table-color: #14091d;
  --bs-table-bg: #ffffff;
  --bs-table-border-color: rgba(96, 18, 125, .14);
  --bs-table-hover-color: #14091d;
  --bs-table-hover-bg: rgba(215, 56, 152, .06);
  color: #14091d !important;
}

body.nexus-platform-page.admin-page .table thead th {
  background: rgba(96, 18, 125, .07);
}

body.nexus-platform-page.admin-page .admin-menu a {
  color: #ffffff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
}

body.nexus-platform-page.admin-page .badge-soft {
  color: #60127d !important;
  background: rgba(215, 56, 152, .12);
}

body.nexus-platform-page.admin-page .attendance-scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

body.nexus-platform-page.admin-page .attendance-camera-box {
  display: grid;
  gap: 14px;
  margin: 8px 0 6px;
  padding: 16px;
  border: 1px solid rgba(96, 18, 125, .13);
  border-radius: 22px;
  background: rgba(251, 247, 253, .82);
}

body.nexus-platform-page.admin-page .attendance-camera-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 0, 13, .88), rgba(96, 18, 125, .72)),
    url('../images/background-purple.png') center / cover no-repeat;
}

body.nexus-platform-page.admin-page .attendance-camera-preview video {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

body.nexus-platform-page.admin-page .attendance-camera-frame {
  position: absolute;
  inset: 50%;
  width: min(210px, 62%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255, 255, 255, .88);
  border-radius: 22px;
  box-shadow:
    0 0 0 999px rgba(8, 0, 13, .32),
    0 0 30px rgba(215, 56, 152, .42);
  pointer-events: none;
}

body.nexus-platform-page.admin-page .attendance-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.nexus-platform-page.admin-page .attendance-session-list {
  display: grid;
  gap: 12px;
}

body.nexus-platform-page.admin-page .attendance-session-list div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 18, 125, .12);
  border-radius: 14px;
  background: rgba(251, 247, 253, .84);
}

body.nexus-platform-page.admin-page .attendance-session-list span {
  color: #65586d;
  font-size: 14px;
  font-weight: 700;
}

body.nexus-platform-page.admin-page .attendance-filter-card {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(130px, 1fr)) auto;
  gap: 16px;
  align-items: end;
}

body.nexus-platform-page.admin-page .admin-attendance-page .attendance-filter-card,
body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card {
  color: #ffffff !important;
  background: rgba(8, 0, 13, .84) !important;
  border-color: rgba(255, 255, 255, .15) !important;
  box-shadow: 0 28px 90px rgba(8, 0, 13, .38) !important;
}

body.nexus-platform-page.admin-page .admin-attendance-page .attendance-filter-card label,
body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card h2,
body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card .table th,
body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card .table td {
  color: #ffffff !important;
}

body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card .table {
  --bs-table-color: #ffffff;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255, 255, 255, .14);
  --bs-table-hover-color: #ffffff;
  --bs-table-hover-bg: rgba(255, 255, 255, .06);
  color: #ffffff !important;
}

body.nexus-platform-page.admin-page .admin-attendance-page .attendance-table-card .table thead th {
  background: rgba(255, 255, 255, .08);
}

body.nexus-platform-page.admin-page .attendance-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.nexus-platform-page.admin-page .attendance-table-card h2 {
  margin-bottom: 18px;
}

body.nexus-platform-page .project-ai-box {
  display: grid;
  gap: 14px;
}

body.nexus-platform-page .project-ai-answer {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(96, 18, 125, .14);
  border-radius: 18px;
  color: var(--platform-ink);
  background: rgba(251, 247, 253, .88);
  white-space: pre-wrap;
  line-height: 1.7;
}

body.nexus-platform-page .project-member-zone p {
  margin-bottom: 18px;
}

/* Clear dashboard navigation for member/admin/board accounts. */
body.nexus-platform-page .dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.nexus-platform-page .dashboard-action-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 20px;
  border: 1px solid rgba(96, 18, 125, .14);
  border-radius: 20px;
  color: var(--platform-ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 20px 60px rgba(31, 4, 47, .10);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.nexus-platform-page .dashboard-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 56, 152, .32);
  box-shadow: 0 28px 80px rgba(31, 4, 47, .16);
}

body.nexus-platform-page .dashboard-action-card span {
  color: var(--platform-purple-hot);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
}

body.nexus-platform-page .dashboard-action-card strong {
  color: var(--platform-ink);
  font-size: 1.08rem;
  font-weight: 950;
}

body.nexus-platform-page .dashboard-action-card small {
  color: var(--platform-muted);
  line-height: 1.55;
}

body.nexus-platform-page.admin-page .dashboard-action-card {
  background: rgba(255,255,255,.94);
}

@media (max-width: 1100px) {
  body.nexus-platform-page .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.nexus-platform-page .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Member CV preview. */
body.nexus-platform-page .cv-preview-page {
  background: linear-gradient(180deg, #ffffff, #fbf7fd) !important;
}

body.nexus-platform-page .cv-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 22px;
}

body.nexus-platform-page .cv-sheet {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: 980px;
  min-height: 1180px;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(31, 4, 47, .16);
}

body.nexus-platform-page .cv-sheet aside {
  padding: 42px 34px;
  color: rgba(255,255,255,.82);
  background: linear-gradient(180deg, #60127d, #1b0625);
}

body.nexus-platform-page .cv-sheet aside img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 34px;
  border: 5px solid rgba(255,255,255,.32);
  border-radius: 50%;
  object-fit: cover;
}

body.nexus-platform-page .cv-sheet aside h2,
body.nexus-platform-page .cv-sheet main h2 {
  margin: 38px 0 16px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

body.nexus-platform-page .cv-sheet aside h2 {
  color: #ffffff;
}

body.nexus-platform-page .cv-sheet aside p {
  color: rgba(255,255,255,.78) !important;
  line-height: 1.75;
}

body.nexus-platform-page .cv-sheet aside span {
  display: inline-flex;
  margin: 0 6px 8px 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  font-weight: 800;
}

body.nexus-platform-page .cv-sheet main {
  padding: 58px 54px;
}

body.nexus-platform-page .cv-sheet main h1 {
  margin: 0;
  color: #211228;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  letter-spacing: .04em;
}

body.nexus-platform-page .cv-sheet main h3 {
  margin: 12px 0 60px;
  color: #60127d;
  font-size: 1.25rem;
  letter-spacing: .42em;
  text-transform: uppercase;
}

body.nexus-platform-page .cv-sheet main h2 {
  color: #211228;
}

body.nexus-platform-page .cv-sheet main h2::after {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-top: 14px;
  background: linear-gradient(90deg, #60127d, #d73898);
}

body.nexus-platform-page .cv-sheet main p {
  color: #5f5464 !important;
  line-height: 1.75;
}

@media (max-width: 860px) {
  body.nexus-platform-page .cv-sheet {
    grid-template-columns: 1fr;
  }
}

/* Clean photo/video gallery. */
body.gallery-lock {
  overflow: hidden;
}

body.nexus-platform-page .nexus-gallery-page {
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,247,253,.96)),
    url('../../index_nexus/assets/images/background-purple.png') center / cover fixed no-repeat !important;
}

body.nexus-platform-page .gallery-section-heading {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

body.nexus-platform-page .gallery-section-heading h2 {
  margin: 0;
  color: var(--platform-purple);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

body.nexus-platform-page .nexus-photo-grid {
  column-count: 4;
  column-gap: 10px;
}

body.nexus-platform-page .nexus-photo-tile {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
  border: 5px solid var(--platform-purple);
  border-radius: 0;
  background: #08000d;
  cursor: zoom-in;
}

body.nexus-platform-page .nexus-photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

body.nexus-platform-page .nexus-photo-tile:hover img {
  opacity: .88;
  transform: scale(1.035);
}

body.nexus-platform-page .gallery-video-heading {
  margin-top: 86px;
}

body.nexus-platform-page .nexus-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
}

body.nexus-platform-page .nexus-video-card {
  display: grid;
  gap: 22px;
  min-height: 430px;
  padding: 14px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(96, 18, 125, .96), rgba(215, 56, 152, .82)),
    #60127d;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(48, 33, 18, .18);
}

body.nexus-platform-page .nexus-video-card video,
body.nexus-platform-page .nexus-video-card .video-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 235px;
  overflow: hidden;
  background: #08000d;
}

body.nexus-platform-page .nexus-video-card img,
body.nexus-platform-page .nexus-video-card video {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

body.nexus-platform-page .nexus-video-card .fa-youtube {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ff1f1f;
  font-size: 32px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.4));
}

body.nexus-platform-page .nexus-video-card h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.5;
}

body.nexus-platform-page .nexus-video-card p {
  margin: 0;
  color: rgba(255,255,255,.86) !important;
  font-weight: 800;
}

body.nexus-platform-page .gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 84px;
  background: rgba(0, 0, 0, .82);
}

body.nexus-platform-page .gallery-lightbox.open {
  display: flex;
}

body.nexus-platform-page .gallery-lightbox figure {
  position: relative;
  max-width: min(1240px, 88vw);
  max-height: 88vh;
  margin: 0;
}

body.nexus-platform-page .gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

body.nexus-platform-page .gallery-lightbox span {
  position: fixed;
  top: 28px;
  left: 36px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

body.nexus-platform-page .lightbox-close,
body.nexus-platform-page .lightbox-nav {
  position: fixed;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

body.nexus-platform-page .lightbox-close {
  top: 24px;
  right: 28px;
}

body.nexus-platform-page .lightbox-prev {
  left: 28px;
}

body.nexus-platform-page .lightbox-next {
  right: 28px;
}

@media (max-width: 1100px) {
  body.nexus-platform-page .nexus-photo-grid {
    column-count: 3;
  }

  body.nexus-platform-page .nexus-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.nexus-platform-page .nexus-photo-grid,
  body.nexus-platform-page .nexus-video-grid {
    column-count: 2;
    grid-template-columns: 1fr;
  }

  body.nexus-platform-page .gallery-lightbox {
    padding: 64px 18px;
  }

  body.nexus-platform-page .lightbox-prev {
    left: 12px;
  }

  body.nexus-platform-page .lightbox-next {
    right: 12px;
  }
}

@media (max-width: 1100px) {
  body.nexus-platform-page.admin-page .attendance-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.nexus-platform-page.admin-page .attendance-filter-card,
  body.nexus-platform-page.admin-page .attendance-scan-row {
    grid-template-columns: 1fr;
  }
}

body.nexus-platform-page .news-detail-content h2 {
  margin: 0;
  color: #1a1020;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1.08;
}

body.nexus-platform-page .news-detail-text {
  max-width: 920px;
}

body.nexus-platform-page .news-detail-text p {
  color: #5f5464 !important;
  font-size: 18px;
  line-height: 1.85;
}

/* Board member portfolio pages. */
body.nexus-platform-page .member-portfolio-hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 210px max(28px, calc((100% - var(--platform-container)) / 2)) 90px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 0, 13, .92), rgba(96, 18, 125, .62)),
    radial-gradient(circle at 84% 18%, rgba(215, 56, 152, .28), transparent 34%),
    url('../images/background-purple.png') center / cover no-repeat;
}

body.nexus-platform-page .member-portfolio-inner {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: center;
}

body.nexus-platform-page .member-portrait {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 32px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

body.nexus-platform-page .member-portrait img {
  width: 100%;
  height: min(560px, 70vh);
  object-fit: cover;
  object-position: center top;
}

body.nexus-platform-page .member-portfolio-copy span,
body.nexus-platform-page .member-portfolio-body .section-label {
  color: var(--platform-purple-hot);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.nexus-platform-page .member-portfolio-copy h1 {
  max-width: 850px;
  margin: 14px 0 24px;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 950;
  line-height: .95;
}

body.nexus-platform-page .member-portfolio-copy p {
  max-width: 760px;
  color: rgba(255,255,255,.78) !important;
  font-size: 19px;
  line-height: 1.8;
}

body.nexus-platform-page .member-portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

body.nexus-platform-page .member-portfolio-actions a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255,255,255,.08);
  font-weight: 850;
}

body.nexus-platform-page .member-portfolio-body {
  background: #ffffff !important;
}

body.nexus-platform-page .member-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

body.nexus-platform-page .member-wide-card {
  grid-column: 1 / -1;
}

body.nexus-platform-page .member-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body.nexus-platform-page .member-skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--platform-purple);
  background: rgba(215, 56, 152, .10);
  font-weight: 850;
}

body.nexus-platform-page .member-contact-panel {
  display: grid;
  gap: 14px;
}

body.nexus-platform-page .member-contact-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--platform-purple);
  background: rgba(215, 56, 152, .10);
  font-weight: 850;
}

/* Rich project detail pages. */
body.nexus-platform-page .project-detail-hero {
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 210px max(28px, calc((100% - var(--platform-container)) / 2)) 90px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 0, 13, .94), rgba(96, 18, 125, .58)),
    radial-gradient(circle at 82% 22%, rgba(215, 56, 152, .32), transparent 34%),
    url('../images/background.png') center / cover no-repeat;
}

body.nexus-platform-page .project-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 70px;
  align-items: center;
}

body.nexus-platform-page .project-detail-copy span {
  color: var(--platform-purple-hot);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.nexus-platform-page .project-detail-copy h1 {
  max-width: 850px;
  margin: 14px 0 24px;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 950;
  line-height: .95;
}

body.nexus-platform-page .project-detail-copy p {
  max-width: 760px;
  color: rgba(255,255,255,.78) !important;
  font-size: 19px;
  line-height: 1.8;
}

body.nexus-platform-page .project-detail-visual {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  box-shadow: 0 32px 100px rgba(0,0,0,.32);
}

body.nexus-platform-page .project-detail-visual img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
}

body.nexus-platform-page .project-detail-page {
  background: #ffffff !important;
}

body.nexus-platform-page .project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

body.nexus-platform-page .project-wide-card {
  grid-column: 1 / -1;
}

body.nexus-platform-page .project-detail-list,
body.nexus-platform-page .project-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
}

body.nexus-platform-page .project-detail-list li,
body.nexus-platform-page .project-steps li {
  color: #5f5464;
  line-height: 1.7;
}

body.nexus-platform-page .project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

body.nexus-platform-page .project-tech-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--platform-purple);
  background: rgba(215, 56, 152, .10);
  font-weight: 850;
}

body.nexus-platform-page .project-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

body.nexus-platform-page .project-gallery-strip img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 18px;
}

body.nexus-platform-page .project-code {
  max-height: 420px;
  margin: 18px 0 0;
  padding: 22px;
  overflow: auto;
  border-radius: 18px;
  color: #e8e6ff;
  background: #08000d;
  line-height: 1.65;
}

@media (max-width: 900px) {
  body.nexus-platform-page .member-portfolio-inner,
  body.nexus-platform-page .member-portfolio-grid,
  body.nexus-platform-page .project-detail-inner,
  body.nexus-platform-page .project-detail-grid,
  body.nexus-platform-page .project-gallery-strip {
    grid-template-columns: 1fr;
  }

  body.nexus-platform-page .member-portfolio-hero,
  body.nexus-platform-page .project-detail-hero {
    padding-top: 140px;
  }
}

/* Final readability and hosting-ready admin/member forms. */
body.nexus-platform-page .form-card,
body.nexus-platform-page .panel-card {
  color: #171022 !important;
}

body.nexus-platform-page .form-card label,
body.nexus-platform-page .panel-card label,
body.nexus-platform-page .stack-form label,
body.nexus-platform-page .form-card p,
body.nexus-platform-page .panel-card p,
body.nexus-platform-page .table,
body.nexus-platform-page .table td,
body.nexus-platform-page .table th {
  color: #171022 !important;
}

body.nexus-platform-page input.form-control,
body.nexus-platform-page textarea.form-control,
body.nexus-platform-page select.form-select,
body.nexus-platform-page .chatbot-form input {
  color: #171022 !important;
  background: #ffffff !important;
  border-color: #d9c7e7 !important;
  caret-color: #171022;
}

body.nexus-platform-page input.form-control::placeholder,
body.nexus-platform-page textarea.form-control::placeholder,
body.nexus-platform-page .chatbot-form input::placeholder {
  color: #6b6070 !important;
  opacity: 1 !important;
}

body.nexus-platform-page select.form-select option {
  color: #171022;
  background: #ffffff;
}

body.nexus-platform-page input[type="file"].form-control {
  padding: 12px 14px;
}

body.nexus-platform-page input[type="file"].form-control::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #8d23bd;
  padding: 8px 14px;
  font-weight: 800;
}

body.nexus-platform-page .media-thumb {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

body.nexus-platform-page .certificate-sheet {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(141, 35, 189, .12), transparent 28%),
    linear-gradient(315deg, rgba(215, 56, 152, .14), transparent 28%),
    #ffffff !important;
  border: 1px solid #eadff3;
}

body.nexus-platform-page .certificate-sheet::before,
body.nexus-platform-page .certificate-sheet::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(141, 35, 189, .18);
  transform: rotate(18deg);
}

body.nexus-platform-page .certificate-sheet::before {
  top: -110px;
  right: -70px;
}

body.nexus-platform-page .certificate-sheet::after {
  left: -110px;
  bottom: -120px;
}

body.nexus-platform-page .certificate-frame {
  position: relative;
  z-index: 1;
  border: 2px solid rgba(141, 35, 189, .26);
  background: rgba(255, 255, 255, .82);
}

body.nexus-platform-page .certificate-frame h1 {
  color: #250038 !important;
}

body.nexus-platform-page .certificate-frame h2 {
  color: #8d23bd !important;
}

body.nexus-platform-page .signature-line {
  display: inline-block;
  min-width: 220px;
  padding-top: 16px;
  border-top: 2px solid #250038;
  color: #250038 !important;
  font-weight: 900;
}

@media print {
  body.nexus-platform-page .certificate-sheet::before,
  body.nexus-platform-page .certificate-sheet::after {
    display: none;
  }
}

