:root {
  --bgu-primary: #164676;
  --bgu-primary-dark: #0f3254;
  --bgu-azure: #3f60a9;
  --bgu-cornflower: #6699ff;
  --bgu-accent: #ff6600;
  --bgu-accent-soft: #fff1e6;
  --bgu-bg: #eef3f8;
  --bgu-text: #152033;
  --bgu-muted: #5d6e80;
  --bgu-card: #ffffff;
  --bgu-line: #d7e3ef;
  --cat-science: #164676;
  --cat-sport: #1b7a4a;
  --cat-study: #3f60a9;
  --shadow: 0 12px 40px rgba(22, 70, 118, 0.08);
  --radius: 16px;
}

html { font-size: 16px; }
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--bgu-text);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(102, 153, 255, 0.18), transparent 50%),
    radial-gradient(900px 320px at 100% 0%, rgba(255, 102, 0, 0.08), transparent 45%),
    var(--bgu-bg);
  min-height: 100vh;
}

.site-head {
  background: linear-gradient(120deg, var(--bgu-primary) 0%, #1d5a96 55%, var(--bgu-azure) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 50, 84, 0.25);
}
.site-head .navbar { padding: 0.85rem 0; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  text-decoration: none !important;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--bgu-primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -3px 0 var(--bgu-accent);
}
.brand-text {
  font-weight: 700;
  line-height: 1.15;
  font-size: 0.95rem;
}
.site-head .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 0.9rem !important;
}
.site-head .nav-link:hover,
.site-head .nav-link.active {
  background: rgba(255,255,255,.14);
  color: #fff !important;
}

.page-wrap { padding: 1.75rem 0 3rem; }

.page-title {
  color: var(--bgu-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: 999px;
  padding: 0.35rem 0.45rem;
  box-shadow: var(--shadow);
}
.cal-nav a, .cal-nav .aspNet-link {
  color: var(--bgu-primary);
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.cal-nav a:hover { background: #eef4fb; }
.cal-nav strong { padding: 0 0.5rem; min-width: 9rem; text-align: center; }

.filter-card {
  background: var(--bgu-card);
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 0.4rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.filter-card label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bgu-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.login-domain .input-group-text {
  background: #eef4fb;
  border-color: var(--bgu-line);
  color: var(--bgu-muted);
  font-weight: 700;
  border-radius: 10px 0 0 10px;
}
.login-domain .form-control {
  border-radius: 0 10px 10px 0;
}

.btn-primary {
  background-color: var(--bgu-primary);
  border-color: var(--bgu-primary);
  border-radius: 10px;
  font-weight: 700;
}
.btn-primary:hover {
  background-color: var(--bgu-primary-dark);
  border-color: var(--bgu-primary-dark);
}
.btn-accent {
  background: var(--bgu-accent);
  border-color: var(--bgu-accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
}
.btn-accent:hover { color: #fff; filter: brightness(0.95); }

.badge-science { background: var(--cat-science); color: #fff; }
.badge-sport { background: var(--cat-sport); color: #fff; }
.badge-study { background: var(--cat-study); color: #fff; }
.badge-level {
  background: #e8eef6;
  color: var(--bgu-primary);
  font-weight: 600;
}
.badge { border-radius: 999px; padding: 0.35em 0.7em; }

.cal-shell {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--bgu-line);
  margin-bottom: 1.75rem;
}
.cal-table {
  width: 100%;
  background: #fff;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.cal-table th {
  background: var(--bgu-primary);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0.4rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cal-table td {
  vertical-align: top;
  height: 118px;
  width: 14.28%;
  border: 1px solid #edf2f7;
  padding: 0.45rem;
  background: #fff;
}
.cal-table td.muted { background: #f6f8fb; color: #9aa7b5; }
.cal-table td.today { background: var(--bgu-accent-soft); box-shadow: inset 0 0 0 2px var(--bgu-accent); }
.cal-daynum { font-weight: 800; font-size: 0.82rem; color: var(--bgu-primary); }
.cal-ev {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  padding: 0.22rem 0.4rem 0.22rem 0.5rem;
  margin-top: 0.28rem;
  border-radius: 8px;
  color: #1a3050;
  background: #e8eef6;
  box-shadow: inset 3px 0 0 var(--cat-science);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ev:hover { color: #0f3254; text-decoration: none; transform: translateY(-1px); filter: brightness(0.97); }
.cal-ev.series {
  background: #fff1e6;
  color: #9a3d00;
  box-shadow: inset 3px 0 0 #e8945a;
}
.cal-ev.series:hover { color: #7a3000; }
.cal-ev.science { background: #e8eef6; color: #0f3254; box-shadow: inset 3px 0 0 var(--cat-science); }
.badge-series { background: var(--bgu-accent); color: #fff; }

.file-pick { position: relative; }
.file-pick input[type=file] {
  color: transparent;
  width: 100%;
  max-width: 100%;
}
.file-pick-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bgu-primary);
}
.cal-ev.sport { background: #e7f4ec; color: #145a36; box-shadow: inset 3px 0 0 var(--cat-sport); }
.cal-ev.study { background: #ebeef8; color: #2a4278; box-shadow: inset 3px 0 0 var(--cat-study); }
.cal-ev.span { box-shadow: inset 3px 0 0 #e8945a; }

.section-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bgu-accent);
  margin-bottom: 0.35rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--bgu-card);
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  height: calc(100% - 1.25rem);
  text-decoration: none !important;
  color: inherit;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22, 70, 118, 0.16);
  color: inherit;
}
.event-card-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bgu-primary);
  overflow: hidden;
}
.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 50, 84, 0.55) 100%);
  pointer-events: none;
}
.event-card-date {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  background: #fff;
  color: var(--bgu-primary);
  border-radius: 12px;
  min-width: 58px;
  text-align: center;
  padding: 0.4rem 0.45rem 0.45rem;
  box-shadow: 0 8px 18px rgba(15, 50, 84, 0.18);
  line-height: 1.05;
}
.event-card-date .d { display: block; font-size: 1.15rem; font-weight: 800; }
.event-card-date .m { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bgu-accent); }
.event-card-badges {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.event-card .body { padding: 1rem 1.15rem 1.05rem; display: flex; flex-direction: column; flex: 1; }
.event-card .body > .badge,
.event-card .badge-row .badge {
  align-self: flex-start;
  width: auto;
  display: inline-block;
}
.event-card .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-self: flex-start;
}
.event-card-lead {
  margin: 0.55rem 0 0;
  color: var(--bgu-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}
.series-lead {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  color: #243044;
  line-height: 1.65;
}
.event-card h3 { font-size: 1.08rem; color: var(--bgu-primary); font-weight: 800; line-height: 1.3; }
.event-card h3 a { color: inherit; }
.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  color: var(--bgu-muted);
  font-size: 0.82rem;
  margin-top: 0.45rem;
}
.event-card-meta span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bgu-cornflower);
  margin-right: 0.4rem;
  vertical-align: 1px;
}
.event-card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid #eef3f8;
  font-size: 0.8rem;
  color: var(--bgu-azure);
  font-weight: 600;
}
.event-card-files {
  color: var(--bgu-muted);
  font-weight: 600;
}
.event-card.row-card {
  flex-direction: row;
  height: auto;
}
.event-card.row-card .event-card-cover {
  width: 112px;
  flex: 0 0 112px;
  height: 112px;
  aspect-ratio: 1 / 1;
  min-height: 0;
}
@media (max-width: 767.98px) {
  .event-card.row-card { flex-direction: row; }
  .event-card.row-card .event-card-cover { width: 88px; height: 88px; flex: 0 0 88px; }
}

.event-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  background: var(--bgu-primary);
  margin-bottom: 1.5rem;
}
.event-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.event-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 32, 56, 0.82) 0%, rgba(10, 32, 56, 0.35) 55%, rgba(10, 32, 56, 0.15) 100%),
    linear-gradient(180deg, transparent 40%, rgba(10, 32, 56, 0.55) 100%);
}
.event-hero-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem 2.1rem 1.8rem;
  color: #fff;
}
.event-hero-inner h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 42rem;
  margin: 0.7rem 0 0.85rem;
}
.event-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.event-chip {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.event-layout { align-items: flex-start; }
.event-main {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}
.event-main p { line-height: 1.7; color: #243044; }
.event-aside { position: sticky; top: 1rem; }
.facts-card, .files-card {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.facts-card h2, .files-card h2, .event-main h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bgu-muted);
  margin-bottom: 0.9rem;
}
.fact {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef3f8;
}
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact:first-of-type { padding-top: 0; }
.fact-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--bgu-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact-ico svg { width: 18px; height: 18px; display: block; }
.fact strong { display: block; font-size: 0.74rem; color: var(--bgu-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.fact span, .fact a { color: var(--bgu-text); font-weight: 600; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #d7e3ef;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--bgu-line);
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  margin-bottom: 0.65rem;
  transition: border-color .15s ease, transform .15s ease;
}
.file-tile:last-child { margin-bottom: 0; }
.file-tile:hover {
  border-color: var(--bgu-cornflower);
  transform: translateY(-1px);
  color: inherit;
}
.file-ext {
  width: 46px;
  height: 52px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.file-ext.pdf { background: #c0392b; }
.file-ext.doc { background: var(--bgu-azure); }
.file-ext.xls { background: #1b7a4a; }
.file-ext.img { background: #1d6aa5; }
.file-ext.zip { background: var(--bgu-primary); }
.file-tile .name { display: block; font-weight: 700; color: var(--bgu-primary); line-height: 1.25; }
.file-tile .hint { display: block; font-size: 0.78rem; color: var(--bgu-muted); margin-top: 0.12rem; }
.file-tile-body { flex: 1; min-width: 0; }
.file-dl {
  display: inline-block;
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bgu-accent);
}

.admin-sidebar {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 0.85rem 0.7rem 0.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
}
.admin-sidebar .nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bgu-muted);
  padding: 0.45rem 0.75rem 0.25rem;
}
.admin-sidebar .nav-link {
  color: var(--bgu-primary);
  border-radius: 10px;
  font-weight: 600;
  margin: 0.12rem 0;
  padding: 0.5rem 0.8rem;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: var(--bgu-primary);
  color: #fff;
}
.admin-sidebar .nav-link.ghost {
  color: var(--bgu-muted);
}
.admin-sidebar .nav-link.ghost:hover {
  background: #eef4fb;
  color: var(--bgu-primary);
}
.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.85rem;
}
.admin-user-ava {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--bgu-primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-user small { display: block; opacity: .7; font-size: 0.72rem; }

.admin-panel {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.admin-stats {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  color: var(--bgu-muted);
  font-weight: 600;
}
.admin-stat b { color: var(--bgu-primary); font-size: 1rem; margin-right: 0.2rem; }

.admin-filters {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 0.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.admin-filters .form-control {
  border-radius: 10px;
  border-color: var(--bgu-line);
}

.admin-item {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  text-decoration: none !important;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.admin-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(22, 70, 118, 0.12);
  color: inherit;
}
.admin-item-cover {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bgu-primary);
}
.admin-item-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.form-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}
.form-cover-0 { background: var(--bgu-primary); }
.form-cover-1 { background: var(--bgu-azure); }
.form-cover-2 { background: var(--bgu-accent); }
.form-cover-3 { background: var(--cat-sport); }
.form-cover-4 { background: var(--bgu-primary-dark); }
.form-cover-5 { background: #1d5a96; }
.admin-item-body { flex: 1; min-width: 0; }
.admin-item-body h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--bgu-primary);
  margin: 0.25rem 0 0.2rem;
  line-height: 1.3;
}
.admin-item-body h3 a { color: inherit; text-decoration: none; }
.admin-item-body h3 a:hover { color: var(--bgu-azure); }
.pic-dup { outline: 2px solid #c0392b; border-radius: 12px; padding: 2px; }
.admin-item-meta {
  color: var(--bgu-muted);
  font-size: 0.82rem;
}
.admin-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.admin-item-actions { display: flex; align-items: center; gap: 0.4rem; }
.admin-item-actions a, .admin-item-actions button, .admin-item-actions input {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--bgu-line);
  background: #f7fafc;
  color: var(--bgu-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
.admin-item-actions .danger { color: #a12626; }

.st-pub { background: #e7f6ee; color: #146c3a; font-weight: 700; }
.st-edit { background: #eef3f8; color: var(--bgu-primary); font-weight: 700; }
.st-del { background: #fdecea; color: #a12626; font-weight: 700; }

.btn-ghost {
  background: #fff;
  border: 1px solid var(--bgu-line);
  color: var(--bgu-primary);
  font-weight: 700;
  border-radius: 10px;
  height: 38px;
}
.btn-ghost:hover {
  border-color: var(--bgu-azure);
  color: var(--bgu-azure);
  background: #fff;
}

.admin-list-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  min-height: 1.2rem;
}
.admin-pager-info {
  font-size: 0.86rem;
  color: var(--bgu-muted);
  font-weight: 600;
}
.admin-empty {
  background: #fff;
  border: 1px dashed var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  color: var(--bgu-muted);
  text-align: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 1rem 0 0.25rem;
}
.admin-pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--bgu-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bgu-primary);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.admin-pager-btn:hover { border-color: var(--bgu-azure); color: var(--bgu-azure); }
.admin-pager-btn.is-on {
  background: var(--bgu-primary);
  border-color: var(--bgu-primary);
  color: #fff;
}
.admin-pager-btn.is-off {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--bgu-muted);
  font-weight: 600;
}

.journal-item { align-items: flex-start; }
.journal-ava {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--bgu-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.journal-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.2rem;
}
.journal-when {
  margin-left: auto;
  color: var(--bgu-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.journal-who {
  font-weight: 800;
  color: var(--bgu-primary);
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0.15rem 0 0.2rem;
}
.journal-who .text-muted { font-weight: 600; font-size: 0.78rem; }
.journal-act {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
}
.journal-act-create { background: #e8f1fb; color: var(--bgu-primary); }
.journal-act-edit { background: #eef3f8; color: var(--bgu-primary); }
.journal-act-pub { background: #e7f6ee; color: #146c3a; }
.journal-act-off { background: #fff4e5; color: #b86a00; }
.journal-act-del { background: #fdecea; color: #a12626; }
.journal-act-pic { background: #f3e8fb; color: #6b3fa0; }
.journal-act-file { background: #e8f6f4; color: #0f6b62; }

.form-section {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 0.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.form-section h2 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bgu-muted);
  margin-bottom: 1rem;
}
.form-section label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bgu-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-section .form-control {
  border-radius: 10px;
  border-color: var(--bgu-line);
}
.form-sticky {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: rgba(238, 243, 248, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--bgu-line);
  padding: 0.85rem 0;
  margin-top: 0.5rem;
  z-index: 5;
}
.form-sticky .sticky-main,
.form-sticky .sticky-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.form-sticky .sticky-side { margin-left: auto; }
.form-sticky .btn {
  height: 42px;
  min-height: 42px;
  padding: 0 1.15rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
.form-sticky .btn-ghost {
  background: #fff;
  border: 1px solid var(--bgu-line);
  color: var(--bgu-primary);
}
.form-sticky .btn-ghost:hover {
  border-color: var(--bgu-azure);
  color: var(--bgu-azure);
  background: #fff;
  text-decoration: none;
}
.form-sticky .btn-danger-soft {
  background: #fff;
  border: 1px solid #f0c4c0;
  color: #c0392b;
}
.form-sticky .btn-danger-soft:hover {
  background: #fff5f4;
  border-color: #c0392b;
  color: #922b21;
}
#statusModal .modal-dialog-centered {
  min-height: calc(100% - 1rem);
}
.cover-box {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}
.cover-preview {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bgu-primary);
  flex: 0 0 160px;
}
.cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropzone {
  flex: 1;
  border: 1.5px dashed #b7c9db;
  border-radius: 14px;
  background: #f7fafc;
  padding: 1rem 1.1rem;
  color: var(--bgu-muted);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dropzone strong { color: var(--bgu-primary); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.gal-item { cursor: grab; }
.gal-item.is-dragging { opacity: 0.45; }
.media-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #d7e3ef;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .x {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15,50,84,.75);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tree-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #eef3f8;
}
.tree-row:last-child { border-bottom: 0; }
.tree-row.child { padding-left: 2.2rem; }
.tree-name { font-weight: 700; color: var(--bgu-primary); }
.tree-short { color: var(--bgu-muted); font-size: 0.82rem; margin-left: 0.4rem; }
.user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef3f8;
}
.user-card:last-child { border-bottom: 0; }
.user-person {
  background: #fff;
  border: 1px solid var(--bgu-line);
  border-radius: 14px;
  padding: 0.9rem 1.05rem 0.75rem;
  margin: 0 0 0.75rem;
}
.user-person-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.user-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.6rem;
  margin: 0 0 0.4rem;
  background: #f6f9fc;
  border-radius: 10px;
}
.user-line:last-child { margin-bottom: 0; }
.role-pill {
  background: #eef4fb;
  color: var(--bgu-primary);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .admin-item { flex-wrap: wrap; }
  .admin-item-cover { width: 72px; height: 72px; flex: 0 0 72px; }
  .admin-item-side { width: 100%; flex-direction: row; align-items: center; }
  .cover-box { flex-direction: column; }
  .cover-preview { width: 120px; height: 120px; flex: 0 0 120px; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

.bgu-footer {
  background: var(--bgu-primary-dark);
  color: rgba(255,255,255,.8);
  font-size: 0.85rem;
  margin-top: auto;
  padding: 1.4rem 0;
}

.mini-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.mini-editor-btn {
  border: 1px solid var(--bgu-line);
  background: #f8fbff;
  color: var(--bgu-primary);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.mini-editor-btn:hover { background: #eaf1fb; }
.mini-editor-btn-accent {
  background: rgba(255, 102, 0, 0.12);
  border-color: rgba(255, 102, 0, 0.28);
  color: #9a4300;
}
.mini-editor-surface {
  min-height: 220px;
  border: 1px solid var(--bgu-line);
  border-radius: 12px;
  padding: 1rem;
  line-height: 1.7;
  background: #fff;
}
.mini-editor-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.mini-editor-table th, .mini-editor-table td { border: 1px solid #bfd0e3; padding: 0.55rem 0.7rem; }
.mini-editor-table th { background: #f3f7fc; }
.editor-note { color: #6f839a; font-size: 0.85rem; margin-top: 0.7rem; }
a.article-button {
  display: inline-block;
  margin: 0.5rem 0.25rem 0.85rem 0;
  padding: 0.35rem 0.9rem;
  background: var(--bgu-accent);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .cal-table td { height: auto; min-height: 72px; font-size: 0.8rem; }
  .cal-ev { white-space: normal; }
  .event-hero img { height: 280px; }
  .event-hero-inner { padding: 1.25rem 1.15rem 1.2rem; }
  .event-hero-inner h1 { font-size: 1.35rem; }
}
