:root {
  --brand-primary: #462702;
  --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: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #333;
  line-height: 1.6;
}

/* 
   ----------------------------------------
   Government Top Bar
   ----------------------------------------
*/
.gov-topbar {
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  position: relative;
  z-index: 1030;
}

.gov-topbar-inner {
  display: flex;
  flex-wrap: wrap;
}

.gov-topbar-left {
  flex: 1;
  background: var(--topbar-left);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  padding-right: 2rem;
}

.gov-topbar-right {
  flex: 1;
  background: var(--topbar-right);
  clip-path: polygon(5% 0, 100% 0, 100% 100%, 0% 100%);
  padding-left: 2rem;
  margin-left: -2rem;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 991.98px) {
  .gov-topbar-left,
  .gov-topbar-right {
    flex: 0 0 100%;
    clip-path: none;
    margin: 0;
    padding: 0;
  }
}

.topbar-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  transition: opacity 0.2s;
}

.topbar-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.topbar-btn {
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.topbar-btn.active {
  background: #000;
  color: #fff;
}

/* 
   ----------------------------------------
   Main Header / Navbar
   ----------------------------------------
*/
.site-navbar {
  background: #7a4300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gov-logo-img {
  height: 55px;
  width: auto;
  /* filter: brightness(0) invert(1); */
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  display: block;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 0.75rem 1rem !important;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active,
.site-navbar .nav-link.show {
  color: #7a4300 !important;
  background-color: #fff;
  border-radius: 6px;
}

/* 
   ----------------------------------------
   About Section (Orange Gradient)
   ----------------------------------------
*/
.about-section {
  background: linear-gradient(
    90deg,
    rgba(122, 67, 0, 0.94),
    rgba(255, 153, 51, 0.86)
  );
  padding: 4rem 0;
  color: #fff;
}

.about-title {
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.about-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #fff;
  margin-top: 0.5rem;
  border-radius: 2px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

/* 
   ----------------------------------------
   Footer
   ----------------------------------------
*/
.footer {
  background: linear-gradient(
    90deg,
    rgba(122, 67, 0, 0.94),
    rgba(255, 153, 51, 0.86)
  );
  color: #fff;
}

.footer-brand {
  font-size: 1.25rem;
}

.footer-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-heading {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* 
   ----------------------------------------
   Leadership Slider (Original)
   ----------------------------------------
*/
.leadership-panel {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  /* Mask edges for smooth fade */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.leadership-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
}

/* Pause animation on hover */
.leadership-track:hover {
  animation-play-state: paused;
}

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

.leader-set {
  display: flex;
  gap: 1.5rem;
}

.leader-card {
  width: 260px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.leader-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leader-name {
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
}

/* Bottom variant if needed */
.leader-card-bottom {
  background: #f8f9fa;
}

/* 
   ----------------------------------------
   Dashboard / Cards
   ----------------------------------------
*/
.insidebox {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.insidebox:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

.budjet-icon {
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.budjet-text p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budjet-text h3 {
  font-weight: 800;
  color: var(--brand-primary);
  margin: 0;
}
.budjet-text h4 {
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0;
}

.section-bg {
  background-color: #fcfcfc;
}

/* 
   ----------------------------------------
   Accessibility / High Contrast
   ----------------------------------------
*/
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 2000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Mode Overrides */
body.hc {
  background: #000;
  color: #fff;
}

body.hc .site-navbar,
body.hc .gov-topbar,
body.hc .footer,
body.hc .about-section,
body.hc .insidebox,
body.hc .section-bg {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.hc a {
  color: #ffbf47 !important;
  text-decoration: underline;
}

body.hc .btn {
  background: #000 !important;
  color: #ffbf47 !important;
  border: 2px solid #ffbf47 !important;
}

body.hc img {
  filter: grayscale(100%) contrast(120%);
}

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

body.hc .leader-card {
  background: #000;
  border-color: #333;
  color: #fff;
}

body.hc .leader-name,
body.hc .leader-role {
  color: #fff;
}

.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: none;
  font-size: 1.15rem;
  line-height: 1.85;
}

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

.hero .display-5 {
  font-weight: 900;
  letter-spacing: 0.3px;
}

.hero .btn {
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.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;
}

/* Compact Horizontal Leader Card */
.gov-leader-card {
  position: relative;
  margin-bottom: 15px;
  height: auto;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Modifier for Centered/Vertical Card (e.g. PM Card) */
.gov-leader-card-centered {
  flex-direction: column;
  padding: 1.5rem 1rem;
  justify-content: center;
  gap: 12px;
  width: 180px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.gov-leader-card-centered .gov-leader-body {
  align-items: center;
  width: 100%;
}

.gov-leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gov-leader-img {
  position: static; /* Reset absolute positioning */
  width: 72px;
  height: 72px;
  border-radius: 50%; /* Circle */
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 3px solid #f8f9fa;
  flex-shrink: 0;
}

.gov-leader-body {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  min-height: auto;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
  flex-grow: 1;
}

/* Remove old pseudo-elements */
.gov-leader-body::before {
  display: none;
}

.gov-leader-card:hover .gov-leader-body {
  box-shadow: none;
}

.gov-leader-name {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 2px;
  color: var(--brand-primary);
  line-height: 1.2;
}

.gov-leader-role {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.gov-leader-footer {
  margin-top: 0;
  align-self: flex-start;
  background: rgba(255, 153, 51, 0.12);
  color: #d35400;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.gov-leader-card:hover .gov-leader-footer {
  background: var(--brand-accent);
  color: #fff;
}

/* 
   ----------------------------------------
   Gallery Section
   ----------------------------------------
*/
.gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* 
   ----------------------------------------
   Clients / Partners Slider
   ----------------------------------------
*/
.clients-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  /* Mask edges for smooth fade */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scrollClients 40s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-set {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  transition: all 0.2s ease;
  height: 100px;
  min-width: 160px;
}

.client-card img {
  max-width: 100%;
  max-height: 70px;
  transition: all 0.2s ease;
}

.client-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


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

/* 
   ----------------------------------------
   Department Summary Cards
   ----------------------------------------
*/
.department-summary-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  min-width: 140px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.department-summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-accent);
}

.department-summary-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.department-summary-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.2;
}

/* 
   ----------------------------------------
   Gallery Filter
   ----------------------------------------
*/
.gallery-filter {
  display: inline-flex;
  gap: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.gallery-filter-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #666;
  transition: all 0.2s ease;
  cursor: pointer;
}

.gallery-filter-btn:hover {
  background: rgba(255, 153, 51, 0.1);
  color: var(--brand-primary);
}

.gallery-filter-btn.active {
  background: var(--brand-accent);
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 153, 51, 0.3);
}

/* Brand Utility Classes */
.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}
.text-brand-primary {
    color: var(--brand-primary) !important;
}
.bg-brand-accent {
    background-color: var(--brand-accent) !important;
}
.text-brand-accent {
    color: var(--brand-accent) !important;
}
.btn-brand-primary {
    background-color: var(--brand-primary);
    color: #fff;
    border: 1px solid var(--brand-primary);
}
.btn-brand-primary:hover {
    background-color: #2e1a01;
    color: #fff;
    border-color: #2e1a01;
}
