/* =========================================================
   InnovateX Institutional Digital Platform Visual Theme
   css/upgrade.css — Government / Public Sector Styling
   ========================================================= */
body:not([data-page="index"]) {
  background: var(--ix-bg);
}
body:not([data-page="index"]) .navbar {
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
body:not([data-page="index"]) .page-content {
  position: relative;
}
body:not([data-page="index"]) .card,
body:not([data-page="index"]) .problem-card,
body:not([data-page="index"]) .solution-card,
body:not([data-page="index"]) .insight-card {
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  border: 1px solid var(--ix-border);
  border-radius: var(--r-lg);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body:not([data-page="index"]) .card:hover,
body:not([data-page="index"]) .problem-card:hover,
body:not([data-page="index"]) .solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  border-color: var(--ix-border-2);
}
.ix-workflow-upgrade {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow: auto;
  padding: 8px 14px;
  margin: 0 auto 18px;
  max-width: 1200px;
  border: 1px solid var(--ix-border);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}
.ix-workflow-upgrade .step {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ix-muted);
}
.ix-workflow-upgrade .step.active {
  background: var(--ix-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}
.ix-workflow-upgrade .step.done {
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}
.ix-workflow-upgrade .arrow {
  color: #94a3b8;
  font-size: 11px;
}
.auth-grid {
  min-height: calc(100vh - 64px);
}
.auth-form-side {
  background: #ffffff;
}
.auth-card {
  border: 1px solid var(--ix-border)!important;
  box-shadow: var(--shadow-lg)!important;
  border-radius: var(--r-xl)!important;
}
.auth-tab.active {
  background: var(--ix-primary)!important;
  color: #fff!important;
}
#signinBtn, .auth-form .btn-primary {
  box-shadow: 0 1px 3px rgba(15,23,42,.15);
}
@media(max-width:760px){
  .ix-workflow-upgrade { margin: 0 14px 16px; }
  .auth-grid { display: block; }
  .auth-visual { display: none; }
  .auth-form-side { min-height: calc(100vh - 64px); padding: 24px 14px; }
.auth-card { padding: 22px!important; }
  .auth-role-grid { grid-template-columns: 1fr!important; }
}

/* ============================================================
   INSTITUTIONAL TWO-LEVEL HEADER & UTILITY BAND
   ============================================================ */
.gov-top-band {
  background: #071526;
  color: #c7d6e8;
  font-size: 11px;
  position: relative;
  z-index: 105;
  border-bottom: 1px solid #16365a;
}
.gov-top-inner {
  max-width: 100%;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gov-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag-indicator {
  display: inline-flex;
  flex-direction: column;
  width: 15px;
  height: 10px;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 0 1px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.flag-indicator span:nth-child(1) { background: #FF9933; flex: 1; }
.flag-indicator span:nth-child(2) { background: #FFFFFF; flex: 1; }
.flag-indicator span:nth-child(3) { background: #138808; flex: 1; }

.gov-top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.gov-top-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 11px;
  transition: color 0.15s ease;
}
.gov-top-link:hover {
  color: #ffffff;
}
.gov-text-sizer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid #1e3a5f;
  border-right: 1px solid #1e3a5f;
  padding: 0 8px;
}
.gov-text-sizer button {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}
.gov-text-sizer button:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}
.gov-lang-select {
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.gov-tricolor-strip {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #D95D08 0%, #D95D08 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #15803D 66.66%, #15803D 100%);
}

/* Institutional Logo & Brand */
.gov-header-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  padding: 2px 0;
}
.gov-header-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: opacity 0.15s ease;
}
.gov-header-brand:hover .gov-header-logo-img {
  opacity: 0.92;
}
.gov-emblem-seal {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(15,23,42,0.12));
}
.gov-brand-text {
  display: flex;
  flex-direction: column;
}
.gov-brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--ix-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gov-brand-title .accent {
  color: var(--ix-saffron);
}
.gov-brand-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--ix-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media(max-width: 820px) {
  .gov-top-band { display: none; }
  .gov-brand-subtitle { display: none; }
}

@media(max-width: 640px) {
  .gov-header-logo-img {
    height: 38px;
    max-width: 145px;
  }
}

/* ============================================================
   INSTITUTIONAL HERO: PARLIAMENT VISUAL & FEATURE CARDS (IMAGE 3)
   ============================================================ */
.gov-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--ix-border);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 24px 28px 20px;
  position: relative;
  overflow: hidden;
  min-height: 385px;
}
.gov-hero-left {
  position: relative;
  z-index: 4;
  max-width: 530px;
}
.gov-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.9rem, 2.7vw, 2.45rem);
  color: #0F294A;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.gov-hero-title .accent-saffron {
  color: #D95D08;
}
.gov-hero-sub {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.58;
  max-width: 490px;
  margin-bottom: 16px;
}
.gov-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gov-trust-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

/* Right side container */
.gov-hero-right {
  position: relative;
  height: 100%;
  min-height: 345px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
}

/* Parliament visual layer with tricolor wave */
.gov-hero-parliament-layer {
  position: absolute;
  top: -24px;
  right: -28px;
  bottom: -20px;
  width: calc(100% + 40px);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.gov-parliament-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  display: block;
  filter: brightness(0.98) contrast(0.86);
}
.gov-parliament-gradient-edge {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0.85) 35%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

/* 5 Feature Cards Grid: 3 cols x 2 rows (arranged like IMAGE 3) */
.gov-hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 92px);
  grid-template-rows: auto auto;
  gap: 12px 14px;
  justify-content: flex-end;
  position: relative;
  z-index: 3;
  margin-right: 12px;
  margin-bottom: 14px; /* lifts cards above the lower tricolor wave */
}
.hero-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 13px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.09);
  padding: 11px 6px 9px;
  text-decoration: none;
  width: 92px;
  min-height: 82px;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  user-select: none;
  cursor: pointer;
}
.hero-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  border-color: #cbd5e1;
}
.hfc-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.hfc-icon-wrap.blue {
  background: #2563eb;
  color: #ffffff;
}
.hfc-icon-wrap.saffron {
  background: #d95d08;
  color: #ffffff;
}
.hfc-icon-wrap.green {
  background: #16a34a;
  color: #ffffff;
}
.hfc-icon-wrap.orange {
  background: #ea580c;
  color: #ffffff;
}
.hfc-icon-wrap .ix-icon {
  width: 19px;
  height: 19px;
  stroke: #ffffff;
  stroke-width: 2.2;
}
.hfc-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #0F294A;
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}

/* Card Placements matching IMAGE 3 */
.hfc-innovate {
  grid-column: 2;
  grid-row: 1;
}
.hfc-manage {
  grid-column: 3;
  grid-row: 1;
}
.hfc-collaborate {
  grid-column: 1;
  grid-row: 2;
}
.hfc-challenge {
  grid-column: 2;
  grid-row: 2;
}
.hfc-pilot {
  grid-column: 3;
  grid-row: 2;
}

/* Responsive Rules */
@media(max-width: 1080px) {
  .gov-hero-cards-grid {
    grid-template-columns: repeat(3, 86px);
    gap: 10px;
    margin-right: 6px;
  }
  .hero-feature-card {
    width: 86px;
    min-height: 78px;
    padding: 9px 4px 8px;
  }
  .hfc-icon-wrap {
    width: 34px;
    height: 34px;
  }
  .hfc-icon-wrap .ix-icon {
    width: 17px;
    height: 17px;
  }
}

@media(max-width: 900px) {
  .gov-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 20px 24px;
  }
  .gov-hero-left {
    max-width: 100%;
  }
  .gov-hero-right {
    min-height: 280px;
    justify-content: center;
  }
  .gov-hero-parliament-layer {
    width: 100%;
    right: 0;
    top: 0;
    bottom: 0;
  }
  .gov-hero-cards-grid {
    margin-right: 0;
  }
}

@media(max-width: 540px) {
  .gov-hero-cards-grid {
    grid-template-columns: repeat(3, 80px);
    gap: 8px;
  }
  .hero-feature-card {
    width: 80px;
    min-height: 74px;
    padding: 8px 3px 6px;
  }
  .hfc-icon-wrap {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
  }
  .hfc-icon-wrap .ix-icon {
    width: 15px;
    height: 15px;
  }
  .hfc-label {
    font-size: 10px;
  }
}


/* ============================================================
   PROBLEMS PAGE HIGH-CONTRAST INSTITUTIONAL GUARANTEE
   ============================================================ */
body[data-page="problem"] .prob-hero {
  background: linear-gradient(145deg, #071526 0%, #0B1F3A 60%, #0F294A 100%)!important;
  color: #ffffff!important;
}
body[data-page="problem"] .prob-hero h1,
body[data-page="problem"] .prob-hero .display-heading {
  color: #ffffff!important;
}
body[data-page="problem"] .prob-hero p {
  color: rgba(255,255,255,0.75)!important;
}
body[data-page="problem"] .prob-hero .strip-stat-val {
  color: #ffffff!important;
}
body[data-page="problem"] .prob-hero .strip-stat-lbl {
  color: #c7d6e8!important;
}
body[data-page="problem"] .problem-card {
  background: #ffffff!important;
  border: 1px solid #D8DEE9!important;
}
body[data-page="problem"] .problem-title {
  color: #0F294A!important;
  font-weight: 800!important;
}
body[data-page="problem"] .problem-desc {
  color: #334155!important;
}
body[data-page="problem"] .problem-org {
  color: #64748B!important;
}
body[data-page="problem"] .featured-problem {
  background: #ffffff!important;
  border: 1px solid #D8DEE9!important;
}
body[data-page="problem"] .featured-problem h2 {
  color: #0F294A!important;
}

/* ============================================================
   WORKFLOW & HEADER POLISH
   ============================================================ */

/* 1. Remove duplicate upper workflow bar */
.ix-global-workflow {
  display: none !important;
}

/* 2. Remove small circular logo next to InnovateX */
.gov-emblem-seal {
  display: none !important;
}

/* 3. CTA Section High Contrast & Button Polish */
.cta-section .eyebrow {
  color: var(--ix-saffron) !important;
  font-weight: 800 !important;
}
.cta-section p {
  color: #c7d6e8 !important;
}
.cta-section .btn-outline {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  font-weight: 700 !important;
}
.cta-section .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
.cta-section .btn-dark {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 700 !important;
}
.cta-section .btn-dark:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

/* ============================================================
   PERSISTENT SIDEBAR & APP SHELL LAYOUT
   ============================================================ */
body[data-page] {
  overflow-x: clip;
}

.ix-app-shell {
  display: flex;
  min-height: calc(100vh - 60px);
  position: relative;
  background: var(--ix-bg);
}

.ix-sidebar {
  width: 215px;
  flex: 0 0 215px;
  position: sticky;
  top: 60px;
  align-self: flex-start;
  height: calc(100vh - 60px);
  background: linear-gradient(180deg, #071526 0%, #0a1c30 60%, #0d233a 100%);
  border-right: 1px solid #16365a;
  box-shadow: 2px 0 8px rgba(7, 21, 38, 0.10);
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.ix-sidebar-inner {
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ix-sidebar-heading {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8da2be;
  padding: 0 10px;
  margin-bottom: 8px;
}

.ix-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ix-sidebar-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #c7d6e8;
  text-decoration: none;
  transition: all 0.16s ease;
  border-left: 3px solid transparent;
}

.ix-sidebar-link span {
  color: inherit;
  font-size: 13.5px;
  font-weight: inherit;
}

.ix-sidebar-link .ix-icon {
  width: 18px;
  height: 18px;
  stroke: #8da2be;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.ix-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.ix-sidebar-link:hover .ix-icon {
  stroke: #93c5fd;
}

.ix-sidebar-link.active {
  background: #143456;
  border-left-color: var(--ix-saffron);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.ix-sidebar-link.active .ix-icon {
  stroke: #60a5fa;
}

.ix-sidebar-divider {
  height: 1px;
  background: #16365a;
  margin: 16px 6px 14px;
}

.ix-sidebar-workflow-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ix-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #a3b8d0;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ix-sidebar-sublink span {
  color: inherit;
  font-size: 12px;
}

.ix-sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.ix-sidebar-sublink.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
}

.gate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gate-dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.gate-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.ix-main-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ix-bg);
}

.ix-sidebar-backdrop {
  display: none;
}

@media (max-width: 1080px) {
  .ix-sidebar {
    width: 190px;
    flex: 0 0 190px;
  }
}

@media (max-width: 900px) {
  .ix-sidebar {
    position: fixed;
    top: 60px;
    left: -260px;
    width: 250px;
    height: calc(100vh - 60px);
    z-index: 1000;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.40);
  }
  .ix-sidebar.drawer-open {
    transform: translateX(260px);
  }
  .ix-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 999;
  }
  .ix-sidebar-backdrop.active {
    display: block;
  }
}

/* ============================================================
   HEADER: REMOVE DUPLICATE TOP NAVIGATION & ALIGN CONTROLS
   ============================================================ */
.navbar .nav-links,
#navLinks {
  display: none !important;
}

.navbar .nav-inner {
  max-width: 100% !important;
  padding: 0 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.navbar .nav-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}



