/* ==========================================================================
   NU Result Portal - shared stylesheet
   Colours are taken from the reference design. Change them once, here.
   All selectors use the .nu- prefix so they never clash with Bootstrap /
   Tailwind, which are still loaded for the marksheet markup.
   ========================================================================== */
:root {
  --nu-bg: #f0f8ff;
  --nu-nav: #4494d0;
  --nu-nav-dark: #2f7fb8;
  --nu-nav-deep: #1f5f8f;
  --nu-green: #198754;
  --nu-green-dark: #146c43;
  --nu-link: #0d6efd;
  --nu-border: #9ec5fe;
  --nu-line: #dbe7f3;
  --nu-input: #eef2f6;
  --nu-text: #1f2933;
  --nu-body: #33404c;
  --nu-muted: #5b6670;
  --nu-soft: #eaf4fc;
  --nu-card: #ffffff;
  --nu-footer: #16466b;
  --nu-footer-dark: #0f3350;
  --nu-danger: #b42318;
  --nu-radius: 20px;
  --nu-shadow: 0 10px 30px rgba(68, 148, 208, .13);
  --nu-font: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

.nu-body {
  margin: 0;
  background: var(--nu-bg);
  color: var(--nu-text);
  font-family: var(--nu-font);
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.nu-body a { text-decoration: none; }
.nu-body *, .nu-body *::before, .nu-body *::after { box-sizing: border-box; }
.nu-hidden { display: none !important; }

/* ---------- Header ---------- */
#app-header { min-height: 292px; }
.nu-brand { text-align: center; padding: 0 16px 20px; }
.nu-logo {
  display: inline-block; width: 120px; height: 120px; border-radius: 50%;
  background: #fff; border: 4px solid #c9dcd8; overflow: hidden;
  box-shadow: 0 8px 22px rgba(30, 80, 120, .18);
}
.nu-logo img { width: 100%; height: 100%; display: block; }
.nu-site-title {
  display: block; margin: 18px 0 2px; color: #1b1b1b;
  font-size: 2.2rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.15;
}
.nu-site-sub { margin: 4px 0 0; color: #111; font-weight: 600; font-size: 1.02rem; }

.nu-nav { background: var(--nu-nav); }
.nu-nav-inner { max-width: 1240px; margin: 0 auto; }
.nu-nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.nu-nav-list a {
  display: block; color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 18px 22px; border-bottom: 4px solid transparent; transition: background .15s;
}
.nu-nav-list a:hover { background: rgba(255, 255, 255, .15); }
.nu-nav-list a[aria-current="page"] { background: var(--nu-nav-dark); border-bottom-color: #fff; }
.nu-nav-toggle {
  display: none; width: 100%; background: transparent; border: 0; color: #fff;
  font: 700 1rem var(--nu-font); padding: 14px 18px; cursor: pointer; text-align: left;
  align-items: center; justify-content: space-between;
}

/* ---------- Layout ---------- */
.nu-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 26px 16px 8px; flex: 1 0 auto; }
.nu-shell { background: var(--nu-card); border-radius: 28px; padding: 34px; box-shadow: var(--nu-shadow); }

.nu-tool-head { text-align: center; margin-bottom: 22px; }
.nu-tool-head h1 {
  margin: 0; color: #5f6b76; font-size: 1.55rem; font-weight: 700; line-height: 1.3;
  display: inline-flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.nu-tool-head h1 svg { width: 26px; height: 26px; flex: none; color: #4a5560; }
.nu-tool-head p { margin: 8px 0 0; color: var(--nu-muted); font-size: .95rem; }

/* ---------- Form ---------- */
.nu-tool {
  background: #fff; border: 1px solid #edf1f5; border-radius: var(--nu-radius);
  box-shadow: 0 2px 16px rgba(20, 50, 80, .07); padding: 28px;
}
.nu-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 20px; }
.nu-f { grid-column: span 6; min-width: 0; }
@media (min-width: 720px) {
  .nu-f-prog, .nu-f-course, .nu-f-year, .nu-f-exam { grid-column: span 2; }
  .nu-f-roll, .nu-f-reg { grid-column: span 3; }
  .nu-grid.has-course .nu-f-exam,
  .nu-grid.has-course .nu-f-roll,
  .nu-grid.has-course .nu-f-reg { grid-column: span 2; }
}
.nu-label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .95rem; color: #3b4350; }
.nu-input {
  display: block; width: 100%; height: 46px; padding: 0 14px; font: 400 .98rem var(--nu-font);
  color: #2b3540; background: var(--nu-input); border: 1px solid var(--nu-border);
  border-radius: 10px; outline: 0; appearance: auto;
}
.nu-input::placeholder { color: #7b8794; }
.nu-input:focus { border-color: var(--nu-link); box-shadow: 0 0 0 4px rgba(13, 110, 253, .15); background: #fff; }
select.nu-input { cursor: pointer; }

.nu-notice {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start;
  background: #fff8e6; border-left: 4px solid #f0a500; border-radius: 0 12px 12px 0; padding: 14px 16px;
}
.nu-notice svg { width: 20px; height: 20px; color: #b77900; flex: none; margin-top: 2px; }
.nu-notice strong { display: block; color: #6b4600; font-size: .92rem; }
.nu-notice span { color: #7a5600; font-size: .9rem; }

.nu-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.nu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 700 1rem var(--nu-font); border-radius: 999px; padding: 13px 34px; border: 2px solid transparent;
  transition: background .15s, transform .1s; line-height: 1.2;
}
.nu-btn svg { width: 20px; height: 20px; }
.nu-btn:active { transform: translateY(1px); }
.nu-btn[disabled] { opacity: .65; cursor: wait; }
.nu-btn-green { background: var(--nu-green); color: #fff; min-width: 200px; }
.nu-btn-green:hover { background: var(--nu-green-dark); }
.nu-btn-blue { background: var(--nu-nav); color: #fff; padding: 10px 20px; font-size: .88rem; }
.nu-btn-blue:hover { background: var(--nu-nav-dark); }
.nu-btn-ghost { background: #fff; color: #44505c; border-color: var(--nu-border); }
.nu-btn-ghost:hover { background: var(--nu-soft); }
@media (max-width: 520px) { .nu-btn-green, .nu-btn-ghost { width: 100%; } }

/* ---------- Loader / error / result ---------- */
.nu-loader { margin-top: 22px; text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--nu-line); border-radius: 16px; }
.nu-spin { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--nu-nav); border-top-color: transparent; animation: nu-spin .8s linear infinite; }
@keyframes nu-spin { to { transform: rotate(360deg); } }
.nu-loader p { margin: 12px 0 0; color: #3b4350; font-weight: 600; font-size: .95rem; }
.nu-error { margin-top: 22px; background: #fef3f2; border-left: 4px solid var(--nu-danger); color: var(--nu-danger); border-radius: 0 12px 12px 0; padding: 14px 16px; font-weight: 600; font-size: .95rem; }

.nu-result { margin-top: 24px; background: #fff; border: 1px solid var(--nu-line); border-radius: var(--nu-radius); padding: 22px; box-shadow: 0 2px 16px rgba(20, 50, 80, .07); }
.nu-result-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--nu-line); }
.nu-result-top h2 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #1c4f7c; display: flex; align-items: center; gap: 10px; }
.nu-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--nu-green); display: inline-block; }
.nu-result-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--nu-line); display: flex; justify-content: center; }

/* Marksheet markup comes from the Worker (Bootstrap). Only colours are touched here. */
.result-box { background: #ffffff; }
.result-box .card {
  border: 1px solid #cfe0f1 !important; border-radius: 12px !important; padding: 1.5rem !important;
  background: #ffffff !important; box-shadow: 0 1px 3px rgba(30, 80, 120, .06);
}
.result-box table { width: 100% !important; border-collapse: collapse !important; margin-top: 1rem !important; margin-bottom: 1rem !important; }
.result-box th, .result-box td { border: 1px solid #cfe0f1 !important; padding: 10px 12px !important; font-size: .9rem !important; }
.result-box th { background-color: #eaf4fc !important; color: #1c4f7c; font-weight: 700 !important; text-align: left !important; }

/* ---------- Article (content below the form) ---------- */
.nu-article { background: #fff; border-radius: 24px; padding: 40px 34px; margin-top: 26px; box-shadow: var(--nu-shadow); }
.nu-prose { max-width: 860px; margin: 0 auto; color: var(--nu-body); font-size: 1.02rem; line-height: 1.8; }
.nu-prose h2 {
  margin: 2.2rem 0 .8rem; padding-left: 14px; border-left: 5px solid var(--nu-nav);
  color: #1c4f7c; font-size: 1.5rem; font-weight: 800; line-height: 1.3;
}
.nu-prose h2:first-child { margin-top: 0; }
.nu-prose h3 { margin: 0 0 .35rem; color: #1c4f7c; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.nu-prose p { margin: 0 0 1rem; }
.nu-prose a { color: var(--nu-link); text-decoration: underline; text-underline-offset: 3px; }
.nu-prose strong { color: #1f2933; }
.nu-prose ul, .nu-prose ol { margin: 0 0 1rem; }

/* step cards */
.nu-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.2rem 0 1.4rem; }
.nu-step { background: var(--nu-soft); border: 1px solid #d3e6f6; border-radius: 16px; padding: 18px 18px 8px; }
.nu-step p { font-size: .96rem; line-height: 1.65; margin-bottom: .8rem; }
.nu-step-no {
  display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--nu-nav); color: #fff; font-weight: 800; margin-bottom: 10px;
}

/* numbered list with big numbers */
.nu-ol { list-style: none; padding: 0; counter-reset: nuol; }
.nu-ol li { counter-increment: nuol; position: relative; padding: 4px 0 14px 54px; }
.nu-ol li::before {
  content: counter(nuol); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 12px;
  background: var(--nu-nav); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* timeline */
.nu-timeline { list-style: none; padding: 0 0 0 6px; margin: 1.2rem 0 1.4rem; border-left: 3px solid #bcdaf0; }
.nu-timeline li { position: relative; padding: 0 0 18px 26px; }
.nu-timeline li::before {
  content: ''; position: absolute; left: -11px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 4px solid var(--nu-nav);
}
.nu-timeline li:last-child { padding-bottom: 0; }

/* tables */
.nu-table-wrap { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--nu-line); border-radius: 14px; }
.nu-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.nu-table th { background: var(--nu-nav); color: #fff; text-align: left; padding: 12px 14px; font-weight: 700; }
.nu-table td { padding: 11px 14px; border-top: 1px solid var(--nu-line); vertical-align: top; }
.nu-table tbody tr:nth-child(even) td { background: #f6fbff; }

/* chips */
.nu-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 1rem 0 1.4rem; }
.nu-chip { background: var(--nu-soft); border: 1px solid #d3e6f6; border-radius: 12px; padding: 10px 12px; text-align: center; line-height: 1.35; }
.nu-chip b { display: block; font-size: 1.15rem; color: #1c4f7c; }
.nu-chip span { font-size: .85rem; color: var(--nu-muted); }

/* cards */
.nu-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.2rem 0 1.4rem; }
.nu-card { border: 1px solid var(--nu-line); border-top: 5px solid var(--nu-nav); border-radius: 16px; padding: 18px; background: #fff; }
.nu-card ul { margin: 8px 0 0; padding-left: 18px; font-size: .94rem; line-height: 1.6; }
.nu-card li { margin-bottom: 4px; }
.nu-card:nth-child(2) { border-top-color: var(--nu-green); }
.nu-card:nth-child(3) { border-top-color: #f0a500; }
.nu-link-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.nu-prose a.nu-card { display: block; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.nu-prose a.nu-card h3 { margin-bottom: .25rem; }
.nu-prose a.nu-card:hover { box-shadow: 0 8px 22px rgba(68, 148, 208, .2); transform: translateY(-2px); }
.nu-link-cards .nu-card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--nu-muted); }

/* callouts and checklist */
.nu-callout { border-radius: 14px; padding: 16px 18px; margin: 1.2rem 0 1.4rem; background: var(--nu-soft); border-left: 5px solid var(--nu-nav); font-size: .98rem; line-height: 1.7; }
.nu-callout strong { display: block; margin-bottom: 2px; color: #1c4f7c; }
.nu-callout-warn { background: #fff8e6; border-left-color: #f0a500; }
.nu-callout-warn strong { color: #7a5600; }
.nu-check { list-style: none; padding: 0; }
.nu-check li { position: relative; padding: 0 0 10px 32px; }
.nu-check li::before {
  content: '\2713'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--nu-green); color: #fff; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.nu-dl { margin: 1rem 0 1.4rem; }
.nu-dl dt { font-weight: 800; color: #1c4f7c; margin-top: 12px; }
.nu-dl dd { margin: 2px 0 0; }

/* FAQ */
.nu-faq { border: 1px solid var(--nu-line); border-radius: 14px; margin: 0 0 12px; background: #fff; overflow: hidden; }
.nu-faq summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; font-weight: 700; color: #1c4f7c; position: relative; line-height: 1.45; }
.nu-faq summary::-webkit-details-marker { display: none; }
.nu-faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--nu-nav); font-weight: 400; }
.nu-faq[open] summary { background: var(--nu-soft); }
.nu-faq[open] summary::after { content: '\2212'; }
.nu-faq p { margin: 0; padding: 14px 18px 4px; }
.nu-faq p:last-child { padding-bottom: 16px; }

.nu-fine { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed #c9d9e6; color: var(--nu-muted); font-size: .88rem; line-height: 1.65; }

/* ---------- Footer ---------- */
.nu-footer { background: var(--nu-footer); color: #cfe0ee; margin-top: 48px; }
.nu-footer-grid { max-width: 1120px; margin: 0 auto; padding: 44px 16px 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.nu-footer h3 { margin: 0 0 12px; color: #fff; font-size: 1.05rem; font-weight: 700; }
.nu-footer p { margin: 0; font-size: .92rem; line-height: 1.7; color: #b7cde0; }
.nu-footer ul { list-style: none; margin: 0; padding: 0; }
.nu-footer li { margin-bottom: 8px; }
.nu-footer a { color: #cfe0ee; font-size: .93rem; }
.nu-footer a:hover { color: #fff; text-decoration: underline; }
.nu-footer-bottom { background: var(--nu-footer-dark); text-align: center; padding: 15px 16px; font-size: .82rem; color: #9fb9ce; }
.nu-footer-bottom p { margin: 0; color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nu-cards { grid-template-columns: 1fr; }
  .nu-footer-grid { grid-template-columns: 1fr 1fr; }
  .nu-footer-grid > div:first-child { grid-column: span 2; }
}
@media (max-width: 820px) {
  #app-header { min-height: 244px; }
  .nu-nav-toggle { display: flex; }
  .nu-nav-list { display: none; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, .25); }
  .nu-nav.is-open .nu-nav-list { display: flex; }
  .nu-nav-list a { padding: 14px 20px; border-bottom: 0; border-left: 4px solid transparent; }
  .nu-nav-list a[aria-current="page"] { border-left-color: #fff; }
}
@media (max-width: 640px) {
  .nu-logo { width: 92px; height: 92px; }
  .nu-site-title { font-size: 1.7rem; margin-top: 14px; }
  .nu-site-sub { font-size: .95rem; }
  .nu-main { padding: 16px 10px 4px; }
  .nu-shell { padding: 18px 12px; border-radius: 22px; }
  .nu-tool { padding: 18px 14px; }
  .nu-tool-head h1 { font-size: 1.25rem; }
  .nu-article { padding: 26px 16px; border-radius: 20px; }
  .nu-prose { font-size: 1rem; line-height: 1.75; }
  .nu-prose h2 { font-size: 1.3rem; }
  .nu-steps { grid-template-columns: 1fr; }
  .nu-result { padding: 14px 10px; }
  .nu-footer-grid { grid-template-columns: 1fr; padding-top: 32px; }
  .nu-footer-grid > div:first-child { grid-column: auto; }
}
