:root {
  --ink: #14213d;
  --muted: #64748b;
  --line: #dde8f4;
  --blue: #246bfe;
  --blue-dark: #0b4edb;
  --green: #22a86b;
  --amber: #f59e0b;
  --red: #ef4444;
  --panel: #f6f9fd;
  --shadow: 0 18px 42px rgba(20, 33, 61, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f8fc;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
.is-hidden { display: none !important; }

.funding-strip {
  background: #fff;
  border-bottom: 1px solid #e6edf5;
  color: #075099;
}

.funding-row {
  min-height: 74px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.funding-note {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eu-emblem { width: 82px; height: auto; display: block; }
.government-logo { width: 56px; height: 56px; display: block; object-fit: contain; }

.funding-title {
  display: block;
  color: #075099;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.08;
}

.funding-subtitle {
  display: block;
  margin-top: 4px;
  color: #5f7288;
  font-size: 12px;
  font-weight: 700;
}

.shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  background: #10233f;
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: grid;
  place-items: center;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(36,107,254,.28);
}

.dashboard-brand-logo {
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  padding: 5px;
}

.brand > .dashboard-brand-logo {
  inline-size: 52px;
  block-size: 52px;
}

.brand-title { display: block; font-size: 22px; font-weight: 950; line-height: 1; }
.brand-sub { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 750; }

.nav-list { display: grid; gap: 6px; }

.nav-item {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.76);
  font-size: 14px;
  font-weight: 820;
}

.nav-item.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.34); }
.nav-item.active .nav-dot { background: var(--green); }

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.74);
  line-height: 1.5;
  font-size: 13px;
  font-weight: 650;
}

.main { min-width: 0; padding: 28px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.breadcrumbs { color: var(--muted); font-size: 13px; font-weight: 800; }
h1 { margin: 8px 0 0; font-size: 34px; line-height: 1.1; }
h2 { margin: 0; font-size: 22px; line-height: 1.18; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.2; }
p { margin: 0; color: var(--muted); line-height: 1.58; font-weight: 550; }

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

.btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #243a59;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(20,33,61,.05);
}

.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px rgba(36,107,254,.24); }
.btn.green { background: var(--green); color: #fff; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card,
.panel,
.card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfe9f5;
  box-shadow: 0 14px 34px rgba(20,33,61,.06);
}

.stat-card { min-height: 112px; padding: 18px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 850; }
.stat-value { margin-top: 12px; font-size: 30px; font-weight: 950; line-height: 1; }
.stat-note { margin-top: 8px; color: #64748b; font-size: 12px; font-weight: 750; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }

.panel { overflow: hidden; }
.panel-head {
  padding: 18px;
  border-bottom: 1px solid #e7eef7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-body { padding: 18px; }

.badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4fb;
  color: #415570;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.badge.green { background: #e7f8ef; color: #13794b; }
.badge.amber { background: #fff4da; color: #9a6700; }
.badge.blue { background: #eaf3ff; color: #0b4edb; }
.badge.red { background: #ffeded; color: #b42318; }

.list { display: grid; gap: 12px; }
.list-row {
  min-height: 72px;
  border-radius: 15px;
  border: 1px solid #e4edf7;
  background: #fbfdff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-title { font-weight: 920; color: #17253e; }
.mini-meta { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 720; }

.card { padding: 20px; }
.feature-card {
  min-height: 230px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,255,255,.24), transparent 22%),
    linear-gradient(135deg, #246bfe, #22a86b);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature-card p { color: rgba(255,255,255,.82); }

.action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-card {
  min-height: 94px;
  border-radius: 16px;
  border: 1px solid #dfe9f5;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 920;
  box-shadow: 0 10px 24px rgba(20,33,61,.05);
}
.action-card span { color: var(--blue-dark); font-size: 13px; }

.view-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.view-link {
  min-height: 58px;
  border-radius: 16px;
  border: 1px solid #dfe9f5;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20,33,61,.055);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: #243a59;
  font-size: 14px;
  font-weight: 920;
}

.view-link span:last-child { color: var(--blue-dark); }

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
  flex: 0 0 auto;
}

.user-name { font-weight: 920; color: #17253e; }
.user-email { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 720; }

.icon-btn {
  min-width: 38px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #d7e2ef;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #40546e;
  font: inherit;
  font-weight: 950;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.icon-btn.danger {
  color: #b42318;
  border-color: #ffd1d1;
  background: #fff7f7;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-form-grid label {
  display: grid;
  gap: 7px;
  color: #40546e;
  font-size: 13px;
  font-weight: 900;
}

.dashboard-form-grid .span-2,
.dashboard-form-grid .top-actions {
  grid-column: 1 / -1;
}

.dashboard-form-grid .form-note {
  margin: 0;
  color: #64758d;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-tab {
  min-height: 48px;
  border: 1px solid #dfe9f5;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #243a59;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(20,33,61,.045);
  text-align: center;
}

.admin-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 14px 28px rgba(36,107,254,.22);
}

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

.empty-state {
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.profile-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e8f0fa;
  overflow: hidden;
}

.profile-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.student-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.student-profile-card {
  display: grid;
  gap: 14px;
}

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

.document-card {
  border: 1px solid #dfe9f5;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.cards-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card,
.event-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dfe9f5;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20,33,61,.06);
}
.visual {
  height: 126px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.38), transparent 24%),
    linear-gradient(135deg, var(--blue), var(--green));
}
.article-card .panel-body,
.event-card .panel-body { min-height: 190px; display: flex; flex-direction: column; gap: 12px; }
.card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--blue-dark); font-size: 13px; font-weight: 950; }

table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #edf2f8; vertical-align: middle; font-size: 14px; }
th { color: #6b7d94; font-size: 12px; text-transform: uppercase; font-weight: 950; letter-spacing: .03em; background: #fbfdff; }
.table-wrap { overflow-x: auto; }

.cms-shell {
  display: block;
}

.cms-preview { position: sticky; top: 24px; }

.cms-filters,
.cms-list,
.cms-form-grid,
.cms-toolbar { display: grid; gap: 12px; }

.cms-input {
  width: 100%;
  border: 1px solid #cfdceb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}

textarea.cms-input { resize: vertical; }

.cms-list { margin-top: 16px; }

.sidebar-cms-library {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 8px 0;
}

.sidebar-cms-title {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.sidebar-cms-input {
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.sidebar-cms-input::placeholder { color: rgba(255,255,255,.58); }
.sidebar-cms-input option { color: #14213d; }

.sidebar-cms-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.cms-list-item {
  width: 100%;
  border: 1px solid #e2ebf5;
  border-radius: 14px;
  background: #fbfdff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.sidebar-cms-list .cms-list-item {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 12px;
}

.sidebar-cms-list .cms-list-item small { color: rgba(255,255,255,.62); }

.cms-list-item strong { display: block; font-size: 14px; line-height: 1.25; }
.cms-list-item small { display: block; margin-top: 5px; color: var(--muted); font-weight: 750; }
.cms-page-item {
  background: rgba(36,107,254,.12);
  border-color: rgba(160,194,255,.45);
}

.sidebar-cms-list .cms-page-item {
  background: rgba(36,107,254,.22);
  border-color: rgba(166,199,255,.38);
}

.cms-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.cms-form-grid label {
  display: grid;
  gap: 7px;
  color: #40546e;
  font-size: 13px;
  font-weight: 900;
}

.cms-span-2 { grid-column: 1 / -1; }

.cms-category-manager {
  margin: 0 0 16px;
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.cms-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cms-category-head h3 {
  margin: 0;
  color: #14213d;
  font-size: 16px;
}

.cms-category-head p {
  margin: 4px 0 0;
  color: #64758d;
  font-size: 13px;
  font-weight: 750;
}

.cms-category-head select { max-width: 220px; }

.cms-category-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cms-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cms-category-chip {
  border: 1px solid #cfdceb;
  border-radius: 999px;
  background: #fff;
  color: #14213d;
  font-weight: 900;
  padding: 8px 10px 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cms-category-chip button {
  border: 0;
  background: #eef4ff;
  color: #40546e;
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  font-weight: 950;
  cursor: pointer;
}

.cms-category-chip .cms-category-icon-button {
  width: 24px;
  min-width: 24px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.cms-category-icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cms-category-chip button:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.cms-category-chip .cms-category-icon-button:hover {
  background: #dbeafe;
  color: #1f6feb;
}

.cms-toolbar {
  grid-template-columns: repeat(5, max-content);
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce7f4;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #f8fbff;
}

.cms-toolbar button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid #cfdceb;
  border-radius: 10px;
  background: #fff;
  color: #243a59;
  font-weight: 950;
  cursor: pointer;
}

.cms-rich-editor {
  min-height: 420px;
  border: 1px solid #dce7f4;
  border-radius: 0 0 14px 14px;
  background: #fff;
  padding: 18px;
  line-height: 1.65;
  outline: none;
}

.cms-rich-editor:focus { border-color: rgba(36,107,254,.55); box-shadow: 0 0 0 4px rgba(36,107,254,.08); }
.cms-savebar { margin-top: 16px; }

.cms-action-feedback {
  margin: -10px 0 18px;
  border: 1px solid #b9ebd1;
  border-radius: 14px;
  background: #e7f8ef;
  color: #13794b;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 920;
  box-shadow: 0 12px 26px rgba(19,121,75,.09);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.cms-action-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn[disabled],
.btn[aria-busy="true"] {
  cursor: wait;
  opacity: .72;
}

.cms-content-browser-grid {
  display: grid;
  gap: 18px;
}

.cms-content-category {
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
}

.cms-content-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cms-content-category-head h3 {
  margin: 0;
  color: #14213d;
  font-size: 17px;
}

.cms-content-items {
  display: grid;
  gap: 10px;
}

.cms-content-item {
  width: 100%;
  border: 1px solid #d8e4f3;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.cms-content-item:hover {
  border-color: rgba(36,107,254,.45);
  box-shadow: 0 10px 22px rgba(36,107,254,.08);
}

.cms-content-item strong {
  display: block;
  color: #14213d;
  line-height: 1.25;
}

.cms-content-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.cms-content-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.cms-preview-card {
  border-radius: 18px;
  border: 1px solid #dfe9f5;
  overflow: hidden;
  background: #fff;
}

.cms-preview-card img,
.cms-card-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.cms-preview-card > div { padding: 18px; }
.cms-preview-card h3 { margin-top: 12px; }
.cms-preview-content { margin-top: 14px; color: #40546e; font-size: 14px; line-height: 1.65; }
.cms-preview-visual { height: 140px; display: grid; place-items: center; color: #fff; font-weight: 950; background: linear-gradient(135deg, var(--blue), var(--green)); }
.cms-preview-page-text {
  margin-top: 14px;
  border-radius: 14px;
  background: #f6f9fd;
  border: 1px solid #dfe9f5;
  padding: 16px;
  color: #243a59;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 850;
}
.cms-preview-note {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 850;
}

.page-editor .panel-head p {
  margin-top: 6px;
  font-size: 13px;
}

.page-editor-grid {
  display: grid;
  gap: 22px;
}

.page-section-editor {
  border: 1px solid #dfe9f5;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(20,33,61,.055);
}

.page-section-editor summary {
  --section-accent: var(--blue);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  border-left: 7px solid var(--section-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--section-accent), #fff 88%), #fff);
  color: #17253e;
  cursor: pointer;
  list-style: none;
}

.page-section-editor summary::-webkit-details-marker {
  display: none;
}

.page-section-editor summary:after {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--section-accent);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.page-section-editor[open] summary {
  border-bottom: 1px solid #e7eef7;
}

.page-section-editor[open] summary:after {
  content: "-";
}

.page-section-editor:nth-child(4n + 1) summary { --section-accent: var(--blue); }
.page-section-editor:nth-child(4n + 2) summary { --section-accent: var(--green); }
.page-section-editor:nth-child(4n + 3) summary { --section-accent: #2d95c9; }
.page-section-editor:nth-child(4n + 4) summary { --section-accent: #f59e0b; }

.page-section-title {
  font-size: 18px;
  font-weight: 950;
}

.page-section-meta {
  margin-left: auto;
  color: #60718a;
  font-size: 12px;
  font-weight: 900;
}

.page-section-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.page-field {
  display: grid;
  gap: 8px;
  border: 1px solid #dfe9f5;
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px;
}

.page-field span {
  color: #17253e;
  font-size: 15px;
  font-weight: 950;
}

.page-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.page-field textarea {
  min-height: 92px;
  line-height: 1.55;
}

.page-image-field {
  gap: 12px;
}

.page-image-preview {
  min-height: 178px;
  border: 1px dashed #bfd0e5;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #60718a;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.page-image-preview img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  display: block;
}

.page-image-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.footer-partners-editor {
  grid-column: 1 / -1;
}

.footer-partners-editor .panel-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.footer-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-partner-card {
  min-width: 0;
  border: 1px solid #dfe9f5;
  border-radius: 18px;
  background: #fbfdff;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.footer-partner-card legend {
  padding: 0 8px;
  color: #14213d;
  font-size: 15px;
  font-weight: 950;
}

.footer-partner-card label {
  display: grid;
  gap: 8px;
  color: #40546e;
  font-size: 13px;
  font-weight: 900;
}

.footer-image-preview {
  min-height: 108px;
  border: 1px dashed #bfd0e5;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #60718a;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.footer-image-preview img {
  max-width: 100%;
  max-height: 92px;
  object-fit: contain;
  display: block;
}

.footer-partners-note {
  margin: 0;
  color: #64758d;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .shell { grid-template-columns: 86px 1fr; }
  .brand span:last-child,
  .nav-item span:last-child,
  .sidebar-footer { display: none; }
  .brand { justify-content: center; }
  .dashboard-brand-logo { width: 54px; height: 44px; padding: 5px; }
  .nav-item { justify-content: center; }
  .stats, .grid-3, .cards-list { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workspace, .grid-2, .student-hero { grid-template-columns: 1fr; }
  .cms-preview { position: static; }
}

@media (max-width: 760px) {
  .funding-row { padding: 12px 18px; }
  .government-logo { width: 48px; height: 48px; }
  .funding-title { font-size: 16px; }
  .funding-subtitle { display: none; }
  .shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 20px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .stats, .grid-3, .cards-list, .action-grid, .cms-form-grid, .dashboard-form-grid, .view-switch, .admin-tabs, .mini-grid, .document-grid, .footer-partners-grid { grid-template-columns: 1fr; }
  .cms-span-2,
  .dashboard-form-grid .span-2,
  .dashboard-form-grid .top-actions { grid-column: auto; }
  .page-section-editor summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-right: 62px;
    position: relative;
  }
  .page-section-editor summary:after {
    position: absolute;
    top: 14px;
    right: 14px;
  }
  .page-section-meta { margin-left: 0; }
  .page-image-actions { grid-template-columns: 1fr; }
}
