:root {
  --brand-primary: #7a4300;
  --brand-accent: #ff9933;
  --surface: #fff7ed;
  --surface-2: #fff1df;
  --topbar-left: #4b1f73;
  --topbar-right: #f6c647;
}

html {
  scroll-behavior: smooth;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", Calibri, Candara, system-ui,
    -apple-system, Roboto, Arial, sans-serif;
  background: var(--surface);
}

a {
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

.section-bg {
  background: var(--surface-2);
}

.clients-slider {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0;
}

.clients-slider::before,
.clients-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.clients-slider::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255, 247, 237, 0) 100%);
}

.clients-slider::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 0%, rgba(255, 247, 237, 0) 100%);
}

.clients-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: clients-marquee 28s linear infinite;
}

.clients-set {
  display: flex;
  gap: 1rem;
}

.clients-slider:hover .clients-track,
.clients-slider:focus-within .clients-track {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-svg {
  width: 200px;
  height: 68px;
  display: block;
}

.clients .client-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.clients .client-card:hover,
.clients .client-card:focus {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.clients .client-logo {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #334155;
  opacity: 0.75;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.clients .client-card:hover .client-logo,
.clients .client-card:focus .client-logo {
  opacity: 1;
  color: var(--brand-accent);
}

.gov-topbar {
  color: #fff;
  font-size: 0.875rem;
  overflow: hidden;
}

.gov-topbar-inner {
  display: flex;
  width: 100%;
}

.gov-topbar-left {
  flex: 0 0 50%;
  background: var(--topbar-left);
  position: relative;
}

.gov-topbar-left::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -52px;
  width: 120px;
  background: var(--topbar-left);
  transform: skewX(32deg);
  transform-origin: right;
  z-index: 1;
}

.gov-topbar-left > .container {
  position: relative;
  z-index: 2;
}

.gov-topbar-right {
  flex: 0 0 50%;
  background: var(--topbar-right);
  color: #111;
  min-width: 0;
}

@media (max-width: 991.98px) {
  .gov-topbar-inner {
    flex-direction: column;
  }

  .gov-topbar-left,
  .gov-topbar-right {
    flex: 1 1 auto;
    width: 100%;
  }

  .gov-topbar-left::after {
    display: none;
  }
}

.topbar-nav .topbar-link {
  font-weight: 800;
  letter-spacing: 0.4px;
}

.gov-topbar .gov-id {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.topbar-link {
  color: #fff;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
}

.topbar-link:hover,
.topbar-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 0.2rem;
}

.topbar-btn {
  border-radius: 0;
  line-height: 1;
}

.gov-topbar-right .topbar-link {
  color: #111;
}

.gov-topbar-right .topbar-link:hover,
.gov-topbar-right .topbar-link:focus {
  color: #111;
  background: rgba(255, 255, 255, 0.35);
}

.gov-topbar-right .topbar-btn {
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.28);
  padding: 0.35rem 0.55rem;
  font-weight: 800;
}

.gov-topbar-right .topbar-btn:hover,
.gov-topbar-right .topbar-btn:focus {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-color: rgba(0, 0, 0, 0.5);
}

.topbar-contrast {
  width: 32px;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-contrast-normal {
  background: var(--topbar-left) !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.topbar-contrast-high {
  background: #111 !important;
  color: #fff !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.topbar-contrast[aria-pressed="false"] {
  opacity: 0.55;
}

.topbar-search {
  width: 34px;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-btn.active {
  background: rgba(255, 255, 255, 0.22);
}

.budget-strip .budget-title {
  color: #0f172a;
  letter-spacing: 0.2px;
}

.topspace {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.insidebox {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.budjet-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 0.5rem;
}

.budjet-text p {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
}

.budjet-text h3 {
  margin: 0.25rem 0 0;
  font-weight: 900;
  color: #0f172a;
}

.insidebox:hover,
.insidebox:focus-within {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
}

.insidebox:hover .budjet-text p,
.insidebox:hover .budjet-text h3,
.insidebox:focus-within .budjet-text p,
.insidebox:focus-within .budjet-text h3 {
  color: #fff;
}

.kpi {
  background: #fff;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}

.kpi:hover,
.kpi:focus-within {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
  transform: translateY(-1px);
}

.kpi:hover .text-muted,
.kpi:focus-within .text-muted {
  color: rgba(255, 255, 255, 0.86) !important;
}

.budget-progress {
  height: 6px;
  background: rgba(15, 23, 42, 0.08);
}

.budget-bar {
  background: var(--brand-primary);
}

.kpi:hover .budget-progress,
.kpi:focus-within .budget-progress {
  background: rgba(255, 255, 255, 0.26);
}

.kpi:hover .budget-bar,
.kpi:focus-within .budget-bar {
  background: rgba(255, 255, 255, 0.92);
}

.stc-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.stc-table thead th {
  background: #7a4300;
  color: #fff;
  border: 0;
  padding: 0.9rem 0.75rem;
  font-weight: 800;
}

.stc-table tbody td {
  border-color: rgba(15, 23, 42, 0.12);
  padding: 1rem 0.75rem;
  background: #fff;
  color: #0f172a;
}

.stc-table tbody tr:nth-child(odd) td {
  background: #f9f2e7;
}

.stc-be {
  color: #118a11;
}

.stc-exp {
  color: #ff0000;
}

.stc-perc {
  color: #ffa500;
}

.stc-chart-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.75rem 0.25rem;
}

.stc-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.stc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.stc-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: inline-block;
}

.stc-legend-exp {
  background: #ffa500;
}

.stc-legend-be {
  background: #118a11;
}

.stc-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.stc-bar-chart {
  position: relative;
  width: 100%;
  height: 340px;
}

.stc-chart {
  width: 100%;
  height: 340px;
}

@media (max-width: 575.98px) {
  .stc-table thead th {
    padding: 0.65rem 0.5rem;
    font-size: 0.9rem;
  }

  .stc-table tbody td {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }

  .stc-bar-chart {
    height: 380px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd;
  display: inline-block;
  margin: 0.75rem;
}

.site-navbar {
  background: var(--brand-primary);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.gov-logo {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
}

.gov-logo svg {
  width: 70px;
  height: 70px;
  display: block;
}

.gov-logo img {
  width: 70px;
  height: 70px;
  display: block;
  object-fit: cover;
}

.brand-subtitle {
  font-size: 2rem;
  font-weight: 900;
  opacity: 1;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

@media (max-width: 575.98px) {
  .brand-subtitle {
    font-size: 1.35rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }
}

.site-navbar .nav-link {
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95) !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: #fff;
  text-decoration: underline;
}

.tsp-dashboard {
  background: #2f2f2f;
  color: #fff;
}

.tsp-dashboard .socailicons a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tsp-dashboard-cards .card {
  border: 0;
  border-radius: 0;
  height: 100%;
}

.tsp-dashboard-cards .card-body {
  padding: 1.1rem 1rem;
  font-size: 15px;
}

.tsp-kpi-title {
  font-size: 15px;
  font-weight: 700;
}

.tsp-kpi-value {
  margin-top: 0.25rem;
  font-size: 15px;
  font-weight: 800;
}

.tsp-kpi-unit {
  font-size: 13px;
  font-weight: 800;
}

.tsp-kpi-fy {
  margin-top: 0.25rem;
  font-size: 15px;
  font-weight: 800;
}

.socailicons {
  color: #fff;
}

.socailicons.twitter1 {
  background: #3b82f6;
}

.socailicons.facebook-like1 {
  background: #2563eb;
}

.tsp-kpi-coral {
  background: coral;
}

.tsp-kpi-green {
  background: mediumseagreen;
}

.tsp-dashboard-fy {
  font-weight: 900;
}

.tsp-report-viewer {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.tsp-report-placeholder {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.tsp-line-chart {
  position: relative;
  width: 100%;
  height: 380px;
}

@media (max-width: 575.98px) {
  .tsp-line-chart {
    height: 460px;
  }
}

body.hc .tsp-dashboard {
  background: #000;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

body.hc .tsp-report-viewer {
  background: #000;
  border-color: #333;
}

.brand-chip {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  background: linear-gradient(
    90deg,
    rgba(122, 67, 0, 0.94),
    rgba(255, 153, 51, 0.86)
  );
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-lead {
  max-width: 58ch;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  color: #0f172a;
  letter-spacing: 0.2px;
}

.card-hover {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 153, 51, 0.18);
  color: var(--brand-primary);
}

.btn-brand {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
  background: #e07f10;
  border-color: #e07f10;
  color: #fff;
}

.welcome-panel .minister-card {
  background: #fff;
}

.leadership-panel {
  background: #fff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.85rem;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.leader-card {
  padding: 1rem 0.75rem;
  text-align: center;
}

.leader-card:nth-child(odd) {
  border-right: 1px solid rgba(15, 23, 42, 0.12);
}

.leader-card:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.leader-img {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 3px solid var(--topbar-right);
  background: rgba(15, 23, 42, 0.04);
  padding: 3px;
}

.leader-name {
  margin-top: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.leader-role {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.95;
}

@media (max-width: 991.98px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  }

  .leader-card:last-child {
    border-bottom: 0;
  }
}

.minister-img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-outline-brand {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.link-brand {
  color: var(--brand-accent);
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.footer {
  background: #5a3000;
  color: rgba(255, 241, 223, 0.92);
  font-size: 1.02rem;
  line-height: 1.65;
}

.footer .small,
.footer small {
  font-size: 1rem;
}

.footer a {
  color: rgba(255, 241, 223, 0.92);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}

.footer-subtitle {
  color: rgba(255, 241, 223, 0.82);
  font-weight: 600;
}

.footer-heading {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.08rem;
}

body.hc {
  background: #000;
  color: #fff;
}

body.hc h1,
body.hc h2,
body.hc h3,
body.hc h4,
body.hc h5,
body.hc h6 {
  color: #fff;
}

body.hc .section-title,
body.hc .budget-strip .budget-title {
  color: #fff !important;
}

body.hc .gov-topbar {
  background: #000;
  border-bottom: 1px solid #333;
}

body.hc .gov-topbar-left,
body.hc .gov-topbar-left::after,
body.hc .gov-topbar-right {
  background: #000 !important;
}

body.hc .gov-topbar-right,
body.hc .gov-topbar-right .topbar-link {
  color: #fff !important;
}

body.hc .gov-topbar-right .topbar-btn {
  background: #111 !important;
  color: #fff !important;
  border-color: #333 !important;
}

body.hc .site-navbar {
  background: #000;
}

body.hc .hero {
  background: linear-gradient(90deg, #000, #1a1a1a);
}

body.hc .leadership-panel {
  background: #000;
  border: 1px solid #333;
}

body.hc .leader-card:nth-child(odd),
body.hc .leader-card:nth-child(-n + 2) {
  border-color: #ffeb3b;
}

body.hc .leader-img {
  border-color: #ffeb3b;
}

body.hc .budget-strip,
body.hc .kpi,
body.hc .welcome-panel,
body.hc .card,
body.hc .bg-white,
body.hc .bg-light {
  background: #000 !important;
  color: #fff !important;
}

body.hc .insidebox {
  background: #000 !important;
  border-color: #333 !important;
}

body.hc .budjet-text p,
body.hc .budjet-text h3 {
  color: #fff !important;
}

body.hc .insidebox:hover,
body.hc .insidebox:focus-within {
  background: #111 !important;
  border-color: #ffeb3b !important;
}

body.hc .section-bg {
  background: #000 !important;
}

body.hc .clients-slider::before {
  background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

body.hc .clients-slider::after {
  background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

body.hc .clients .client-card {
  background: #000 !important;
  border-color: #333 !important;
}

body.hc .client-svg text {
  fill: #fff !important;
}

body.hc .clients .client-logo {
  color: #fff !important;
  opacity: 0.9;
}

body.hc .clients .client-card:hover .client-logo,
body.hc .clients .client-card:focus .client-logo {
  color: #ffeb3b !important;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
}

body.hc .text-muted {
  color: #d1d5db !important;
}

body.hc .table {
  --bs-table-color: #fff;
  --bs-table-bg: #000;
  --bs-table-border-color: #333;
}

body.hc .stc-table thead th {
  background: #111;
  color: #fff;
}

body.hc .stc-table tbody td {
  background: #000 !important;
  border-color: #333 !important;
}

body.hc .stc-be {
  color: #ffeb3b;
}

body.hc .stc-exp {
  color: #ffeb3b;
}

body.hc .stc-perc {
  color: #ffeb3b;
}

body.hc .stc-chart-card {
  background: #000;
  border-color: #333;
}

body.hc .stc-legend-item {
  color: #fff;
}

body.hc .budget-progress {
  background: rgba(255, 255, 255, 0.18);
}

body.hc .budget-bar {
  background: #ffeb3b;
}

body.hc a,
body.hc .link-brand {
  color: #ffeb3b;
}

body.hc .footer {
  background: #000;
}
