/* ILM Society–inspired theme: navy, trust blue, gold accents (education NGO) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap");

:root {
  --ilm-navy: #142c45;
  --ilm-navy-deep: #0c1f33;
  --ilm-blue: #1b6eb5;
  --ilm-blue-dark: #155a94;
  --ilm-blue-soft: #e8f2fa;
  --ilm-gold: #c9a227;
  --ilm-gold-soft: #f5edd4;
  --bg: #eef2f6;
  --surface: #ffffff;
  --text: #1a2d42;
  --muted: #5a6d82;
  --accent: var(--ilm-blue);
  --accent-hover: var(--ilm-blue-dark);
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(20, 44, 69, 0.1);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.site-header {
  background: var(--ilm-navy);
  box-shadow: 0 4px 20px rgba(12, 31, 51, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ilm-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.logo-accent {
  color: var(--ilm-gold);
  font-weight: 800;
}

.logo-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.15rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--ilm-gold);
}

.nav .btn-sm {
  background: var(--ilm-gold);
  color: var(--ilm-navy-deep);
  border: none;
}

.nav .btn-sm:hover {
  background: #ddb92e;
  color: var(--ilm-navy-deep);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.cart-badge {
  background: var(--ilm-gold);
  color: var(--ilm-navy-deep);
  font-size: 0.75rem;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nav-badge {
  background: var(--ilm-gold);
  color: var(--ilm-navy-deep);
  font-size: 0.7rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  vertical-align: middle;
}

.main-content {
  flex: 1;
  padding: 2rem 0 3rem;
}

.site-footer {
  background: var(--ilm-navy-deep);
  color: #a8b8cc;
  padding: 1.75rem 0;
  font-size: 0.9rem;
  margin-top: auto;
  border-top: 3px solid var(--ilm-gold);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ilm-gold);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.hero {
  background: linear-gradient(135deg, var(--ilm-navy-deep) 0%, var(--ilm-blue) 55%, #0f5a8c 100%);
  color: #fff;
  padding: 2.75rem 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 45%;
  height: 140%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 0;
  opacity: 0.94;
  max-width: 54ch;
  position: relative;
  z-index: 1;
}

.hero a {
  color: #f5e6a8;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 2px;
}

.hero a:hover {
  color: var(--ilm-navy-deep);
}

.hero .btn-primary {
  background: var(--ilm-gold);
  color: var(--ilm-navy-deep);
  position: relative;
  z-index: 1;
}

.hero .btn-primary:hover {
  background: #ddb92e;
  color: var(--ilm-navy-deep);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .grid.cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(20, 44, 69, 0.06);
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(20, 44, 69, 0.14);
  border-color: rgba(27, 110, 181, 0.25);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--ilm-navy);
}

.card .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--ilm-blue-soft);
  color: var(--ilm-blue-dark);
}

.progress-bar {
  height: 8px;
  background: #dde5ee;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ilm-blue), #2a8fd4);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--ilm-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ilm-blue-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--ilm-blue);
  border: 1px solid var(--ilm-blue);
}

.btn-ghost:hover {
  background: var(--ilm-blue-soft);
}

.form {
  max-width: 420px;
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 44, 69, 0.06);
}

.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c5d2e0;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.alert-error {
  background: #fde8e6;
  color: var(--danger);
}

.alert-success {
  background: var(--ilm-gold-soft);
  color: #6b5a1a;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-pending {
  background: #fff4e5;
  color: #b54708;
}

.badge-done {
  background: var(--ilm-blue-soft);
  color: var(--ilm-blue-dark);
}

.badge-fail {
  background: #fde8e6;
  color: #b42318;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  border: 1px solid rgba(20, 44, 69, 0.06);
}

table.data th,
table.data td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e4eaf2;
}

table.data th {
  background: var(--ilm-blue-soft);
  font-weight: 700;
  color: var(--ilm-navy);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-title {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  color: var(--ilm-navy);
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split.two {
    grid-template-columns: 1fr 1fr;
  }
}

.detail-block {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border: 1px solid rgba(20, 44, 69, 0.06);
}

.detail-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--ilm-navy);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.muted a {
  color: var(--ilm-blue);
  font-weight: 600;
}

/* —— Beneficiary portal dashboard (modern shell) —— */
.main-content--portal,
.main-content--donor-dash {
  background: linear-gradient(165deg, #dfe7f0 0%, #e8edf4 22%, #eef2f6 55%, #f0f3f8 100%);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.portal-dash {
  font-family: "Plus Jakarta Sans", var(--font);
  letter-spacing: -0.01em;
}

/* Modern page header for inner portal pages (Documents, Assessments,
   Monthly update, etc.) — a dark gradient banner with a gold accent rail
   and ambient glow, matching the dashboard hero so the whole portal reads
   as one system. */
.portal-pagehead {
  position: relative;
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.55rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(125deg, #0a1628 0%, #142c45 45%, #1a3d5c 100%);
  color: #f0f4f8;
  box-shadow: 0 18px 44px rgba(12, 31, 51, 0.24);
  overflow: hidden;
  isolation: isolate;
}

/* ambient corner glows (gold top-right, blue bottom-left) */
.portal-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 85% 65% at 100% -25%, rgba(201, 162, 39, 0.24), transparent 52%),
    radial-gradient(ellipse 55% 50% at -5% 115%, rgba(27, 110, 181, 0.22), transparent 48%);
  pointer-events: none;
}

/* gold accent rail on the left edge */
.portal-pagehead::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  bottom: 1.35rem;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ilm-gold) 0%, rgba(201, 162, 39, 0.35) 100%);
}

.portal-pagehead__eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
}

.portal-pagehead__title {
  position: relative;
  margin: 0;
  font-size: clamp(1.45rem, 3.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
}

.portal-pagehead__sub {
  position: relative;
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 68ch;
}

.portal-pagehead__sub a {
  color: var(--ilm-gold);
  font-weight: 600;
  text-decoration: none;
}

.portal-pagehead__sub a:hover {
  text-decoration: underline;
}

.portal-dash__hero {
  position: relative;
  border-radius: 20px;
  padding: 1.6rem 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(125deg, #0a1628 0%, #142c45 42%, #1a3d5c 100%);
  color: #f0f4f8;
  box-shadow: 0 20px 50px rgba(12, 31, 51, 0.28);
  overflow: hidden;
}

.portal-dash__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 100% -20%, rgba(201, 162, 39, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(27, 110, 181, 0.18), transparent 45%);
  pointer-events: none;
}

.portal-dash__hero-inner {
  position: relative;
  z-index: 1;
}

.portal-dash__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.portal-dash__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.portal-dash__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.portal-dash__pills li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  text-transform: capitalize;
}

.portal-dash__summary {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 52ch;
}

.portal-dash__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.portal-dash__hero .btn-primary {
  background: var(--ilm-gold);
  color: var(--ilm-navy-deep);
  font-weight: 700;
}

.portal-dash__hero .btn-primary:hover {
  background: #ddb92e;
  color: var(--ilm-navy-deep);
}

.portal-dash__hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-dash__hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.portal-dash__hero .nav-badge {
  background: #fff;
  color: var(--ilm-navy-deep);
}

.portal-dash__progress {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-dash__progress-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.45rem;
}

.portal-dash__progress-top span:last-child {
  font-weight: 700;
  color: var(--ilm-gold);
}

.portal-dash__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.portal-dash__bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ilm-gold), #e8d48b);
  transition: width 0.55s ease;
}

.portal-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 720px) {
  .portal-bento {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.portal-stat {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 30px rgba(12, 31, 51, 0.08);
}

.portal-stat__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.portal-stat__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ilm-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.portal-stat__hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.portal-dash__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .portal-dash__grid {
    display: grid;
    grid-template-columns: 1fr min(340px, 34%);
    gap: 1.35rem;
    align-items: start;
  }

  .portal-dash__side {
    position: sticky;
    top: 5.5rem;
  }
}

.portal-panel {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(20, 44, 69, 0.07);
  box-shadow: 0 12px 40px rgba(12, 31, 51, 0.07);
  margin-bottom: 1.25rem;
}

.portal-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.portal-panel__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ilm-navy);
}

.portal-panel__lead {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.45;
}

.portal-panel__link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ilm-blue);
  text-decoration: none;
  white-space: nowrap;
}

.portal-panel__link:hover {
  text-decoration: underline;
}

.portal-chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-chat-item {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: var(--ilm-blue-soft);
  border: 1px solid rgba(27, 110, 181, 0.12);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.portal-chat-item:hover {
  border-color: rgba(27, 110, 181, 0.35);
  box-shadow: 0 4px 16px rgba(27, 110, 181, 0.1);
}

.portal-chat-item__title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ilm-navy);
  margin: 0 0 0.25rem;
}

.portal-chat-item__meta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ilm-blue-dark);
  margin-bottom: 0.35rem;
}

.portal-chat-item__preview {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portal-charts-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 840px) {
  .portal-charts-row {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.portal-chart-box {
  position: relative;
  height: 220px;
}

.portal-chart-box--donut {
  height: 240px;
  max-width: 320px;
  margin: 0 auto;
}

.portal-section__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ilm-navy);
}

.portal-section__lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.45;
}

.portal-need-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 680px) {
  .portal-need-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.portal-need-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(20, 44, 69, 0.06);
  box-shadow: 0 6px 24px rgba(12, 31, 51, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.portal-need-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portal-need-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ilm-navy);
  line-height: 1.35;
}

.portal-need-card__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.portal-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ilm-navy);
  margin-bottom: 0.3rem;
}

.portal-progress--lg {
  height: 12px;
  background: rgba(20, 44, 69, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.portal-progress--lg > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ilm-blue), #3b9fe8);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.portal-need-card__amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.85rem;
}

.portal-need-card__amounts dt {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-size: 0.62rem;
}

.portal-need-card__amounts dd {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ilm-blue-dark);
}

.portal-need-card__hint {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  font-style: italic;
}

.tag--scholarship {
  background: #e0f2fe;
  color: #0369a1;
}

.tag--school {
  background: #fef3c7;
  color: #b45309;
}

.tag--ration {
  background: #d1fae5;
  color: #047857;
}

.tag--medical {
  background: #ede9fe;
  color: #5b21b6;
}

.portal-updates {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-update-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(20, 44, 69, 0.06);
  box-shadow: 0 4px 18px rgba(12, 31, 51, 0.05);
}

.portal-update-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ilm-navy);
}

.portal-update-card time {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.portal-update-card p {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.table-compact.data th,
.table-compact.data td {
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}
