:root {
  --green: #0b6b3a;
  --green2: #0f8c4a;
  --deep: #062b1a;
  --gold: #c79a2a;
  --purple: #6338a7;
  --blue: #1261a6;
  --orange: #c05621;
  --red: #b42318;
  --teal: #0f766e;
  --dark: #0f172a;
  --muted: #64748b;
  --bg: #f6faf8;
  --card: #fff;
  --line: #dbe7df;
  --radius: 22px
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.55
}

a {
  color: var(--green);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.skip {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 10px
}

.skip:focus {
  left: 8px
}

.topbar {
  background: var(--deep);
  color: #fff;
  padding: 8px 5vw;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  flex-wrap: wrap;
  min-height: 38px;
  box-shadow: 0 6px 16px rgba(2, 22, 13, .2)
}

.sitehead {
/*  background: linear-gradient(135deg, var(--green) 0%, #094629 58%, #02160d 100%);*/
  background: linear-gradient(135deg, #000000 0%, #094629 58%, #13464a 100%);
  color: #fff;
  padding: 13px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1200;
  box-shadow: 0 10px 24px rgba(2, 22, 13, .26);
  border-bottom: 1px solid rgba(255, 255, 255, .16)
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff !important;
  text-decoration: none !important
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 23px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  overflow: hidden
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px
}

.brand strong {
  font-size: 1.05rem
}

.brand small {
  display: block;
  color: #e8fff1;
  font-size: 12px
}

.navlinks {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap
}

.navlinks a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: .95
}

.nav-login {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px
}

.home-shell {
  padding: 0
}

.container {
  max-width: 1240px;
  margin: auto;
  padding: 32px 5vw
}

.home-hero {
  background: linear-gradient(135deg, var(--green) 0%, #094629 52%, #02160d 100%);
  color: #fff;
  padding: 58px 5vw 82px;
  position: relative;
  overflow: hidden
}

.home-hero:after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09)
}

.home-hero:before {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(199, 154, 42, .18)
}

.hero-grid {
  max-width: 1240px;
  margin: auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 30px;
  align-items: center
}

.home-hero h1 {
  font-size: clamp(31px, 5vw, 58px);
  line-height: 1.03;
  margin: 0 0 16px;
  letter-spacing: -1.5px
}

.home-hero p {
  font-size: 18px;
  color: #e8fff1;
  max-width: 780px
}

.hero-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.hero-actions {
  margin-top: 22px
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer
}

.btn:hover {
  text-decoration: none;
  filter: brightness(.97)
}

.btn.primary {
  background: #fff;
  color: var(--green);
  border-radius: 999px;
  padding: 12px 18px
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 12px 18px
}

.btn.danger {
  background: var(--red)
}

.searchbox {
  background: #fff;
  color: var(--dark);
  padding: 21px;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .4)
}

.searchbox label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .6px;
  margin: 0
}

.searchrow {
  display: flex;
  gap: 8px;
  margin-top: 8px
}

.searchrow input {
  margin: 0
}

.searchrow button {
  white-space: nowrap
}

.home-content {
  padding: 0 5vw 34px;
  max-width: 1340px;
  margin: auto
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -58px;
  position: relative;
  z-index: 5
}

.stat {
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 30px rgba(2, 32, 19, .12);
  color: #fff;
  min-height: 120px;
  position: relative;
  overflow: hidden
}

.stat:after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -40px;
  top: -40px;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%
}

.stat strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 9px
}

.stat span {
  font-weight: 700
}

.stat:nth-child(1) {
  background: linear-gradient(135deg, var(--green), #15a05e)
}

.stat:nth-child(2) {
  background: linear-gradient(135deg, var(--blue), #38bdf8)
}

.stat:nth-child(3) {
  background: linear-gradient(135deg, #9a6700, #f3b72f)
}

.stat:nth-child(4) {
  background: linear-gradient(135deg, #4c1d95, #8b5cf6)
}

section {
  margin: 34px auto;
  max-width: 1240px
}

h1,
h2,
h3 {
  letter-spacing: -.35px
}

h2 {
  font-size: 30px;
  margin: 0 0 12px
}

.section-lead {
  color: var(--muted);
  max-width: 920px
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.card,
.cms-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  box-shadow: 0 10px 25px rgba(2, 32, 19, .06)
}

.card h3 {
  margin-top: 0;
  color: var(--green)
}

.feature-card {
  border-top: 7px solid var(--green);
  position: relative;
  overflow: hidden
}

.feature-card:after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  opacity: .13;
  background: var(--green)
}

.feature-card.blue {
  border-top-color: var(--blue)
}

.feature-card.blue h3 {
  color: var(--blue)
}

.feature-card.gold {
  border-top-color: var(--gold)
}

.feature-card.gold h3 {
  color: #9a6700
}

.feature-card.purple {
  border-top-color: var(--purple)
}

.feature-card.purple h3 {
  color: var(--purple)
}

.feature-card.teal {
  border-top-color: var(--teal)
}

.feature-card.teal h3 {
  color: var(--teal)
}

.feature-card.orange {
  border-top-color: var(--orange)
}

.feature-card.orange h3 {
  color: var(--orange)
}

.feature-link {
  display: inline-flex;
  margin-top: 12px;
  font-weight: 900;
  border-bottom: 2px solid currentColor
}

.badge {
  display: inline-flex;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f7ef;
  color: var(--green);
  font-weight: 800;
  margin: 3px 3px 3px 0
}

.badge.blue {
  background: #eaf4ff;
  color: #075985
}

.badge.gold {
  background: #fff7de;
  color: #765100
}

.badge.purple {
  background: #f1eafe;
  color: #5b21b6
}

.badge.orange {
  background: #fff0e6;
  color: #9a3412
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.workflow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px
}

.flowbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  font-size: 13px;
  min-height: 132px;
  box-shadow: 0 10px 24px rgba(2, 32, 19, .06)
}

.flowbox .num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  margin-bottom: 10px
}

.flowbox:nth-child(2) .num {
  background: var(--blue)
}

.flowbox:nth-child(3) .num {
  background: var(--gold)
}

.flowbox:nth-child(4) .num {
  background: var(--purple)
}

.flowbox:nth-child(5) .num {
  background: var(--teal)
}

.flowbox:nth-child(6) .num {
  background: var(--orange)
}

.excellence-hero {
  background: linear-gradient(135deg, var(--deep) 0%, var(--green) 48%, var(--blue) 100%);
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 22px 50px rgba(2, 32, 19, .18)
}

.excellence-hero h2 {
  color: #fff
}

.excellence-hero .section-lead {
  color: #e8fff1
}

.excellence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px
}

.excellence-pill {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22)
}

.excellence-pill strong {
  display: block;
  font-size: 24px;
  color: #fff7b3
}

.credit-panel {
  background: linear-gradient(135deg, #fff 0%, #f0fff6 52%, #eef6ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(2, 32, 19, .08)
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px
}

.credit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(2, 32, 19, .06);
  border-top: 6px solid var(--green)
}

.credit-card:nth-child(2n) {
  border-top-color: var(--blue)
}

.credit-card:nth-child(3n) {
  border-top-color: var(--purple)
}

.credit-card:nth-child(4n) {
  border-top-color: var(--gold)
}

.credit-disclaimer {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  background: #fff7de;
  color: #5b4200
}

.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.wide {
  grid-column: 1/-1
}

label {
  display: block;
  font-weight: 800;
  margin-top: 10px
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff
}

textarea {
  min-height: 120px;
  resize: vertical
}

.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(2, 32, 19, .05)
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 14px;
  vertical-align: top
}

th {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 8;
  white-space: nowrap
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 14px 0
}

.alert.success {
  background: #dcfce7;
  border: 1px solid #86efac
}

.alert.error {
  background: #fee2e2;
  border: 1px solid #fca5a5
}

.announcement {
  padding: 10px 5vw;
  text-align: center
}

.announcement-warning {
  background: #fff3cd
}

.announcement-emergency {
  background: #b42318;
  color: #fff
}

.announcement-success {
  background: #dcfce7
}

.adminhead {
  background: #0f172a;
  color: #fff;
  padding: 12px 3vw;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1200
}

.adminhead nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-height: 108px;
  overflow: auto
}

.adminhead nav a {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px
}

.admin-ui .container {
  max-width: 1500px
}

.admin-ui .card {
  border-top: 5px solid var(--green)
}

footer {
  padding: 30px 5vw;
  margin-top: 36px
}

.footer-credit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .94rem;
  color: #fff7b3
}

.cms-section {
  margin: 1rem 0
}

.layout-split,
.layout-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.layout-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.layout-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem
}

.cms-section img {
  max-width: 100%;
  height: auto
}

@media(max-width:1000px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr
  }
  .grid {
    grid-template-columns: 1fr 1fr
  }
  .workflow {
    grid-template-columns: repeat(3, 1fr)
  }
  .stats {
    margin-top: 20px
  }
  .excellence-strip,
  .credit-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:680px) {
  .topbar {
    display: none
  }
  .sitehead {
    position: static
  }
  .brand small {
    display: none
  }
  .navlinks {
    width: 100%;
    gap: 8px
  }
  .navlinks a {
    font-size: 12px
  }
  .brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px
  }
  .home-hero {
    padding: 38px 5vw 46px
  }
  .grid,
  .stats,
  .formgrid,
  .workflow,
  .excellence-strip,
  .credit-grid,
  .layout-split,
  .layout-grid-2,
  .layout-grid-3,
  .layout-grid-4 {
    grid-template-columns: 1fr
  }
  .searchrow {
    flex-direction: column
  }
  .home-content {
    padding: 0 4vw 24px
  }
  .container {
    padding: 24px 4vw
  }
  .adminhead {
    position: static
  }
  .adminhead nav {
    max-height: none
  }
}

/* Homepage OER Hub and Global Gateway — aligned with Feature Demo v8 */

html {
  scroll-behavior: smooth
}

.homepage-anchor {
  scroll-margin-top: 145px
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap
}

.faculty-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  max-height: 128px;
  overflow: auto;
  padding: 2px
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px
}

.tab:hover,
.tab:focus {
  border-color: var(--green);
  color: var(--green)
}

.tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 7px 18px rgba(11, 107, 58, .22)
}

.faculty-summary,
.gateway-count-banner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0
}

.mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px;
  box-shadow: 0 8px 20px rgba(2, 32, 19, .05)
}

.mini strong {
  display: block;
  font-size: 23px;
  color: var(--green)
}

.mini-green {
  border-left: 6px solid var(--green)
}

.mini-blue {
  border-left: 6px solid var(--blue)
}

.mini-blue strong {
  color: var(--blue)
}

.mini-purple {
  border-left: 6px solid var(--purple)
}

.mini-purple strong {
  color: var(--purple)
}

.mini-orange {
  border-left: 6px solid var(--orange)
}

.mini-orange strong {
  color: var(--orange)
}

.oer-home-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: start;
  background: linear-gradient(135deg, #fff, #f1fff6);
  border: 1px solid #cfe9d7;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(11, 107, 58, .09)
}

.department-list {
  max-height: 330px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-right: 3px
}

.dept-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 14px;
  padding: 10px;
  font-size: 13px;
  box-shadow: 0 5px 12px rgba(2, 32, 19, .04)
}

.dept-pill a {
  display: block;
  color: var(--dark);
  font-weight: 850
}

.dept-pill a:hover {
  color: var(--green)
}

.dept-pill small {
  color: var(--muted)
}

.oer-home-cards {
  grid-template-columns: 1fr
}

.oer-action {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--green);
  font-weight: 900;
  font-size: 12px
}

.note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 6px solid #d97706;
  padding: 14px;
  border-radius: 16px;
  color: #713f12
}

.gateway-filterbar {
  display: grid;
  grid-template-columns: 1.25fr .9fr .85fr .8fr;
  gap: 10px;
  margin: 14px 0
}

.gateway-scroll {
  max-height: 620px;
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 30px rgba(2, 32, 19, .08)
}

.gateway-scroll table {
  min-width: 1180px;
  border-radius: 0
}

.gateway-scroll th {
  top: 0 !important;
  z-index: 20
}

.gateway-scroll td:nth-child(2) {
  min-width: 270px
}

.gateway-scroll td:nth-child(5),
.gateway-scroll td:nth-child(6) {
  min-width: 165px
}

.gateway-record[hidden] {
  display: none
}

.row-nigeria td {
  background: #ecfdf3
}

.row-africa td {
  background: #f1fff7
}

.row-global td {
  background: #eef6ff
}

.row-directory td {
  background: #f5f3ff
}

.row-top td {
  background: #fbf7ff
}

.row-subscribed td {
  background: #fff7ed
}

.gateway-record:hover td {
  filter: brightness(.975)
}

.rowtag {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 850;
  font-size: 11px;
  line-height: 1.25
}

.tag-nigeria {
  background: #bbf7d0;
  color: #14532d
}

.tag-africa {
  background: #dcfce7;
  color: #166534
}

.tag-global {
  background: #dbeafe;
  color: #1d4ed8
}

.tag-directory {
  background: #ede9fe;
  color: #5b21b6
}

.tag-top {
  background: #f3e8ff;
  color: #6d28d9
}

.tag-subscribed {
  background: #ffedd5;
  color: #9a3412
}

.access-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .12);
  font-size: 11px;
  font-weight: 800
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  background: #f59e0b
}

.status-dot.ok {
  background: #16a34a
}

.status-dot.warn {
  background: #f59e0b
}

.gateway-open {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff !important;
  font-weight: 850;
  white-space: nowrap
}

.gateway-footer-count {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px
}

.gateway-home {
  background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(240, 255, 246, .75));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 18px 42px rgba(2, 32, 19, .07)
}

@media(max-width:1000px) {
  .oer-home-panel {
    grid-template-columns: 1fr
  }
  .faculty-summary,
  .gateway-count-banner {
    grid-template-columns: repeat(2, 1fr)
  }
  .gateway-filterbar {
    grid-template-columns: 1fr 1fr
  }
  .homepage-anchor {
    scroll-margin-top: 170px
  }
}

@media(max-width:680px) {
  .faculty-summary,
  .gateway-count-banner,
  .gateway-filterbar,
  .department-list {
    grid-template-columns: 1fr
  }
  .section-heading-row .btn {
    width: 100%
  }
  .gateway-home {
    padding: 15px
  }
  .faculty-tabs {
    max-height: 180px
  }
  .gateway-scroll {
    max-height: 520px
  }
  .homepage-anchor {
    scroll-margin-top: 85px
  }
}

/* Homepage full demo alignment and CMS-governed sections */

.public-ui .sitehead+main.home-shell {
  margin-top: 0
}

.template-hero {
  margin-top: 0;
  border-top: 0
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px
}

.hero-copy {
  padding: 6px 0
}

.itempage {
  border-left: 7px solid var(--green)
}

.meta {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 9px;
  font-size: 14px;
  margin-top: 12px
}

.meta b {
  color: #334155
}

.repository-community-table {
  max-height: 460px
}

.upload-panel {
  background: linear-gradient(135deg, #fff, #f1fff6);
  border: 1px solid #cfe9d7;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(11, 107, 58, .09)
}

.upload-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap
}

.upload-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--deep);
  color: #fff;
  font-size: 13px;
  font-weight: 850
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0
}

.upload-preview-grid>div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px
}

.excellence-cards {
  margin-top: 18px
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.module-band {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--green);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(2, 32, 19, .05)
}

.module-band.blue {
  border-left-color: var(--blue)
}

.module-band.gold {
  border-left-color: var(--gold)
}

.module-band.teal {
  border-left-color: var(--teal)
}

.module-band.red {
  border-left-color: var(--red)
}

.module-band ul {
  margin: 10px 0 0;
  padding-left: 19px
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(2, 32, 19, .05)
}

.service-card:nth-child(4n+1) {
  border-top: 6px solid var(--green)
}

.service-card:nth-child(4n+2) {
  border-top: 6px solid var(--blue)
}

.service-card:nth-child(4n+3) {
  border-top: 6px solid var(--purple)
}

.service-card:nth-child(4n+4) {
  border-top: 6px solid var(--orange)
}

.showcase-grid {
  margin-top: 18px
}

.credit-header {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px
}

.credit-note {
  background: var(--deep);
  color: #d7ffdf;
  border-radius: 22px;
  padding: 17px
}

.credit-note strong {
  color: #fff7b3
}

.oer-home-cards .card {
  padding: 14px;
  min-height: auto
}

.oer-home-cards .card h3 {
  font-size: 17px;
  margin-bottom: 6px
}

.oer-home-cards .card p {
  margin: 5px 0;
  font-size: 13px
}

.oer-home-panel {
  grid-template-columns: 1.05fr .95fr
}

.gateway-scroll td:first-child,
.gateway-scroll th:first-child {
  text-align: center;
  width: 56px;
  min-width: 56px;
  font-weight: 900
}

.homepage-admin-grid {
  grid-template-columns: repeat(3, 1fr)
}

@media(max-width:1000px) {
  .upload-preview-grid,
  .service-grid,
  .homepage-admin-grid {
    grid-template-columns: repeat(2, 1fr)
  }
  .matrix,
  .credit-header {
    grid-template-columns: 1fr
  }
}

@media(max-width:680px) {
  .meta,
  .upload-preview-grid,
  .service-grid,
  .homepage-admin-grid {
    grid-template-columns: 1fr
  }
  .oer-home-panel {
    padding: 14px
  }
  .oer-home-cards .card {
    padding: 12px
  }
}

/* Compact full-width homepage hero — July 2026 refinement */

.home-hero.template-hero {
  width: 100%;
  min-height: 0;
  padding: 28px 3vw 42px;
  margin: 0;
}

.home-hero.template-hero .hero-grid {
  width: 100%;
  max-width: 1440px;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  gap: 24px;
}

.home-hero.template-hero .hero-copy {
  padding: 0;
}

.home-hero.template-hero h1 {
  font-size: clamp(30px, 4.15vw, 54px);
  line-height: 1.01;
  margin-bottom: 11px;
  max-width: 920px;
}

.home-hero.template-hero .hero-copy>p {
  margin: 0;
  max-width: 900px;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.5;
}

.home-hero.template-hero .hero-actions {
  margin-top: 15px;
}

.home-hero.template-hero .searchbox {
  padding: 16px;
  border-radius: 20px;
}

.home-hero.template-hero .hero-kicker {
  margin-bottom: 8px;
  padding: 5px 10px;
}

@media(max-width:1000px) {
  .home-hero.template-hero {
    padding: 25px 4vw 34px;
  }
  .home-hero.template-hero .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:680px) {
  .home-hero.template-hero {
    padding: 22px 4vw 30px;
  }
  .home-hero.template-hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }
}

/* v22 corrective enterprise UI */

.adminhead {
  position: relative;
  top: auto;
  display: block;
  padding: 14px 3vw
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start
}

.admin-menu-group {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  padding: 10px
}

.admin-menu-group strong {
  display: block;
  color: #fff7b3;
  margin-bottom: 7px
}

.admin-menu-group a {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: normal
}

.admin-menu-group a:hover {
  background: rgba(255, 255, 255, .12)
}

.dashboard-grid,
.security-grid,
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px
}

.dashboard-grid>*,
.security-grid>*,
.research-grid>* {
  min-width: 0;
  overflow-wrap: anywhere
}

.chart-wrap,
.tablewrap {
  max-width: 100%;
  overflow: auto
}

.chart-wrap canvas {
  max-width: 100% !important;
  height: auto !important
}

.status-badge {
  white-space: normal;
  display: inline-flex;
  max-width: 100%
}

@media(max-width:760px) {
  .admin-menu {
    grid-template-columns: 1fr
  }
  .dashboard-grid,
  .security-grid,
  .research-grid {
    grid-template-columns: 1fr
  }
  .adminhead {
    padding: 12px
  }
  .tablewrap table {
    min-width: 720px
  }
}

/* Centralised professional two-column homepage banner */

.home-hero.professional-video-hero {
  width: 100%;
  min-height: 520px;
  padding: 72px 24px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--hero-text-colour, #fff);
  background: var(--hero-gradient, linear-gradient(135deg, #063b1f 0%, #0b6b36 45%, #f4b400 100%));
  overflow: hidden;
  position: relative;
}

.home-hero.professional-video-hero:before,
.home-hero.professional-video-hero:after {
  pointer-events: none
}

.professional-video-hero .home-hero-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 42px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.professional-video-hero .home-hero-content {
  max-width: 620px;
  margin: 0;
  padding: 24px 0;
  color: inherit;
  min-width: 0;
}

.professional-video-hero .hero-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em
}

.professional-video-hero .home-hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: inherit;
  letter-spacing: -1.4px;
}

.professional-video-hero .home-hero-content .hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.4;
  font-weight: 600;
  color: #fff7b3;
}

.professional-video-hero .home-hero-content .hero-description {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 580px;
  color: #e8fff1;
}

.professional-video-hero .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 0
}

.professional-video-hero .home-hero-video-wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--hero-video-padding, 18px);
  border-radius: var(--hero-video-radius, 28px);
  background: var(--hero-video-background, rgba(255, 255, 255, .18));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .24);
  min-width: 0;
}

.professional-video-hero .home-hero-video {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: var(--hero-video-max-height, 360px);
  border-radius: calc(var(--hero-video-radius, 28px) - 8px);
  overflow: hidden;
  background: #0f172a;
}

.professional-video-hero .home-hero-video video,
.professional-video-hero .home-hero-video img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0f172a
}

.professional-video-hero .hero-media-placeholder {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04))
}

.professional-video-hero .hero-media-placeholder span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0b6b3a;
  font-size: 28px;
  margin-bottom: 14px
}

.professional-video-hero .hero-media-placeholder small {
  max-width: 330px;
  margin-top: 7px;
  color: #d7ffdf
}

.professional-video-hero .hero-media-caption {
  display: flex;
  flex-direction: column;
  padding: 12px 4px 0;
  color: #fff
}

.professional-video-hero .hero-media-caption span {
  font-size: 13px;
  color: #d7ffdf
}

.home-stats {
  width: 100%;
  padding: 0 24px 48px;
  background: #f8fafc
}

.home-stats-inner {
  width: 100%;
  max-width: 1240px;
  margin: 24px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px
}

.home-stat-card {
  min-height: 132px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 0
}

.home-stat-card:after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -40px;
  top: -40px;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%
}

.home-stat-card strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  z-index: 1
}

.home-stat-card span {
  display: block;
  font-size: .98rem;
  line-height: 1.45;
  font-weight: 700;
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere
}

@media(max-width:1024px) {
  .home-hero.professional-video-hero {
    padding: 56px 20px 44px;
    min-height: auto
  }
  .professional-video-hero .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center
  }
  .professional-video-hero .home-hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 0
  }
  .professional-video-hero .home-hero-content .hero-description {
    margin-left: auto;
    margin-right: auto
  }
  .professional-video-hero .home-hero-actions {
    justify-content: center
  }
  .professional-video-hero .home-hero-video-wrap {
    max-width: 720px
  }
  .home-stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px
  }
}

@media(max-width:640px) {
  .home-hero.professional-video-hero {
    min-height: auto;
    padding: 42px 16px 32px
  }
  .professional-video-hero .home-hero-inner {
    gap: 24px
  }
  .professional-video-hero .home-hero-content {
    padding: 10px 0
  }
  .professional-video-hero .home-hero-actions {
    flex-direction: column;
    align-items: stretch
  }
  .professional-video-hero .home-hero-actions a,
  .professional-video-hero .home-hero-actions button {
    width: 100%;
    text-align: center
  }
  .professional-video-hero .home-hero-video-wrap {
    padding: 10px;
    border-radius: 20px
  }
  .professional-video-hero .home-hero-video {
    border-radius: 16px
  }
  .home-stats {
    padding: 0 16px 34px
  }
  .home-stats-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 20px
  }
  .home-stat-card {
    min-height: auto;
    padding: 22px
  }
}

.help-hero {
  background: linear-gradient(135deg, #062b1a, #0b6b3a, #1261a6);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 24px;
  align-items: center
}

.help-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 52px)
}

.help-hero form {
  background: #fff;
  padding: 16px;
  border-radius: 20px
}

.help-hero form>* {
  margin-bottom: 8px
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.help-card small {
  color: #64748b
}

.knowledge-article {
  max-width: 980px;
  margin: auto
}

.article-body,
.article-steps {
  font-size: 16px;
  line-height: 1.75
}

.danger {
  background: #b42318
}

@media(max-width:980px) {
  .professional-video-hero .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px
  }
  .professional-video-hero {
    padding: 28px 4vw 32px
  }
  .help-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  .professional-video-hero .hero-grid,
  .help-hero {
    grid-template-columns: 1fr
  }
  .professional-video-hero .hero-copy {
    max-width: none
  }
  .hero-media-placeholder {
    min-height: 220px
  }
  .dedicated-stats {
    grid-template-columns: repeat(2, 1fr) !important
  }
  .help-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:430px) {
  .dedicated-stats {
    grid-template-columns: 1fr !important
  }
  .professional-video-hero {
    padding: 24px 4vw 28px
  }
  .professional-video-hero h1 {
    font-size: 34px
  }
}

/* Homepage banner width aligned to approved Feature Demo v8 */

.home-hero.professional-video-hero {
  width: 100%;
  min-height: auto !important;
  padding: 56px 5vw 42px !important;
  display: block;
  background: var(--hero-gradient, linear-gradient(135deg, #0b6b3a 0%, #094629 52%, #02160d 100%));
  overflow: hidden;
}

.professional-video-hero .home-hero-inner {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 30px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.professional-video-hero .home-hero-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.professional-video-hero .home-hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(31px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.professional-video-hero .home-hero-content .hero-subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  line-height: 1.4;
}

.professional-video-hero .home-hero-content .hero-description {
  margin: 0;
  max-width: 780px;
  font-size: 18px;
  line-height: 1.55;
}

.professional-video-hero .home-hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.professional-video-hero .home-hero-video-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: var(--hero-video-padding, 20px);
  border-radius: var(--hero-video-radius, 24px);
  background: var(--hero-video-background, #fff);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  min-width: 0;
}

.professional-video-hero .home-hero-video {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: var(--hero-video-max-height, 360px);
  border-radius: calc(var(--hero-video-radius, 24px) - 6px);
  overflow: hidden;
  background: #0f172a;
}

.professional-video-hero .hero-media-caption {
  padding: 10px 2px 0;
}

.home-stats {
  width: 100%;
  padding: 32px 5vw 42px;
  background: #f8fafc;
}

.home-stats-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media(max-width:1000px) {
  .home-hero.professional-video-hero {
    padding: 44px 5vw 38px !important
  }
  .professional-video-hero .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px
  }
  .professional-video-hero .home-hero-content {
    max-width: 820px
  }
  .professional-video-hero .home-hero-video-wrap {
    max-width: 760px;
    margin: 0 auto
  }
  .home-stats-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:680px) {
  .home-hero.professional-video-hero {
    padding: 34px 20px 30px !important
  }
  .professional-video-hero .home-hero-inner {
    gap: 22px
  }
  .professional-video-hero .home-hero-content h1 {
    font-size: clamp(30px, 10vw, 44px)
  }
  .professional-video-hero .home-hero-content .hero-description {
    font-size: 16px
  }
  .professional-video-hero .home-hero-actions {
    gap: 10px
  }
  .professional-video-hero .home-hero-actions .btn {
    width: 100%
  }
  .professional-video-hero .home-hero-video-wrap {
    padding: 12px;
    border-radius: 20px
  }
  .home-stats {
    padding: 24px 20px 34px
  }
  .home-stats-inner {
    grid-template-columns: 1fr;
    gap: 14px
  }
}

/* FINAL HOMEPAGE HERO FIX — full viewport banner with integrated statistics */

main.home-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-x: hidden
}

section.home-hero.professional-video-hero {
  width: 100vw !important;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  padding: 52px 5vw 38px !important;
  min-height: auto !important;
  display: block !important;
  background: var(--hero-gradient, linear-gradient(135deg, #0b6b3a 0%, #094629 52%, #02160d 100%)) !important;
  color: var(--hero-text-colour, #fff);
  position: relative;
  overflow: hidden;
}

.home-hero-shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.professional-video-hero .home-hero-inner {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr);
  gap: 30px;
  align-items: center;
}

.professional-video-hero .home-hero-content h1 {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.02;
  max-width: 760px;
}

.professional-video-hero .home-hero-video-wrap {
  max-width: 520px;
  justify-self: end;
}

.home-hero-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.home-hero-stats .home-stat-card {
  min-height: 118px;
  padding: 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--stat-colour, #0b6b3a), color-mix(in srgb, var(--stat-colour, #0b6b3a) 70%, white));
  box-shadow: 0 14px 30px rgba(2, 32, 19, .2);
}

.home-stats {
  display: none !important
}

@media(max-width:1000px) {
  section.home-hero.professional-video-hero {
    padding: 42px 5vw 34px !important
  }
  .professional-video-hero .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center
  }
  .professional-video-hero .home-hero-content {
    max-width: 820px;
    margin: 0 auto
  }
  .professional-video-hero .home-hero-content .hero-description {
    margin-left: auto;
    margin-right: auto
  }
  .professional-video-hero .home-hero-actions {
    justify-content: center
  }
  .professional-video-hero .home-hero-video-wrap {
    max-width: 720px;
    justify-self: center;
    margin: 0 auto
  }
  .home-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px
  }
}

@media(max-width:680px) {
  section.home-hero.professional-video-hero {
    padding: 30px 18px 28px !important
  }
  .professional-video-hero .home-hero-content h1 {
    font-size: clamp(32px, 10vw, 46px)
  }
  .professional-video-hero .home-hero-content .hero-description {
    font-size: 16px
  }
  .professional-video-hero .home-hero-actions .btn {
    width: 100%
  }
  .home-hero-stats {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 24px
  }
  .home-hero-stats .home-stat-card {
    min-height: 100px
  }
}

/* Dashboard overlap and contrast corrections */

.admin-ui .container>h1 {
  margin: 0 0 18px !important;
  position: relative;
  z-index: 2
}

.admin-ui .stats {
  margin: 0 0 26px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px
}

.admin-ui .stat {
  min-height: 108px !important;
  padding: 18px !important;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.admin-ui .stat strong {
  color: #fff !important;
  font-size: 30px !important
}

.admin-ui .stat br {
  display: none
}

.admin-ui .stat:nth-child(5) {
  background: linear-gradient(135deg, #00695f, #19a99b) !important
}

.admin-ui .stat:nth-child(6) {
  background: linear-gradient(135deg, #9a3f12, #ea7b3c) !important
}

.admin-ui .stat:nth-child(7) {
  background: linear-gradient(135deg, #9b1c1c, #dc4c4c) !important
}

.admin-ui .stat:nth-child(8) {
  background: linear-gradient(135deg, #334155, #64748b) !important
}

.admin-ui .stats+.grid {
  margin-top: 0
}

.feature-card:nth-child(6n+1) {
  border-top-color: var(--green)
}

.feature-card:nth-child(6n+2) {
  border-top-color: var(--blue)
}

.feature-card:nth-child(6n+3) {
  border-top-color: var(--gold)
}

.feature-card:nth-child(6n+4) {
  border-top-color: var(--purple)
}

.feature-card:nth-child(6n+5) {
  border-top-color: var(--teal)
}

.feature-card:nth-child(6n) {
  border-top-color: var(--orange)
}

.gateway-public-colour tbody tr:nth-child(6n+1) td {
  background: #ecfdf3
}

.gateway-public-colour tbody tr:nth-child(6n+2) td {
  background: #eef6ff
}

.gateway-public-colour tbody tr:nth-child(6n+3) td {
  background: #fff9e6
}

.gateway-public-colour tbody tr:nth-child(6n+4) td {
  background: #f7f1ff
}

.gateway-public-colour tbody tr:nth-child(6n+5) td {
  background: #edfdfb
}

.gateway-public-colour tbody tr:nth-child(6n) td {
  background: #fff4ec
}

.public-page-head {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #062b1a, #0b6b3a, #1261a6);
  color: #fff;
  margin-bottom: 20px
}

.public-page-head h1 {
  color: #fff;
  margin: 0 0 6px
}

.public-page-head p {
  margin: 0;
  color: #e8fff1
}

.staff-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px
}

.staff-directory-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 7px solid var(--green);
  border-radius: 20px;
  padding: 18px
}

.staff-directory-card:nth-child(6n+2) {
  border-left-color: var(--blue)
}

.staff-directory-card:nth-child(6n+3) {
  border-left-color: var(--gold)
}

.staff-directory-card:nth-child(6n+4) {
  border-left-color: var(--purple)
}

.staff-directory-card:nth-child(6n+5) {
  border-left-color: var(--teal)
}

.staff-directory-card:nth-child(6n) {
  border-left-color: var(--orange)
}

.public-upload-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px
}

.public-upload-note {
  background: #fff7de;
  border-left: 7px solid var(--gold);
  padding: 18px;
  border-radius: 18px
}

.public-intel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px
}

.public-intel-stats div {
  background: #fff;
  border-top: 6px solid var(--green);
  padding: 18px;
  border-radius: 18px
}

.public-intel-stats div:nth-child(2) {
  border-top-color: var(--blue)
}

.public-intel-stats div:nth-child(3) {
  border-top-color: var(--purple)
}

.public-intel-stats div:nth-child(4) {
  border-top-color: var(--orange)
}

.public-intel-stats strong {
  display: block;
  font-size: 28px;
  color: var(--green)
}

@media(max-width:900px) {
  .admin-ui .stats,
  .staff-directory-grid,
  .public-intel-stats {
    grid-template-columns: repeat(2, 1fr)
  }
  .public-upload-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {
  .admin-ui .stats,
  .staff-directory-grid,
  .public-intel-stats {
    grid-template-columns: 1fr
  }
}

/* V25.1 public upload, repository workflow and homepage module-card refinement */

.repository-workflow-section {
  width: 100%;
  margin: 30px 0;
  padding: 34px;
  border: 1px solid #cfe3d8;
  border-radius: 28px;
  background: linear-gradient(135deg, #eaf8f0 0%, #f4fbf7 48%, #edf5ff 100%);
  box-shadow: 0 16px 38px rgba(6, 59, 31, .09);
}

.repository-workflow-section h2 {
  margin-top: 0;
  color: #075c32
}

.repository-workflow-section .section-lead {
  max-width: 900px;
  color: #334155
}

.repository-workflow-section .flowbox {
  background: #fff;
  border: 1px solid #d8e8df;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

/* Consistent professional cards with intentionally mixed institutional accents. */

.home-content .feature-card {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-top: 7px solid var(--green);
  border-left: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-content .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .12)
}

.home-content .feature-card p {
  flex: 1
}

.home-content .feature-card.green {
  border-top-color: #0b6b3a
}

.home-content .feature-card.blue {
  border-top-color: #1261a6
}

.home-content .feature-card.gold {
  border-top-color: #c58a00
}

.home-content .feature-card.purple {
  border-top-color: #7c3aed
}

.home-content .feature-card.teal {
  border-top-color: #0f8b8d
}

.home-content .feature-card.orange {
  border-top-color: #d65a16
}

.home-content .grid>.feature-card:nth-child(6n+1) {
  border-top-color: #0b6b3a
}

.home-content .grid>.feature-card:nth-child(6n+2) {
  border-top-color: #1261a6
}

.home-content .grid>.feature-card:nth-child(6n+3) {
  border-top-color: #c58a00
}

.home-content .grid>.feature-card:nth-child(6n+4) {
  border-top-color: #7c3aed
}

.home-content .grid>.feature-card:nth-child(6n+5) {
  border-top-color: #0f8b8d
}

.home-content .grid>.feature-card:nth-child(6n) {
  border-top-color: #d65a16
}

.public-publication-form {
  background: #fff;
  border: 1px solid #dbe7df;
  border-top: 7px solid #7c3aed;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.public-publication-form h2 {
  margin-top: 0;
  color: #4c1d95
}

.public-publication-form small {
  display: block;
  margin-top: 7px;
  color: #64748b
}

.public-upload-note ul {
  padding-left: 20px;
  margin-bottom: 0
}

.public-upload-note li {
  margin: 8px 0
}

.publication-upload-heading {
  background: linear-gradient(135deg, #38206f, #6941c6, #0b6b3a)
}

@media(max-width:680px) {
  .repository-workflow-section {
    padding: 22px 16px;
    border-radius: 21px
  }
  .home-content .feature-card {
    min-height: auto
  }
  .public-publication-form {
    padding: 18px
  }
}

/* V25.2 explicit homepage and public module-card implementation */

.homepage-module-grid,
.public-module-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.homepage-module-card {
  min-height: 248px !important;
  height: 100%;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #dce6e1 !important;
  border-left-width: 8px !important;
  border-top-width: 1px !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .075) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}

.homepage-module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .14) !important;
}

.homepage-module-card-body {
  display: flex;
  flex: 1;
  flex-direction: column
}

.homepage-module-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.3
}

.homepage-module-card p {
  margin: 0 0 14px;
  flex: 1;
  color: #536273
}

.homepage-module-badges {
  margin-top: auto;
  padding-top: 4px
}

.homepage-module-action {
  margin-top: 18px;
  align-self: flex-start
}

.homepage-module-card.green {
  border-left-color: #0b6b3a !important
}

.homepage-module-card.green h3 {
  color: #0b6b3a
}

.homepage-module-card.blue {
  border-left-color: #1261a6 !important
}

.homepage-module-card.blue h3 {
  color: #1261a6
}

.homepage-module-card.gold {
  border-left-color: #c58a00 !important
}

.homepage-module-card.gold h3 {
  color: #8b6200
}

.homepage-module-card.purple {
  border-left-color: #7c3aed !important
}

.homepage-module-card.purple h3 {
  color: #6d28d9
}

.homepage-module-card.teal {
  border-left-color: #0f8b8d !important
}

.homepage-module-card.teal h3 {
  color: #0f766e
}

.homepage-module-card.orange {
  border-left-color: #d65a16 !important
}

.homepage-module-card.orange h3 {
  color: #b9470d
}

.public-module-card {
  min-height: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #dce6e1 !important;
  border-left: 7px solid #0b6b3a !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .07) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}

.public-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 17px 34px rgba(15, 23, 42, .12) !important
}

.public-module-card .btn,
.public-module-card .feature-link {
  margin-top: auto;
  align-self: flex-start
}

.module-library-services .public-module-card:nth-child(6n+1),
.module-repository .public-module-card:nth-child(6n+1),
.module-oer .public-module-card:nth-child(6n+1),
.module-databases .public-module-card:nth-child(6n+1),
.module-journals .public-module-card:nth-child(6n+1),
.module-reading-lists .public-module-card:nth-child(6n+1),
.module-digital-literacy .public-module-card:nth-child(6n+1) {
  border-left-color: #0b6b3a !important
}

.public-module-grid .public-module-card:nth-child(6n+2) {
  border-left-color: #1261a6 !important
}

.public-module-grid .public-module-card:nth-child(6n+3) {
  border-left-color: #c58a00 !important
}

.public-module-grid .public-module-card:nth-child(6n+4) {
  border-left-color: #7c3aed !important
}

.public-module-grid .public-module-card:nth-child(6n+5) {
  border-left-color: #0f8b8d !important
}

.public-module-grid .public-module-card:nth-child(6n) {
  border-left-color: #d65a16 !important
}

@media(max-width:1000px) {
  .homepage-module-grid,
  .public-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:680px) {
  .homepage-module-grid,
  .public-module-grid {
    grid-template-columns: 1fr
  }
  .homepage-module-card,
  .public-module-card {
    min-height: auto !important
  }
}

/* Version 25.3 route, registration and administrator visibility corrections */

.adminhead {
  padding: 16px 2.5vw;
  background: linear-gradient(135deg, #071a2f 0%, #0f2d4f 54%, #0b6b3a 100%);
  align-items: flex-start;
  box-shadow: 0 10px 26px rgba(2, 15, 30, .28);
  border-bottom: 3px solid #f3b72f
}

.adminhead>.brand {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  min-width: 220px
}

.adminhead nav {
  gap: 11px;
  max-height: 170px;
  padding: 2px 0 6px
}

.admin-menu-group {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  padding: 8px;
  min-width: 150px
}

.admin-menu-group>strong {
  display: block;
  color: #ffe08a;
  font-size: 12px;
  letter-spacing: .35px;
  margin: 0 0 6px;
  padding: 0 4px
}

.adminhead nav a {
  display: block;
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 800;
  margin: 4px 0;
  border: 1px solid rgba(255, 255, 255, .1)
}

.adminhead nav a:hover {
  background: #fff;
  color: #0b4f2e !important;
  text-decoration: none;
  transform: translateY(-1px)
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 22px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #eef9f2, #edf5ff);
  border: 1px solid #cfe2d6;
  border-left: 7px solid var(--green);
  border-radius: 20px
}

.admin-page-head h1 {
  margin: 2px 0 6px
}

.admin-page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 850px
}

.admin-eyebrow {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .8px;
  font-weight: 900;
  color: var(--green)
}

.admin-safe-stats {
  margin: 0 0 24px;
  position: static
}

.admin-safe-stats .stat {
  min-height: 108px
}

.admin-safe-stats .stat span {
  display: block;
  position: relative;
  z-index: 2
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) 1.3fr;
  gap: 10px 16px
}

.detail-list dt {
  font-weight: 900;
  color: #365348
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere
}

.admin-action-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.auth-shell {
  max-width: 680px;
  margin: 28px auto
}

.auth-card {
  padding: 28px
}

.auth-card h1 {
  margin-top: 8px
}

.auth-links {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line)
}

.auth-create-panel,
.enrol-access-panel {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9f2, #edf5ff);
  border: 1px solid #cfe2d6
}

.auth-create-panel p {
  margin: 5px 0 12px
}

.form-help {
  font-size: 13px;
  color: var(--muted)
}

.enrol-create-account {
  background: var(--blue)
}

@media(max-width:900px) {
  .adminhead {
    position: static;
    display: block
  }
  .adminhead>.brand {
    display: flex;
    margin-bottom: 12px
  }
  .adminhead nav {
    max-height: none
  }
  .admin-page-head {
    display: block
  }
  .admin-page-head>.btn {
    margin-top: 14px
  }
  .detail-list {
    grid-template-columns: 1fr
  }
  .admin-safe-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:580px) {
  .admin-safe-stats {
    grid-template-columns: 1fr
  }
  .admin-menu-group {
    width: 100%
  }
  .auth-card {
    padding: 20px
  }
  .enrol-access-panel .btn {
    width: 100%;
    margin: 4px 0
  }
}

/* V27.4 Accessibility and WhatsApp integrations */

.FABOTAS-accessibility,
.FABOTAS-whatsapp {
  position: fixed;
  z-index: 9998;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px))
}

.FABOTAS-accessibility.FABOTAS-float-right,
.FABOTAS-whatsapp.FABOTAS-float-right {
  right: 18px;
  align-items: flex-end
}

.FABOTAS-accessibility.FABOTAS-float-left,
.FABOTAS-whatsapp.FABOTAS-float-left {
  left: 18px;
  align-items: flex-start
}

.FABOTAS-whatsapp {
  bottom: 82px
}

.FABOTAS-accessibility-toggle,
.FABOTAS-whatsapp-toggle {
  border: 0;
  border-radius: 999px;
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  cursor: pointer
}

.FABOTAS-accessibility-panel,
.FABOTAS-whatsapp-card {
  width: min(340px, calc(100vw - 28px));
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 18px;
  padding: 16px;
  color: #0f172a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25)
}

.FABOTAS-whatsapp-card {
  background: #fff
}

.FABOTAS-widget-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px
}

.FABOTAS-widget-heading button {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit
}

.FABOTAS-accessibility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.FABOTAS-accessibility-grid button,
.FABOTAS-accessibility-reset {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  font-weight: 700;
  cursor: pointer
}

.FABOTAS-accessibility-reset {
  width: 100%;
  margin-top: 10px;
  text-align: center
}

.FABOTAS-accessibility-statement {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-weight: 700
}

.FABOTAS-whatsapp-start {
  display: block;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #128c7e;
  color: #fff !important;
  text-align: center;
  text-decoration: none;
  font-weight: 800
}

.FABOTAS-a11y-contrast {
  background: #000 !important;
  color: #fff !important
}

.FABOTAS-a11y-contrast *:not(img):not(video) {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important
}

.FABOTAS-a11y-grayscale {
  filter: grayscale(1)
}

.FABOTAS-a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 3px !important
}

.FABOTAS-a11y-readable,
.FABOTAS-a11y-readable * {
  font-family: Arial, Verdana, sans-serif !important;
  letter-spacing: .02em
}

.FABOTAS-a11y-spacing,
.FABOTAS-a11y-spacing p,
.FABOTAS-a11y-spacing li {
  line-height: 2 !important
}

.FABOTAS-a11y-pause * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important
}

@media(max-width:700px) {
  .FABOTAS-accessibility,
  .FABOTAS-whatsapp {
    right: 10px !important;
    left: auto !important
  }
  .FABOTAS-accessibility-toggle span:last-child,
  .FABOTAS-whatsapp-toggle span:last-child {
    display: none
  }
  .FABOTAS-accessibility-toggle,
  .FABOTAS-whatsapp-toggle {
    width: 50px;
    height: 50px;
    justify-content: center;
    padding: 0
  }
  .FABOTAS-whatsapp {
    bottom: 78px
  }
}