:root {
  --navy: #12395f;
  --navy2: #0b2946;
  --blue: #1769aa;
  --gold: #d5a63a;
  --bg: #f5f7fa;
  --surface: #fff;
  --text: #17212b;
  --muted: #64748b;
  --line: #dfe6ee;
  --green: #18794e;
  --amber: #9a6700;
  --red: #b42318;
  --accent: #1769aa;
  --accent-soft: #edf5fb;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(15, 23, 42, .07)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 Inter, Segoe UI, Arial, sans-serif
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

a {
  text-decoration: none;
  color: inherit
}

.top {
  background: var(--navy2);
  color: #dbeafe;
  padding: 7px 5vw;
  font-size: 12px
}

.top span {
  float: right
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 20px
}

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40
}

.navin {
  max-width: 1180px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto
}

.logo {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 12px
}

.brand b {
  display: block;
  color: var(--navy);
  font-size: 14px
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px
}

.menu {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 13px;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}

.menu a {
  padding: 8px 4px
}

.menu a:hover,
.menu a.active {
  color: var(--blue)
}

.btn {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 13px;
  font-weight: 700
}

.btn-sm {
  padding: 6px 9px;
  font-size: 12px
}

.primary {
  background: var(--navy);
  color: #fff
}

.secondary {
  background: var(--accent-soft);
  color: var(--navy)
}

.outline {
  background: #fff;
  border-color: var(--line);
  color: var(--navy)
}

.danger {
  background: #fff1f0;
  color: var(--red);
  border-color: #ffd6d2
}

.hamb {
  display: none;
  background: none;
  border: 0;
  font-size: 24px
}

.hero {
  background: linear-gradient(120deg, #0b2d4c, #1769aa);
  color: #fff
}

.hero-in {
  max-width: 1180px;
  margin: auto;
  padding: 68px 20px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 50px;
  align-items: center
}

.eyebrow {
  color: #f4d47c;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 800
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  margin: 10px 0 14px
}

.hero p {
  max-width: 680px;
  color: #dceafa;
  font-size: 16px
}

.searchbar {
  display: flex;
  background: #fff;
  border-radius: 11px;
  padding: 6px;
  max-width: 760px;
  margin-top: 22px;
  box-shadow: 0 10px 35px #001b3633
}

.searchbar input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 11px
}

.hero-card {
  background: #ffffff14;
  border: 1px solid #ffffff2b;
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(8px)
}

.hero-card strong {
  display: block;
  font-size: 34px
}

.hero-card span {
  color: #cfe0f2
}

.section {
  padding: 52px 0
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px
}

.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 27px
}

.section-head p {
  margin: 5px 0 0;
  color: var(--muted)
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: -28px;
  position: relative;
  z-index: 2
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.stat strong {
  display: block;
  font-size: 25px;
  color: var(--navy)
}

.stat small {
  color: var(--muted)
}

.grid {
  display: grid;
  gap: 16px
}

.cards {
  grid-template-columns: repeat(3, 1fr)
}

.two {
  grid-template-columns: 1.1fr .9fr
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow)
}

.card h3 {
  margin: 8px 0;
  color: var(--navy);
  font-size: 16px
}

.card p {
  margin: 6px 0;
  color: var(--muted)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eaf7ef;
  color: var(--green);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800
}

.badge.amber {
  background: #fff6db;
  color: var(--amber)
}

.badge.red {
  background: #fff0ef;
  color: var(--red)
}

.badge.blue {
  background: #eaf3fb;
  color: var(--blue)
}

.doc {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 17px;
  margin-bottom: 10px
}

.doc h3 {
  margin: 5px 0;
  color: var(--navy);
  font-size: 15px
}

.doc p {
  margin: 2px 0;
  color: var(--muted);
  font-size: 12px
}

.thumb {
  height: 150px;
  background: linear-gradient(135deg, #dceafa, #eef3f7);
  display: grid;
  place-items: center;
  color: #5f7890;
  font-weight: 800
}

.newsbody {
  padding: 15px
}

.newsbody small {
  color: var(--muted)
}

.newsbody h3 {
  margin: 5px 0
}

.filterbar {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr) auto;
  gap: 9px
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  outline: none
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1769aa18
}

.tablewrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top
}

.table th {
  background: #f8fafc;
  color: var(--navy);
  font-size: 12px
}

.table tr:hover td {
  background: #fbfdff
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px
}

.pagebtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 10px
}

.pagebtn.active {
  background: var(--navy);
  color: #fff
}

.detail-title {
  font-size: 31px;
  line-height: 1.25;
  color: var(--navy);
  margin: 8px 0
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px
}

.meta div {
  padding: 11px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 9px
}

.meta b {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase
}

.meta span {
  display: block;
  margin-top: 2px
}

.timeline {
  border-left: 2px solid #dce7f1;
  padding-left: 20px
}

.timeline-item {
  position: relative;
  margin: 0 0 20px
}

.timeline-item:before {
  content: '';
  position: absolute;
  left: -27px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--blue);
  border-radius: 50%;
  border: 3px solid #e6f1fa
}

.rel {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  background: #fff
}

.admin-shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 700px;
  background: #f3f6fa
}

.admin-side {
  background: #0b2946;
  color: #dbeafe;
  padding: 18px;
  position: sticky;
  top: 73px;
  height: calc(100vh - 73px);
  overflow: auto
}

.admin-side h3 {
  margin: 0 0 18px;
  color: #fff
}

.admin-side button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #c9d8e8;
  padding: 10px;
  border-radius: 8px;
  margin: 2px 0
}

.admin-side button:hover,
.admin-side button.active {
  background: #ffffff14;
  color: #fff
}

.admin-main {
  padding: 28px
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px
}

.kpi strong {
  font-size: 25px;
  color: var(--navy);
  display: block
}

.chart {
  height: 180px;
  display: flex;
  gap: 10px;
  padding: 15px
}

.chart>div {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  margin-top: auto;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue), var(--navy));
  border-radius: 5px 5px 0 0;
  min-width: 20px
}

.master-grid {
  grid-template-columns: repeat(3, 1fr)
}

.switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line)
}

.toggle {
  width: 42px;
  height: 23px;
  border-radius: 999px;
  background: #cbd5e1;
  padding: 3px;
  border: 0
}

.toggle.on {
  background: var(--green)
}

.toggle i {
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  transition: .2s
}

.toggle.on i {
  transform: translateX(19px)
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #06172799;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px
}

.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 25px 70px #0004
}

.modal-head,
.modal-foot {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.modal-foot {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  justify-content: flex-end;
  gap: 8px
}

.modal-body {
  padding: 18px
}

.close {
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  width: 32px;
  height: 32px
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #102b43;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 35px #0003;
  display: none;
  z-index: 120
}

.toast.success {
  background: #176b49
}

.toast.error {
  background: #9f231b
}

.skeleton {
  height: 14px;
  background: linear-gradient(90deg, #edf1f5, #fff, #edf1f5);
  background-size: 200% 100%;
  animation: sk 1.3s infinite;
  border-radius: 5px
}

.empty {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: var(--muted)
}

.notice {
  padding: 10px 13px;
  border-radius: 9px;
  background: #fff8df;
  border: 1px solid #f2df9e;
  color: #795b00
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px
}

.footer {
  background: #0b2946;
  color: #cfe0f2;
  padding: 42px 0 20px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px
}

.footer h3 {
  color: #fff;
  margin-top: 0
}

.footer a {
  display: block;
  margin: 5px 0
}

.footer.admin-footer {
  padding-top: 0;
  padding-bottom: 0;
}

.footer.admin-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer.admin-footer .copyright {
  margin-top: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.copyright {
  border-top: 1px solid #ffffff1a;
  margin-top: 25px;
  padding-top: 15px;
  font-size: 12px;
  color: #9eb4c8
}

.page {
  display: none
}

.page.active {
  display: block
}

.hidden {
  display: none !important
}

.demo-ribbon {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 90;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  box-shadow: var(--shadow)
}

.customizer {
  position: fixed;
  right: 0;
  top: 0;
  width: 340px;
  height: 100vh;
  background: #fff;
  z-index: 110;
  box-shadow: -12px 0 40px #0002;
  transform: translateX(100%);
  transition: .25s;
  padding: 20px;
  overflow: auto
}

.customizer.open {
  transform: none
}

.customizer h3 {
  margin-top: 0;
  color: var(--navy)
}

.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line)
}

.preview {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  background: #f8fafc
}

.preview .hero-mini {
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--navy), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800
}

.theme-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line)
}

.range {
  width: 140px
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px
}

.tab {
  border: 0;
  background: transparent;
  padding: 9px 11px;
  color: var(--muted);
  font-weight: 700
}

.tab.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue)
}

.code {
  font: 12px/1.5 Consolas, monospace;
  background: #0b2946;
  color: #dbeafe;
  border-radius: 9px;
  padding: 13px;
  overflow: auto
}

.progress {
  height: 7px;
  background: #e8eef4;
  border-radius: 99px;
  overflow: hidden
}

.progress i {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--blue)
}

.mt-0 {
  margin-top: 0px;
}

.mb-0 {
  margin-bottom: 0px;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 8px
}

summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer
}

@keyframes sk {
  to {
    background-position: -200% 0
  }
}

@media(max-width:1000px) {
  .menu {
    display: none
  }

  .hamb {
    display: block
  }

  .hero-in {
    grid-template-columns: 1fr
  }

  .stats {
    grid-template-columns: repeat(3, 1fr)
  }

  .filterbar {
    grid-template-columns: 1fr 1fr
  }

  .cards,
  .master-grid {
    grid-template-columns: 1fr 1fr
  }

  .kpis {
    grid-template-columns: 1fr 1fr
  }

  .admin-shell {
    grid-template-columns: 1fr
  }

  .admin-side {
    display: none
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:650px) {
  .top {
    padding: 7px 20px
  }

  .top span {
    display: none
  }

  .hero h1 {
    font-size: 34px
  }

  .stats,
  .cards,
  .master-grid,
  .kpis,
  .meta,
  .two {
    grid-template-columns: 1fr
  }

  .filterbar {
    grid-template-columns: 1fr
  }

  .hero-in {
    padding: 48px 20px
  }

  .searchbar {
    display: block;
    background: transparent;
    padding: 0
  }

  .searchbar input {
    width: 100%;
    border-radius: 9px;
    margin-bottom: 7px
  }

  .searchbar .btn {
    width: 100%
  }

  .doc {
    align-items: flex-start;
    flex-direction: column
  }

  .customizer {
    width: 100%
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .admin-main {
    padding: 18px
  }

  .section {
    padding: 38px 0
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important
  }
}