/* ============================================================
   UNO Office Freelancing — student portal stylesheet
   No external dependency: everything the UI needs lives here.
   ============================================================ */

:root {
  --green: #0f9d58;
  --green-dark: #0b7c45;
  --green-light: #e6f6ed;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6f8;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .10);

  --blue: #2563eb;
  --amber: #d97706;
  --red: #dc2626;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Noto Sans Bengali", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 600; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }

/* ---------------------------------------------------------- layout */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background:
    radial-gradient(520px 300px at 0% 0%, rgba(212, 175, 55, .16), transparent 62%),
    linear-gradient(185deg, #0f4d30 0%, #0b3a25 55%, #07281a 100%);
  color: #d7e7de;
  border-right: 1px solid rgba(212, 175, 55, .28);
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform .2s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, .45) transparent;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, .4); border-radius: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1.05rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  position: relative;
}
.sidebar .brand::after {
  content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: -1px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}
.brand-mark {
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  padding: 4px; object-fit: contain;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.brand-text { font-weight: 700; font-size: .96rem; line-height: 1.2; }
.brand-text small {
  display: block; font-weight: 400; font-size: .71rem;
  letter-spacing: .03em; margin-top: .1rem;
}
.sidebar .brand-text { color: #fff; }
.sidebar .brand-text small { color: var(--gold); }
.auth-card .brand-text { color: var(--ink); }
.auth-card .brand-text small { color: var(--muted); }

.nav-group-label {
  padding: 1.15rem 1.15rem .4rem;
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, .85);
  font-weight: 700;
}

.nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem 1.1rem;
  margin: .12rem .55rem;
  border-radius: 9px;
  color: #cfe2d8;
  font-size: .92rem;
  position: relative;
  transition: background .15s, color .15s, transform .15s;
}
.nav a:hover {
  background: rgba(255, 255, 255, .09);
  color: #fff;
  text-decoration: none;
  transform: translateX(3px);
}
.nav a.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, .22), rgba(255, 255, 255, .06));
  color: #fff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .35);
}
.nav a.active::before {
  content: ""; position: absolute; left: -.55rem; top: 20%; bottom: 20%;
  width: 4px; border-radius: 0 4px 4px 0; background: var(--gold);
}
.nav a .ico {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: grid; place-items: center;
  border-radius: 7px; font-size: .92rem;
  background: rgba(255, 255, 255, .10);
}
.nav a:hover .ico, .nav a.active .ico { background: rgba(212, 175, 55, .28); }
.nav a .badge {
  margin-left: auto;
  background: var(--gold); color: #2b2100; font-weight: 700;
}
.nav-sub a {
  padding-left: 1.15rem; font-size: .87rem; color: #b9d2c5;
}
.nav-sub a::after {
  content: ""; position: absolute; left: .35rem; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(212, 175, 55, .6); transform: translateY(-50%);
}
.nav a.logout { color: #ffc9c2; }
.nav a.logout:hover { background: rgba(220, 60, 40, .22); color: #fff; }
.nav a.logout .ico { background: rgba(220, 60, 40, .25); }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: linear-gradient(90deg, var(--green) 0%, #16b268 100%);
  color: #fff;
  padding: .7rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar .menu-btn {
  display: none;
  background: rgba(255, 255, 255, .18);
  border: 0; color: #fff;
  border-radius: 7px;
  padding: .35rem .6rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.topbar .spacer { margin-left: auto; }
.topbar .who { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.topbar .who .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  display: grid; place-items: center; font-weight: 600;
}
.topbar a { color: #fff; }

.page-head {
  background: linear-gradient(90deg, var(--green) 0%, #19a862 55%, #21c072 100%);
  color: #fff;
  padding: 1.4rem 1.6rem 2.4rem;
}
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: .2rem 0 0; opacity: .9; font-size: .9rem; }

.content { padding: 0 1.4rem 3rem; margin-top: -1.4rem; flex: 1; }
.content.flat { margin-top: 1.2rem; }

/* ---------------------------------------------------------- cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
}
.card-head {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: .6rem;
  flex-wrap: wrap;
}
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 1.1rem; }
.card-body.tight { padding: .5rem 0; }

/* ---------------------------------------------------------- stat tiles */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.stat {
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, .04);
}
.stat .label {
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .07em;
  font-weight: 600;
  opacity: .75;
}
.stat .value { font-size: 1.65rem; font-weight: 700; line-height: 1.15; }
.stat .ico { font-size: 1.9rem; opacity: .35; }
.stat.green { background: #e3f4ea; color: #14532d; }
.stat.blue { background: #e3edfd; color: #1e3a8a; }
.stat.cyan { background: #e0f2f6; color: #134e4a; }
.stat.pink { background: #fde8ec; color: #881337; }
.stat.amber { background: #fdf0dc; color: #7c2d12; }
.stat.violet { background: #ede9fe; color: #4c1d95; }
.stat a { color: inherit; }
/* tiles that open a page of their own */
a.stat { text-decoration: none; transition: transform .14s, box-shadow .14s; }
a.stat:hover {
  transform: translateY(-2px); text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.data th {
  text-align: left;
  background: #f9fafb;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: .7rem .9rem;
  border-bottom: 1px solid #f1f3f5;
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfb; }
.empty {
  padding: 2.2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.empty .big { font-size: 2rem; display: block; margin-bottom: .4rem; opacity: .5; }

/* ---------------------------------------------------------- badges */
.badge {
  display: inline-block;
  padding: .17rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.badge.green { background: #dcfce7; color: #166534; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.blue { background: #dbeafe; color: #1e40af; }
.badge.grey { background: #f1f3f5; color: #4b5563; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink-soft);
  border-color: var(--line);
  font-family: inherit;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: #f9fafb; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warn { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-warn:hover { background: #b45309; color: #fff; }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------------------------------------------------------- forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: .9rem 1.1rem;
}
.form-grid .full { grid-column: 1 / -1; }

.fld { display: flex; flex-direction: column; gap: .3rem; }
.fld > label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.fld .req { color: var(--red); }
.fld .help { font-size: .78rem; color: var(--muted); }
.fld .err { font-size: .78rem; color: var(--red); font-weight: 500; }

.form-control,
input[type=text], input[type=password], input[type=email], input[type=url],
input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { resize: vertical; }
.form-control:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, .14);
}
input[type=file] { padding: .4rem; background: #f9fafb; }
input[type=checkbox] { width: auto; margin-right: .4rem; transform: scale(1.15); }
.fld.check { flex-direction: row; align-items: center; gap: .45rem; }
.fld.check label { font-weight: 500; }

.section-title {
  grid-column: 1 / -1;
  margin: .6rem 0 -.2rem;
  padding-bottom: .35rem;
  border-bottom: 1px dashed var(--line);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--green-dark);
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .6rem;
  align-items: end;
}

/* ---------------------------------------------------------- messages */
.messages { margin-bottom: 1rem; }
.alert {
  padding: .7rem 1rem;
  border-radius: 8px;
  border-left: 4px solid;
  margin-bottom: .6rem;
  font-size: .9rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.alert.success { border-color: var(--green); background: #f0fdf4; color: #14532d; }
.alert.info { border-color: var(--blue); background: #eff6ff; color: #1e3a8a; }
.alert.warning { border-color: var(--amber); background: #fffbeb; color: #78350f; }
.alert.error, .alert.danger { border-color: var(--red); background: #fef2f2; color: #7f1d1d; }

/* ---------------------------------------------------------- auth pages */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(140deg, #0b7c45 0%, #0f9d58 45%, #d9f2e5 45.2%, #f4f6f8 100%);
}
.auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 1.8rem;
}
.auth-card .brand { border: 0; padding: 0 0 1rem; justify-content: center; }
.auth-card h1 { text-align: center; font-size: 1.25rem; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .88rem; margin-bottom: 1.2rem; }
.auth-foot { text-align: center; margin-top: 1rem; font-size: .88rem; color: var(--muted); }

/* ---------------------------------------------------------- misc */
.dl { display: grid; grid-template-columns: 190px 1fr; gap: .55rem 1rem; font-size: .92rem; }
.dl dt { color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; }
@media (max-width: 620px) { .dl { grid-template-columns: 1fr; gap: .1rem 0; }
  .dl dd { margin-bottom: .6rem; } }

.avatar-lg {
  width: 96px; height: 96px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: #f3f4f6;
}
.proof-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.proof-grid figure { margin: 0; }
.proof-grid figcaption { font-size: .8rem; color: var(--muted); margin-bottom: .35rem; font-weight: 600; }

.progress { height: 8px; border-radius: 999px; background: #eef0f2; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--green); }

.pagination { display: flex; gap: .3rem; align-items: center; padding: .9rem 1.1rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .32rem .65rem; border: 1px solid var(--line);
  border-radius: 7px; font-size: .85rem; color: var(--ink-soft); background: #fff;
}
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .info { border: 0; color: var(--muted); margin-left: auto; background: transparent; }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.mono { font-family: "Consolas", "Courier New", monospace; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
/* a second heading inside one card, e.g. "Emergency contact" */
.sub-head {
  margin: 1.4rem 0 .2rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: 1rem; font-weight: 700; color: #14653f;
}
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.inline-form { display: inline; }

.notice {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.1rem;
  border: 1px solid;
  display: flex; gap: .8rem; align-items: flex-start;
}
.notice .ico { font-size: 1.4rem; line-height: 1; }
.notice.pending { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.notice.rejected { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.notice h3 { margin: 0 0 .2rem; font-size: .98rem; }
.notice p { margin: 0; font-size: .88rem; }

/* ---------------------------------------------------------- responsive */
.overlay { display: none; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay {
    display: block; position: fixed; inset: 0;
    background: rgba(17, 24, 39, .45); z-index: 35;
  }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: block; }
  .content { padding: 0 .8rem 2.5rem; }
  .page-head { padding: 1.1rem 1rem 2.2rem; }
}

@media print {
  .sidebar, .topbar, .btn, .pagination, .filters { display: none !important; }
  .main { margin: 0; }
  .content { margin-top: 1rem; }
  .card { box-shadow: none; }
}

/* ============================================================
   PUBLIC APPLICATION PAGES — উপজেলা প্রশাসন, রায়পুর
   White header · fact strip · form + right sidebar
   ============================================================ */
:root {
  --g: #14653f;          /* deep government green */
  --g-dark: #0f4d30;
  --g-soft: #e8f3ed;
  --gold: #c8a53c;
  --pg-bg: #f6f7f8;
  --pg-line: #e2e6e8;
  --pg-ink: #212529;
  --pg-mute: #6c757d;
  --pg-red: #dc3545;
}

.gov-body {
  background: var(--pg-bg);
  color: var(--pg-ink);
  font-family: "Noto Sans Bengali", "Nirmala UI", "SolaimanLipi", "Segoe UI", sans-serif;
  font-size: 15px;
  min-height: 100vh;
}

/* ---------------------------------------------------------- header */
.gov-top {
  background: #fff;
  border-bottom: 3px solid var(--gold);
  padding: .55rem 1.2rem;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}
.gov-top-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem;
}
.gov-seal {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  background: var(--g); padding: 5px; object-fit: contain;
  border: 2px solid var(--gold);
}
.gov-top .titles { flex: 1; text-align: start; line-height: 1.45; min-width: 0; }
.gov-top .titles small {
  display: block; font-size: .74rem; color: var(--pg-mute); font-weight: 600;
}
.gov-top .titles strong { font-size: 1.05rem; color: var(--g); }
.gov-top .btn {
  background: var(--g); border-color: var(--g); color: #fff;
  border-radius: 6px; padding: .45rem .85rem; font-size: .84rem; flex: 0 0 auto;
}
.gov-top .btn:hover { background: var(--g-dark); border-color: var(--g-dark); color: #fff; }

/* ---------------------------------------------------------- page head */
.gov-wrap { max-width: 1140px; margin: 0 auto; padding: 1.6rem 1rem 3rem; }

.reg-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid #bcd9c9; color: var(--g);
  border-radius: 999px; padding: .32rem 1rem;
  font-size: .84rem; font-weight: 600; margin-bottom: 1rem;
}
.reg-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g); }

.page-title-block h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.5;
  color: var(--pg-ink); margin: 0 0 .7rem; font-weight: 700;
}
.page-title-block p {
  color: var(--pg-mute); margin: 0 0 1.5rem; max-width: 78ch; line-height: 1.85;
}

/* ---------------------------------------------------------- fact strip */
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--pg-line); border-radius: 8px;
  margin-bottom: 1.6rem; overflow: hidden;
}
.fact-strip > div { padding: .95rem 1.15rem; border-left: 1px solid var(--pg-line); }
.fact-strip > div:first-child { border-left: 0; }
.fact-strip .k { display: block; font-size: .78rem; color: var(--pg-mute); margin-bottom: .2rem; }
.fact-strip .v { display: block; font-size: 1.02rem; font-weight: 700; color: var(--g); }
@media (max-width: 860px) { .fact-strip { grid-template-columns: 1fr 1fr; }
  .fact-strip > div:nth-child(3) { border-left: 0; } }
@media (max-width: 480px) { .fact-strip { grid-template-columns: 1fr; }
  .fact-strip > div { border-left: 0; border-top: 1px solid var(--pg-line); }
  .fact-strip > div:first-child { border-top: 0; } }

/* ---------------------------------------------------------- 2-column layout */
.layout-2col {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.3rem; align-items: start;
}
@media (max-width: 940px) { .layout-2col { grid-template-columns: 1fr; } }

.panel {
  background: #fff; border: 1px solid var(--pg-line);
  border-radius: 8px; margin-bottom: 1.3rem;
}
.panel-body { padding: 1.5rem 1.6rem; }
.panel h2 {
  font-size: 1.12rem; font-weight: 700; color: var(--pg-ink);
  margin: 0 0 .35rem;
}
.panel-head {
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--pg-line);
  font-weight: 700; color: var(--pg-ink); font-size: 1rem;
}
.req-note { color: var(--pg-mute); font-size: .84rem; margin: 0 0 1.4rem; }
.req-note b { color: var(--pg-red); }

/* section rule inside the form */
.sec {
  color: var(--g); font-weight: 700; font-size: .95rem;
  margin: 1.6rem 0 1.1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--pg-line);
}
.sec:first-of-type { margin-top: 0; }

/* ---------------------------------------------------------- form fields */
.gov-form .grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem 1.3rem;
}
.gov-form .grid2 .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .gov-form .grid2 { grid-template-columns: 1fr; } }

.gov-body .fld { gap: .35rem; margin-bottom: 0; }
.gov-body .fld > label {
  font-size: .875rem; font-weight: 600; color: #343a40;
}
.gov-body .fld .req { color: var(--pg-red); }
.gov-body .fld .help { font-size: .78rem; color: var(--pg-mute); }
.gov-body .fld .err { font-size: .79rem; color: var(--pg-red); font-weight: 600; }

.gov-body .form-control,
.gov-body input[type=text], .gov-body input[type=email], .gov-body input[type=url],
.gov-body input[type=tel], .gov-body select, .gov-body textarea {
  width: 100%; padding: .55rem .75rem;
  border: 1px solid #ced4da; border-radius: 6px;
  font-size: .92rem; font-family: inherit; background: #fff; color: var(--pg-ink);
  transition: border-color .12s, box-shadow .12s;
}
.gov-body .form-control::placeholder,
.gov-body input::placeholder, .gov-body textarea::placeholder { color: #adb5bd; }
.gov-body .form-control:focus,
.gov-body input:focus, .gov-body select:focus, .gov-body textarea:focus {
  outline: 0; border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(20, 101, 63, .13);
}
.gov-body textarea { min-height: 74px; }

/* photo row */
.photo-row { display: flex; gap: .9rem; align-items: flex-start; }
.photo-thumb {
  width: 74px; height: 74px; flex: 0 0 74px;
  border: 1px solid #ced4da; border-radius: 6px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
  color: #adb5bd; font-size: .72rem; text-align: center;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .pick { flex: 1; min-width: 0; }
/* landscape box for NID scans, roomier square for the student's own photo */
.photo-thumb.wide { width: 118px; height: 74px; flex-basis: 118px; }
.photo-thumb.lg { width: 96px; height: 96px; flex-basis: 96px; }
/* the dashboard forms need the file input styled too */
.file-input {
  width: 100%; padding: .4rem; font-size: .86rem;
  border: 1px solid #ced4da; border-radius: 6px; background: #fff;
}
.clear-box {
  display: flex; align-items: center; gap: .35rem; margin-top: .4rem;
  font-size: .8rem; color: var(--muted); font-weight: 400; cursor: pointer;
}
.clear-box input { width: auto; margin: 0; }
.help-link { display: inline-block; margin-top: .3rem; font-size: .8rem; }
.gov-body input[type=file] {
  width: 100%; padding: .4rem; font-size: .86rem;
  border: 1px solid #ced4da; border-radius: 6px; background: #fff;
}

/* segmented radio buttons */
.seg > div { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.seg > div > div { display: block; }
.seg input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label {
  display: block; text-align: center; cursor: pointer;
  padding: .55rem .5rem; border: 1px solid #ced4da; border-radius: 6px;
  background: #fff; font-size: .88rem; font-weight: 600; color: #495057;
  transition: all .13s; margin: 0;
}
.seg label:hover { border-color: var(--g); color: var(--g); }
.seg input[type=radio]:checked + label,
.seg label:has(input:checked) {
  background: var(--g); border-color: var(--g); color: #fff;
  box-shadow: 0 2px 6px rgba(20, 101, 63, .28);
}

/* submit */
.gov-body .btn-primary {
  background: var(--g); border-color: var(--g); color: #fff;
  border-radius: 6px; padding: .65rem 1.5rem; font-size: .95rem; font-weight: 600;
}
.gov-body .btn-primary:hover { background: var(--g-dark); border-color: var(--g-dark); }
.submit-note {
  color: var(--pg-mute); font-size: .82rem; margin: .9rem 0 0; line-height: 1.75;
}

/* ---------------------------------------------------------- sidebar cards */
.side-union { padding: .35rem 1.2rem .9rem; }
.side-union .u {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem 0; border-bottom: 1px dashed var(--pg-line); font-size: .88rem;
}
.side-union .u:last-child { border-bottom: 0; }
.side-union .u b {
  background: var(--g); color: #fff; border-radius: 4px;
  min-width: 26px; padding: .12rem 0; text-align: center;
  font-size: .74rem; font-weight: 700; flex: 0 0 auto;
}
.side-list { padding: .6rem 1.2rem 1rem; margin: 0; list-style: none; }
.side-list li {
  display: flex; gap: .55rem; align-items: flex-start;
  padding: .42rem 0; font-size: .88rem; color: #343a40;
}
.side-list li::before { content: "✓"; color: var(--g); font-weight: 700; flex: 0 0 auto; }
.side-contact { padding: .8rem 1.2rem 1.1rem; font-size: .88rem; }
.side-contact div { display: flex; gap: .5rem; padding: .3rem 0; }
.side-contact b { color: var(--g); font-weight: 600; flex: 0 0 auto; }

/* ---------------------------------------------------------- footer */
.gov-foot {
  background: #fff; border-top: 1px solid var(--pg-line);
  padding: 1.3rem 1rem; text-align: center; color: var(--pg-mute); font-size: .85rem;
}
.gov-foot strong { color: var(--g); }
.gov-foot a { color: var(--g); font-weight: 600; }

/* success page */
.success-badge {
  width: 70px; height: 70px; margin: 0 auto .8rem; border-radius: 50%;
  background: var(--g-soft); display: grid; place-items: center; font-size: 2rem;
}
.roll-plate {
  margin: 1.2rem auto; padding: 1rem 1.3rem; max-width: 330px;
  border: 2px dashed var(--g); border-radius: 8px; background: var(--g-soft);
}

@media print {
  .no-print, .gov-top, .gov-foot { display: none !important; }
  body, .gov-body { background: #fff; }
  .gov-wrap { padding: 0; max-width: none; }
  .admit { border: 1px solid #333; margin: 0; }
}

/* header action buttons: download admit card + admin login */
.top-actions { display: flex; gap: .5rem; flex-wrap: wrap; flex: 0 0 auto; }
.gov-top .btn-outline {
  background: #fff; color: var(--g); border-color: var(--g);
}
.gov-top .btn-outline:hover { background: var(--g-soft); color: var(--g-dark); }
@media (max-width: 780px) {
  .gov-top-inner { flex-wrap: wrap; }
  .gov-top .titles { order: 2; flex: 1 1 100%; text-align: left; }
  .top-actions { order: 3; flex: 1 1 100%; }
  .top-actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Application panel (Bangla) — search bar, count boxes, table
   ============================================================ */
.panel-tools { display: flex; flex-direction: column; gap: .7rem; }
.tool-fields {
  display: grid; grid-template-columns: 2fr 1.2fr 1fr 1.2fr; gap: .6rem;
}
@media (max-width: 900px) { .tool-fields { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tool-fields { grid-template-columns: 1fr; } }
.tool-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn-dl { background: #eef6f2; border-color: #bcd9c9; color: #14653f; }
.btn-dl:hover { background: #dcece4; color: #0f4d30; }
.btn-trash {
  background: #fff; border-color: #f3c2c2; color: #c0392b; padding: .3rem .5rem;
}
.btn-trash:hover { background: #fdeaea; color: #a02c1f; }

.count-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: .7rem; margin-bottom: 1.1rem;
}
.count-box {
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: .75rem .9rem; text-decoration: none; color: inherit;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
a.count-box:hover {
  border-color: #14653f; box-shadow: 0 4px 12px rgba(20, 101, 63, .12);
  transform: translateY(-2px); text-decoration: none;
}
.count-box .n { font-size: 1.5rem; font-weight: 700; color: #14653f; line-height: 1.2; }
.count-box .l { font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.count-box.total { background: #14653f; border-color: #14653f; }
.count-box.total .n { color: #fff; }
.count-box.total .l { color: #cfe6da; }

table.bn-table th { font-size: .8rem; text-transform: none; letter-spacing: 0; }
table.bn-table td { font-size: .88rem; }

/* ============================================================
   ADMIT CARD — printed layout (double green frame)
   ============================================================ */
.admit {
  max-width: 820px; margin: 0 auto 1.4rem; background: #fff;
  border: 2px solid var(--g); border-radius: 3px; padding: 7px;
}
.admit-inner { border: 1px solid var(--g); padding: 2rem 2.2rem 1.4rem; }

.admit-head { text-align: center; }
.admit-head .gov { font-size: 1.02rem; color: #1c2b24; }
.admit-head .office {
  font-size: 1.32rem; font-weight: 700; color: var(--g-dark); margin-top: .2rem;
}
.admit-rule {
  height: 2px; background: var(--g); margin: .9rem auto 1.5rem; width: 92%;
}

.admit-title {
  text-align: center; font-size: 1.85rem; font-weight: 700;
  color: var(--g-dark); line-height: 1.4;
}
.admit-course {
  text-align: center; font-size: 1.05rem; color: #2c3a33; margin-top: .15rem;
}

.admit-top {
  display: flex; align-items: center; gap: 1.6rem;
  margin: 1.7rem 0 1.9rem;
}
.admit-photo {
  width: 140px; height: 140px; flex: 0 0 140px; object-fit: cover;
  border: 1px solid #cfdad4; border-radius: 8px; background: #f1f3f5;
}
.admit-photo-empty {
  display: grid; place-items: center; color: #9aa8a1; font-size: .82rem;
}
.roll-box {
  flex: 1; background: var(--g-dark); color: #fff;
  border-radius: 10px; padding: .9rem 1rem 1.1rem; text-align: center;
}
.roll-label { font-size: .95rem; opacity: .92; }
.roll-value {
  font-size: 2.35rem; font-weight: 700; letter-spacing: .06em; line-height: 1.25;
}

.admit-rows { margin-top: .4rem; }
.admit-rows .r {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: .62rem 0; border-bottom: 1px dashed #c9d4ce;
}
.admit-rows .r:last-child { border-bottom: 0; }
.admit-rows .k { flex: 0 0 42%; color: #1c2b24; font-size: 1rem; }
.admit-rows .v {
  flex: 1; text-align: right; font-weight: 700; color: #111; font-size: 1rem;
  word-break: break-word;
}

.admit-signs {
  display: flex; justify-content: space-between; gap: 2rem;
  margin: 3.2rem 0 1.2rem;
}
.admit-signs .sign {
  flex: 1; max-width: 300px; text-align: center;
  border-top: 1.5px solid #1c2b24; padding-top: .45rem; font-size: .98rem;
}
.admit-foot {
  border-top: 1px solid #e4eae7; padding-top: .9rem; margin-top: .4rem;
  text-align: center; font-size: .95rem; color: #33423b; white-space: pre-line;
}

@media (max-width: 640px) {
  .admit-inner { padding: 1.2rem 1rem 1rem; }
  .admit-top { flex-direction: column; gap: 1rem; }
  .admit-photo { margin: 0 auto; }
  .roll-box { width: 100%; }
  .admit-rows .k { flex: 0 0 45%; font-size: .92rem; }
  .admit-rows .v { font-size: .92rem; }
  .admit-signs { gap: 1rem; margin-top: 2.4rem; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  .admit { border-width: 2px; margin: 0; max-width: none; }
  .admit-inner { padding: 1.6rem 1.8rem 1.2rem; }
}
.roll-plate-num {
  font-size: 2rem; font-weight: 700; color: var(--g-dark);
  letter-spacing: .08em; line-height: 1.3;
}
.gov-top .btn-student {
  background: #fff; color: #b8860b; border-color: var(--gold);
}
.gov-top .btn-student:hover { background: #fdf6e3; color: #8a6508; }

/* ============================================================
   LOGIN SCREENS — the office door looks nothing like the student one
   ============================================================ */
.auth-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 999px; padding: .25rem .85rem;
  font-size: .8rem; font-weight: 600; margin-bottom: .7rem;
}
.auth-chip.grad { background: #e6f6ed; color: #0b7c45; border: 1px solid #bfe3d4; }
.auth-chip.lock { background: #fdf4e3; color: #8a6508; border: 1px solid #e6d29a; }
.auth-card h1 { margin-top: 0; }

/* ---------- office / admin ---------- */
.auth-wrap.admin-wrap {
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(212, 175, 55, .16), transparent 60%),
    linear-gradient(140deg, #08261b 0%, #0f3a29 45%, #14653f 100%);
}
.auth-card.admin-card {
  border-top: 5px solid var(--gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .38);
}
.admin-brand {
  display: flex; align-items: center; gap: .8rem;
  padding: 0 0 1rem; margin-bottom: .3rem;
  border-bottom: 1px solid var(--line);
}
.admin-brand img {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%;
  background: #0f4d30; padding: 5px; border: 2px solid var(--gold);
}
.admin-brand small {
  display: block; font-size: .74rem; color: var(--muted); font-weight: 600;
}
.admin-brand strong { font-size: .94rem; color: #0f4d30; line-height: 1.35; }

.admin-card h1 { color: #0f3a29; }
.admin-card .btn-primary {
  background: linear-gradient(180deg, #17593c, #0f3a29);
  border-color: #08261b;
}
.admin-card .btn-primary:hover { background: #0b2e20; }
.admin-card input:focus {
  border-color: #0f4d30; box-shadow: 0 0 0 3px rgba(15, 77, 48, .16);
}
.admin-note {
  background: #fdf9ef; border: 1px solid #ecdcb3; color: #6b5312;
  border-radius: 8px; padding: .6rem .8rem; font-size: .82rem; line-height: 1.7;
}
.tool-fields.two { grid-template-columns: 2fr 1fr; }
@media (max-width: 560px) { .tool-fields.two { grid-template-columns: 1fr; } }
a.brand { text-decoration: none; }
a.brand:hover { text-decoration: none; }
a.brand:hover .brand-mark { box-shadow: 0 4px 18px rgba(212, 175, 55, .5); }

/* ============================================================
   GOVERNMENT SEAL — the one logo used everywhere
   ============================================================ */
/* sidebar (dark background) */
.sidebar .brand-mark {
  background: #fff;
  padding: 3px;
  border: 2px solid var(--gold);
}
/* login / register card (light background) */
.auth-card .brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%; object-fit: contain;
  background: #fff; padding: 2px;
  border: 1px solid var(--line);
}
/* public site header */
.gov-top .gov-seal {
  background: #fff; padding: 3px; object-fit: contain;
}
/* admin login header */
.admin-brand img {
  background: #fff; padding: 3px; object-fit: contain;
  border: 2px solid var(--gold);
}

/* ============================================================
   REGISTRATION OPEN / CLOSED — a switch you cannot miss
   ============================================================ */
.reg-toggle {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border: 2px solid #cfe3d8; border-radius: 14px;
  padding: 1.05rem 1.2rem; margin-bottom: 1.2rem;
  background: linear-gradient(180deg, #f5fbf8, #eef7f2);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.reg-toggle:has(input:checked) {
  border-color: #16a34a; background: linear-gradient(180deg, #f0fdf4, #e4f7ea);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .10);
}
.reg-toggle:not(:has(input:checked)) {
  border-color: #ef4444; background: linear-gradient(180deg, #fef2f2, #fde8e8);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .10);
}

.switch-wrap {
  display: flex; align-items: center; gap: 1rem;
  cursor: pointer; flex: 1; min-width: 260px; margin: 0;
}
.switch-wrap input[type=checkbox] {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}

.switch {
  width: 74px; height: 38px; flex: 0 0 74px;
  border-radius: 999px; position: relative;
  background: #d1584f; transition: background .2s;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .18);
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
  transition: transform .2s;
}
.switch-wrap input:checked + .switch { background: #16a34a; }
.switch-wrap input:checked + .switch::after { transform: translateX(36px); }
.switch-wrap input:focus-visible + .switch {
  outline: 3px solid rgba(20, 101, 63, .45); outline-offset: 3px;
}

.switch-label strong { display: block; font-size: 1.02rem; line-height: 1.5; }
.switch-label small {
  display: block; color: var(--ink-soft); font-size: .85rem; line-height: 1.65;
  margin-top: .15rem;
}
.reg-toggle:has(input:checked) .switch-label strong { color: #14653f; }
.reg-toggle:not(:has(input:checked)) .switch-label strong { color: #991b1b; }

/* show only the wording that matches the current state */
.reg-toggle:has(input:checked) .off-only,
.reg-toggle:not(:has(input:checked)) .on-only { display: none; }

.switch-pill {
  flex: 0 0 auto; border-radius: 999px; padding: .35rem 1.1rem;
  font-weight: 700; font-size: .9rem;
  background: #16a34a; color: #fff;
  box-shadow: 0 3px 10px rgba(22, 163, 74, .35);
}
.switch-pill.off { background: #dc2626; box-shadow: 0 3px 10px rgba(220, 38, 38, .35); }

/* the closed-message box matters only while registration is off */
.reg-toggle:has(input:checked) + .closed-msg { opacity: .55; }
.closed-msg { transition: opacity .18s; }
.closed-msg:focus-within { opacity: 1; }
.upazila-block { margin-bottom: 1.4rem; }
.upazila-block:last-child { margin-bottom: 0; }
.upazila-block h4 {
  margin: 0 0 .6rem; font-size: .98rem; color: var(--g);
  padding-bottom: .35rem; border-bottom: 1px solid var(--pg-line);
  display: flex; align-items: baseline; gap: .5rem;
}
.upazila-block h4 .count {
  font-size: .78rem; font-weight: 400; color: var(--pg-mute); margin-left: auto;
}
.tool-fields.two { grid-template-columns: 2fr 1fr; }
.tool-fields.three { grid-template-columns: 2fr 1fr 1fr; }

/* ============================================================
   UPAZILA OPEN / CLOSE rows
   ============================================================ */
.upazila-row {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  border: 2px solid var(--line); border-radius: 12px;
  padding: .85rem 1.1rem; margin-bottom: .7rem; cursor: pointer;
  background: #fff; transition: border-color .16s, background .16s, box-shadow .16s;
}
/* the letterhead line that hangs under each upazila toggle */
.upazila-row:has(+ .office-row) { margin-bottom: .35rem; }
.office-row { margin: 0 0 1.1rem; padding: 0 1.1rem 0 5.3rem; }
.office-row label {
  display: block; font-size: .78rem; color: var(--muted); margin-bottom: .22rem;
}
.office-row input { max-width: 560px; }
@media (max-width: 640px) { .office-row { padding-left: 1.1rem; } }

.upazila-row input[type=checkbox] {
  position: absolute; opacity: 0; width: 0; height: 0; margin: 0;
}
.upazila-row:has(input:checked) {
  border-color: #16a34a; background: linear-gradient(180deg, #f4fdf7, #ecf8f0);
}
.upazila-row:not(:has(input:checked)) {
  border-color: #f0a9a9; background: linear-gradient(180deg, #fff7f7, #fdeeee);
}
.upazila-row .switch {
  width: 60px; height: 32px; flex: 0 0 60px; border-radius: 999px;
  background: #d1584f; position: relative; transition: background .2s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18);
}
.upazila-row .switch::after {
  content: ""; position: absolute; top: 4px; left: 4px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .2s;
}
.upazila-row input:checked + .switch { background: #16a34a; }
.upazila-row input:checked + .switch::after { transform: translateX(28px); }

.upazila-row .u-name { flex: 1; min-width: 200px; }
.upazila-row .u-name strong { display: block; font-size: 1rem; }
.upazila-row .u-name small { color: var(--muted); font-size: .82rem; }
.upazila-row .u-state {
  flex: 0 0 auto; border-radius: 999px; padding: .28rem .95rem;
  font-weight: 700; font-size: .85rem; background: #16a34a; color: #fff;
}
.upazila-row .u-state.off { background: #dc2626; }
.upazila-row:has(input:checked) .off-only,
.upazila-row:not(:has(input:checked)) .on-only { display: none; }

.union-chip {
  display: inline-block; background: #f1f5f3; border: 1px solid var(--line);
  border-radius: 6px; padding: .1rem .45rem; margin: .12rem .18rem .12rem 0;
  font-size: .78rem; white-space: nowrap;
}
/* the same chip, but a switch: click the name to open or close that union */
.union-chip:has(input) {
  cursor: pointer; padding: .18rem .55rem .18rem .5rem;
  transition: background .14s, border-color .14s, color .14s;
}
.union-chip input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.union-chip:has(input:checked) {
  background: #e7f6ed; border-color: #79c79a; color: #14653f;
}
.union-chip:has(input:not(:checked)) {
  background: #fdeeee; border-color: #f0a9a9; color: #a33; text-decoration: line-through;
}
.union-chip:has(input:focus-visible) { outline: 2px solid #14653f; outline-offset: 1px; }
.union-chip:has(input) b { font-weight: 700; opacity: .75; }

/* public sidebar: unions grouped under their upazila */
.side-upazila {
  font-weight: 700; color: var(--g); font-size: .88rem;
  margin: .9rem 0 .35rem; padding-bottom: .25rem;
  border-bottom: 1px solid var(--pg-line);
  display: flex; align-items: baseline;
}
.side-upazila:first-child { margin-top: 0; }
.side-upazila span {
  margin-left: auto; font-weight: 400; font-size: .74rem; color: var(--pg-mute);
}
.side-closed {
  padding: .7rem 1.2rem 1rem; font-size: .82rem; color: var(--pg-mute);
  border-top: 1px dashed var(--pg-line);
}
.side-closed strong { color: #b45309; }

/* ============================================================
   DASHBOARD — two clearly separate halves
   ============================================================ */
.section-band {
  border-radius: 14px; padding: 1.1rem 1.2rem 1.3rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line);
}
.section-band.apply {
  background: linear-gradient(180deg, #f6f2fb, #faf8fd);
  border-color: #ddd0ee;
}
.section-band.student {
  background: linear-gradient(180deg, #f1f8f4, #f9fcfa);
  border-color: #c9e5d6;
}
.band-head {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin-bottom: 1.1rem; padding-bottom: .8rem;
  border-bottom: 2px solid rgba(0, 0, 0, .07);
}
.band-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.4rem; background: #fff;
  box-shadow: 0 2px 8px rgba(16, 24, 40, .10);
}
.band-head h2 { margin: 0; font-size: 1.18rem; }
.band-head p { margin: .1rem 0 0; font-size: .85rem; color: var(--muted); }
.section-band.apply .band-head h2 { color: #5b21b6; }
.section-band.student .band-head h2 { color: #14653f; }
.section-band .stat-grid { margin-bottom: 1.1rem; }
.section-band .card:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  .section-band { padding: .9rem .7rem 1rem; }
  .band-head { gap: .6rem; }
}

/* sidebar group headers, colour-coded to match the dashboard bands */
.nav-group-label.apply { color: #d8b4fe; }
.nav-group-label.student { color: var(--gold); }

/* ============================================================
   ভর্তি ফরম — printable A4 admission form
   ============================================================ */
.adm-bar {
  display: flex; gap: .6rem; justify-content: center;
  padding: 1.2rem 1rem .2rem; flex-wrap: wrap;
}
.adm-sheet {
  max-width: 860px; margin: 1rem auto 1.2rem; background: #fff;
  border: 2px solid var(--g); border-radius: 3px; padding: 6px;
}
.adm-inner { border: 1px solid var(--g); padding: 1.4rem 1.6rem 1.1rem; }

/* seal on the left, office in the middle */
.adm-head { display: flex; align-items: center; gap: 1rem; }
.adm-seal { width: 62px; height: 62px; object-fit: contain; flex: 0 0 62px; }
.adm-head-text { flex: 1; text-align: center; padding-top: .1rem; }
.adm-head-text .gov { font-size: .98rem; color: #1c2b24; }
.adm-head-text .office {
  font-size: 1.2rem; font-weight: 700; color: var(--g-dark); margin-top: .12rem;
  line-height: 1.5;
}
.adm-head-text .course { font-size: .92rem; color: #3b4a43; margin-top: .12rem; }

/* id strip on the left, the 300x300 photo beside it on the right */
.adm-top { display: flex; align-items: stretch; gap: 1rem; margin-bottom: 1rem; }
.adm-photo {
  width: 112px; height: 112px; flex: 0 0 112px; object-fit: cover; aspect-ratio: 1 / 1;
  border: 1px solid #cfdad4; border-radius: 7px; background: #f7f9f8;
}
.adm-photo-empty {
  display: grid; place-items: center; text-align: center;
  color: #9aa8a1; font-size: .76rem; line-height: 1.6;
}

.adm-title {
  margin: .9rem 0 .9rem; padding: .35rem 0; text-align: center;
  background: var(--g-dark); color: #fff; border-radius: 5px;
  font-size: 1.25rem; font-weight: 700; letter-spacing: .04em;
}

/* student id / course / batch / admission date, two by two beside the photo */
.adm-idbox {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.2rem;
  align-content: center;
  border: 1px solid #cfdad4; border-radius: 7px; padding: .7rem .9rem;
  background: var(--g-soft);
}
.adm-idbox > div { display: flex; flex-direction: column; gap: .12rem; min-width: 0; }
.adm-idbox .k { font-size: .8rem; color: #4a5a52; }
.adm-idbox .v {
  font-weight: 700; color: #111; font-size: .95rem; overflow-wrap: anywhere;
}

.adm-sec {
  margin: 1rem 0 .45rem; padding: .28rem .7rem; border-radius: 4px;
  background: #e8f1ec; border-left: 4px solid var(--g);
  font-weight: 700; font-size: .96rem; color: var(--g-dark);
}

/* Two columns of label/value pairs. Every label starts at the same place and
   every value at the same place, so the page reads as four straight columns. */
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
.adm-cell {
  display: grid; grid-template-columns: 9.5rem 1fr; align-items: baseline;
  column-gap: .5rem; min-height: 1.95rem; padding: .34rem 0;
  border-bottom: 1px dashed #ccd6d0;
}
.adm-cell.wide { grid-column: 1 / -1; }
.adm-cell .k { font-size: .89rem; color: #33423b; }
.adm-cell .v {
  font-weight: 700; color: #111; font-size: .93rem; overflow-wrap: anywhere;
}

.adm-declare {
  margin-top: 1.1rem; padding: .7rem .9rem; font-size: .88rem; line-height: 1.75;
  border: 1px solid #dfe7e3; border-radius: 6px; background: #fafcfb; color: #2c3a33;
}
.adm-signs { display: flex; justify-content: space-between; gap: 1.4rem; margin: 3rem 0 .8rem; }
.adm-signs .sign {
  flex: 1; text-align: center; border-top: 1.4px solid #1c2b24;
  padding-top: .4rem; font-size: .9rem;
}
.adm-foot {
  border-top: 1px solid #e4eae7; padding-top: .6rem;
  text-align: center; font-size: .82rem; color: #5b6a63;
}

/* screen only — an A4 sheet is narrower than this and must keep two columns */
@media screen and (max-width: 720px) {
  .adm-inner { padding: 1rem .9rem; }
  .adm-head { flex-wrap: wrap; justify-content: center; text-align: center; }
  .adm-head-text { order: 3; flex: 1 1 100%; }
  .adm-top { flex-direction: column-reverse; align-items: center; }
  .adm-idbox { width: 100%; }
  .adm-grid { grid-template-columns: 1fr; }
  .adm-cell { grid-template-columns: 8.5rem 1fr; }
  .adm-signs { flex-direction: column; gap: 2.4rem; }
}

/* Everything on ONE A4 sheet: the layout stays two-column and each part is
   tightened just enough to fit within 297mm. */
@media print {
  @page { size: A4; margin: 8mm; }
  body.gov-body { background: #fff; }
  .adm-bar, .adm-sheet + p { display: none !important; }

  /* the sheet fills the whole page instead of stopping two-thirds down */
  .adm-sheet {
    margin: 0; max-width: none; padding: 4px; border-width: 1.5px;
    min-height: 277mm; display: flex;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .adm-inner {
    flex: 1; display: flex; flex-direction: column; padding: .8rem 1rem;
  }
  /* signatures and the footer ride at the bottom of the page */
  .adm-signs { margin-top: auto; }

  .adm-head { gap: .85rem; }
  .adm-seal { width: 50px; height: 50px; flex-basis: 50px; }
  .adm-head-text .gov { font-size: .83rem; }
  .adm-head-text .office { font-size: 1.05rem; line-height: 1.42; }
  .adm-head-text .course { font-size: .78rem; }

  .adm-title { font-size: 1.08rem; padding: .24rem 0; margin: .5rem 0; }

  .adm-top { gap: .75rem; margin-bottom: .6rem; }
  .adm-idbox { padding: .5rem .75rem; gap: .3rem .95rem; }
  .adm-idbox .k { font-size: .72rem; }
  .adm-idbox .v { font-size: .82rem; }
  .adm-photo { width: 98px; height: 98px; flex-basis: 98px; }

  .adm-sec { margin: .48rem 0 .22rem; padding: .18rem .58rem; font-size: .84rem; }
  .adm-grid { gap: 0 1.3rem; }
  .adm-cell { min-height: 0; padding: .22rem 0; }
  .adm-cell .k { font-size: .78rem; }
  .adm-cell .v { font-size: .8rem; }

  .adm-declare {
    margin-top: .6rem; padding: .48rem .65rem; font-size: .74rem; line-height: 1.58;
  }
  .adm-signs { padding-top: 1.2rem; gap: 1.1rem; margin-bottom: .5rem; }
  .adm-signs .sign { font-size: .79rem; padding-top: .32rem; }
  .adm-foot { font-size: .7rem; padding-top: .48rem; }

  .adm-sec, .adm-cell, .adm-top, .adm-signs, .adm-declare { break-inside: avoid; }
  /* a batch of forms: one student per sheet of paper */
  .adm-sheet + .adm-sheet { break-before: page; page-break-before: always; }
}
