/* =========================================================
   Paragon Admin — Design System
   Two schools, one console. The campus switcher up top
   re-tints the whole interface: Navy = Senior Secondary,
   Coral = Paragon Kids. Everything else stays quiet.
   ========================================================= */

:root {
  /* --- Core palette --- */
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98A2B3;
  --bg: #F4F5F9;
  --card: #FFFFFF;
  --border: #E4E7EC;

  /* --- Campus identity (switchable) --- */
  --campus-primary: #1B2A4A;   /* Senior Secondary navy */
  --campus-primary-dark: #0E1730;
  --campus-primary-soft: #E9ECF4;
  --campus-accent: #C9A24B;    /* crest gold */
  --campus-name: "Senior Secondary";

  --sidebar-bg: #0E1730;
  --sidebar-bg-2: #16213E;
  --sidebar-text: #AEB6D4;
  --sidebar-text-active: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-pop: 0 12px 32px rgba(16, 24, 40, 0.18);
}

/* Kids campus theme */
body.theme-kids {
  --campus-primary: #E24B57;
  --campus-primary-dark: #B5323D;
  --campus-primary-soft: #FCEAEC;
  --campus-accent: #F2A93C;
  --campus-name: "Paragon Kids";
  --sidebar-bg: #241322;
  --sidebar-bg-2: #331B30;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-face {
  font-family: "Sora", "Inter", sans-serif;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

a { text-decoration: none; }

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-shell {
  min-height: 100vh;
  display: flex;
}

.btn-campus:hover, .btn-campus:focus {
    background: var(--campus-accent) !important;
    color:#fff !important;
}

.login-aside {
  position: relative;
  flex: 1 1 46%;
  background: linear-gradient(160deg, var(--campus-primary-dark), var(--campus-primary) 70%);
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.5s ease;
}
a.btn.btn-light.border {line-height: 32px;}

.login-aside::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.10) 0, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.08) 0, transparent 45%);
  pointer-events: none;
}

.login-crest {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.login-quote {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.25;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.login-quote span { color: var(--campus-accent); }

.login-toggle-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}

.login-toggle-pill button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.login-toggle-pill button.active {
  background: #fff;
  color: var(--campus-primary-dark);
}

.login-main {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--card);
}

.login-card { width: 100%; max-width: 380px; }

.login-card .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.login-card .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.login-card .form-control:focus {
  border-color: var(--campus-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--campus-primary) 18%, transparent);
}

.btn-campus {
  background: var(--campus-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn-campus:hover { filter: brightness(1.1); color: #fff; }
.btn-campus:active { transform: translateY(1px); }

@media (max-width: 860px) {
  .login-aside { display: none; }
  .login-main { flex: 1 1 100%; }
}

/* =========================================================
   DASHBOARD SHELL
   ========================================================= */

.app-shell { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: linear-gradient(185deg, var(--sidebar-bg), var(--sidebar-bg-2));
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  z-index: 1040;
  transition: transform 0.3s ease, background 0.5s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem 1rem;
}

.sidebar-brand .mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--campus-accent);
  color: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
}

.sidebar-brand .name {
  font-family: "Sora", sans-serif;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.15;
}
.sidebar-brand .name small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--sidebar-text);
}

/* Campus switcher — the signature element */
.campus-switch {
  margin: 0.25rem 1.25rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  display: flex;
  gap: 3px;
}

.campus-switch button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.campus-switch button.active {
  background: var(--campus-accent);
  color: #1a1a1a;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.9rem;
}

.sidebar-nav .nav-section {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 1rem 0.6rem 0.4rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sidebar-text);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-nav .nav-link i { width: 18px; text-align: center; font-size: 0.95rem; opacity: 0.85; }

.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: var(--campus-accent);
  color: #1a1a1a;
  font-weight: 600;
}
.sidebar-nav .nav-link.active i { opacity: 1; }

.sidebar-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-foot .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--campus-primary-soft);
  color: var(--campus-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.sidebar-foot .who { font-size: 0.8rem; color: #fff; font-weight: 600; line-height: 1.1; }
.sidebar-foot .role { font-size: 0.7rem; color: var(--sidebar-text); }

/* --- Backdrop for mobile --- */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(16,24,40,0.5);
  z-index: 1030;
}
.sidebar-backdrop.show { display: block; }

/* --- Main column --- */
.main-col {
  margin-left: 264px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(244,245,249,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.burger-btn {
  border: 1px solid var(--border);
  background: #fff;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.burger-btn:hover { background: var(--campus-primary-soft); }

.topbar-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.topbar-search input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  font-size: 0.85rem;
}
.topbar-search input:focus { outline: none; border-color: var(--campus-primary); }
.topbar-search i {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 0.85rem;
}

.topbar-live-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--campus-primary-dark);
  background: var(--campus-primary-soft);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  display: none;
  align-items: center;
  gap: 0.4rem;
}
.topbar-live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #12B76A;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--ink);
}

.icon-btn .ping {
  position: absolute; top: 6px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #F04438;
  border: 1.5px solid #fff;
}

.content {
  padding: 1.5rem;
  flex: 1;
}

/* --- Stat cards --- */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.25rem;
  height: 100%;
}

.stat-card .label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-card .value {
  font-family: "Sora", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.2rem 0 0.1rem;
}

.stat-card .delta { font-size: 0.75rem; font-weight: 600; }
.stat-card .delta.up { color: #12B76A; }
.stat-card .delta.down { color: #F04438; }

.stat-card .icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex; align-items: center; justify-content: center;
}

/* --- Panel / card --- */
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.panel-head {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h6 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}

.panel-body { padding: 1.1rem 1.25rem; }

.table-clean thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}
.table-clean td {
  vertical-align: middle;
  font-size: 0.85rem;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.table-clean tr:last-child td { border-bottom: none; }

.badge-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}
.badge-published { background: #ECFDF3; color: #027A48; }
.badge-draft { background: #FFF4E5; color: #B54708; }
.badge-review { background: #EFF4FF; color: #3538CD; }

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.quick-link:hover { border-color: var(--campus-primary); transform: translateY(-1px); color: var(--ink); }
.quick-link .qi {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quick-link .qt { font-size: 0.85rem; font-weight: 600; }
.quick-link .qs { font-size: 0.72rem; color: var(--muted); }

/* --- Floating notification --- */
.flash-toast {
  position: fixed;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1080;
  width: min(390px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(18, 183, 106, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(10px);
  animation: flashToastIn 0.28s ease both;
}

.flash-toast.hide {
  animation: flashToastOut 0.2s ease both;
}

.flash-toast-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ECFDF3;
  color: #027A48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.flash-toast-body {
  min-width: 0;
}

.flash-toast-body strong,
.flash-toast-body span {
  display: block;
}

.flash-toast-body strong {
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.flash-toast-body span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.flash-toast-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flash-toast-close:hover {
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
}

@keyframes flashToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes flashToastOut {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

/* --- Settings forms --- */
.content .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.content .form-control,
.content .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-size: 0.9rem;
}

.content textarea.form-control {
  resize: vertical;
}

.content .form-control:focus,
.content .form-select:focus {
  border-color: var(--campus-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--campus-primary) 14%, transparent);
}

.settings-logo-preview {
  max-width: 120px;
  max-height: 72px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.45rem;
}

.settings-og-preview {
  width: min(260px, 100%);
  aspect-ratio: 1.91;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.section-image-preview {
  width: min(520px, 100%);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}

.page-save-bar {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1090;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(16, 24, 40, 0.18);
  backdrop-filter: blur(10px);
}

.page-save-bar-copy {
  min-width: 0;
}

.page-save-bar-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.page-save-bar-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 0.15rem;
}

.page-save-bar-btn {
  white-space: nowrap;
}

.page-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-list-item:hover {
  border-color: var(--campus-primary);
  color: var(--ink);
}

.page-list-item.active {
  border-color: color-mix(in srgb, var(--campus-primary) 42%, var(--border));
  background: var(--campus-primary-soft);
}

.page-list-item strong,
.page-list-item small,
.page-list-item em {
  display: block;
}

.page-list-item strong {
  font-size: 0.86rem;
}

.page-list-item small {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 0.15rem;
}

.page-list-item em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
}

.empty-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.empty-state strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.empty-state span {
  max-width: 260px;
  font-size: 0.82rem;
}

.page-list-search {
  position: relative;
}

.page-list-search i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.page-list-search .form-control {
  padding-left: 2.15rem;
}

.page-list-search-empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.84rem;
  padding: 0.85rem;
  text-align: center;
}

.gallery-upload-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
}

.gallery-upload-thumb {
  width: 72px;
  aspect-ratio: 1;
  border-radius: 7px;
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-upload-fields {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.gallery-upload-remove {
  white-space: nowrap;
}

.awards-card-grid {
  display: grid;
  gap: 0.85rem;
}

.awards-card-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fbfcfe);
}

.awards-card-thumb {
  width: 90px;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.awards-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.awards-card-fields {
  min-width: 0;
}

.awards-card-remove {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  margin-bottom: 0.2rem;
}

.features-card-grid {
  display: grid;
  gap: 0.85rem;
}

.features-card-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.features-card-icon {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--campus-primary) 20%, var(--border));
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
}

.features-card-fields {
  min-width: 0;
}

.results-card-grid {
  display: grid;
  gap: 0.85rem;
}

.results-card-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.results-card-thumb {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--campus-primary-soft);
  color: var(--campus-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.results-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.results-card-fields {
  min-width: 0;
}

.results-card-remove {
  white-space: nowrap;
}

.testimonials-card-grid {
  display: grid;
  gap: 0.85rem;
}

.testimonials-card-row {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.testimonials-card-fields {
  min-width: 0;
}

.why-choose-card-grid {
  display: grid;
  gap: 0.85rem;
}

.why-choose-card-row {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.why-choose-card-fields {
  min-width: 0;
}

.recent-activities-card-grid {
  display: grid;
  gap: 0.85rem;
}

.recent-activities-card-row {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fff, #fcfcfd);
}

.recent-activities-card-fields {
  min-width: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-col { margin-left: 0; }
  .topbar-search { display: none; }
}

@media (max-width: 575.98px) {
  .content { padding: 1rem; }
  .topbar { padding: 0.75rem 1rem; }
  .stat-card .value { font-size: 1.4rem; }
  .gallery-upload-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .gallery-upload-thumb {
    width: 56px;
  }
  .gallery-upload-remove {
    grid-column: 1 / -1;
  }
  .awards-card-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .awards-card-thumb {
    width: 72px;
  }
  .awards-card-remove {
    grid-column: 1 / -1;
  }
  .features-card-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .features-card-icon {
    width: 68px;
    font-size: 1.25rem;
  }
  .results-card-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .results-card-thumb {
    width: 82px;
  }
  .testimonials-card-row {
    padding: 0.75rem;
  }
  .why-choose-card-row {
    padding: 0.75rem;
  }
  .recent-activities-card-row {
    padding: 0.75rem;
  }
  .page-save-bar {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    justify-content: space-between;
  }
}
