/* ============================================================
   KRMS — Kasambahay Registration and Monitoring System
   Design tokens
   ============================================================ */
:root {
  --gov-blue: #0056A6;
  --gov-blue-dark: #003d7a;
  --navy: #102A43;
  --navy-soft: #1a3a5c;
  --white: #FFFFFF;
  --light-blue: #EAF4FF;
  --gold: #F4B400;
  --gold-dark: #d99e00;
  --green: #198754;
  --text-body: #33475b;
  --text-muted: #6b7c93;
  --border-soft: #dfe8f2;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 10px 30px rgba(16, 42, 67, 0.08);
  --shadow-strong: 0 20px 45px rgba(16, 42, 67, 0.16);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gov-blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ============ Buttons ============ */
.btn-krms-primary {
  background: var(--gov-blue);
  border: 1px solid var(--gov-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  transition: all .25s ease;
}
.btn-krms-primary:hover, .btn-krms-primary:focus {
  background: var(--gov-blue-dark);
  border-color: var(--gov-blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-krms-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  transition: all .25s ease;
}
.btn-krms-gold:hover, .btn-krms-gold:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-krms-ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  transition: all .25s ease;
}
.btn-krms-ghost:hover, .btn-krms-ghost:focus {
  background: var(--light-blue);
  color: var(--gov-blue-dark);
  border-color: var(--gov-blue);
}

.btn-outline-krms {
  border: 1px solid var(--gov-blue);
  color: var(--gov-blue);
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 10px;
  transition: all .2s ease;
}
.btn-outline-krms:hover, .btn-outline-krms:focus {
  background: var(--gov-blue);
  color: #fff;
}

.btn-krms-outline-light {
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 10px;
  transition: all .2s ease;
}
.btn-krms-outline-light:hover, .btn-krms-outline-light:focus {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: #fff;
}

/* ============ Navbar ============ */
.krms-navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
.krms-navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 4px 20px rgba(16,42,67,.08);
  border-bottom-color: var(--border-soft);
}
.krms-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gov-blue), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--navy);
}
.brand-subtitle {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .02em;
  max-width: 220px;
}
.krms-nav-links { gap: .35rem; }
.krms-nav-links .nav-link {
  color: var(--text-body);
  font-weight: 600;
  font-size: .93rem;
  padding: .5rem .85rem;
  border-radius: 8px;
  transition: all .2s ease;
  position: relative;
}
.krms-nav-links .nav-link:hover, .krms-nav-links .nav-link:focus {
  color: var(--gov-blue);
  background: var(--light-blue);
}
.krms-nav-actions { flex-shrink: 0; }
.navbar-toggler {
  border: 1px solid var(--border-soft);
  padding: .4rem .6rem;
}
.navbar-toggler .bi-list { font-size: 1.5rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0,86,166,.25); }

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    margin-top: 14px;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
  }
  .krms-nav-actions { margin-top: 1rem; flex-direction: column; }
  .krms-nav-actions .btn { width: 100%; text-align: center; }
}

/* ============ Hero ============ */
.hero-section {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--light-blue) 0%, #ffffff 78%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(0,86,166,.10), transparent 70%),
    radial-gradient(500px 400px at 5% 90%, rgba(244,180,0,.12), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--gov-blue);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .04em;
  padding: .5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}
.hero-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.hero-subtext {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.hero-subtext .bi { color: var(--green); }

/* Dashboard mock */
.dashboard-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.dashboard-mock-header {
  background: linear-gradient(135deg, var(--navy), var(--gov-blue-dark));
  padding: .9rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dm-dots { display: flex; gap: 6px; }
.dm-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.dm-title {
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.dashboard-mock-body { padding: 1.2rem; background: #f7fafd; }

.dm-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}
.dm-stat {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.dm-stat-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .95rem;
  flex-shrink: 0;
}
.dm-stat-icon.bg-blue { background: var(--gov-blue); }
.dm-stat-icon.bg-navy { background: var(--navy); }
.dm-stat-icon.bg-gold { background: var(--gold); color: var(--navy); }
.dm-stat-icon.bg-green { background: var(--green); }
.dm-stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
  font-family: var(--font-display);
}
.dm-stat-label {
  display: block;
  font-size: .66rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.dm-chart-card, .dm-map-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: .85rem;
  margin-bottom: .75rem;
}
.dm-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}
.dm-chart-tag {
  font-size: .65rem;
  color: var(--gov-blue);
  background: var(--light-blue);
  padding: .2rem .5rem;
  border-radius: 999px;
  font-weight: 700;
}
.dm-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 70px;
}
.dm-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--gov-blue), var(--gov-blue-dark));
  border-radius: 4px 4px 0 0;
  animation: growUp 1.1s ease forwards;
  transform-origin: bottom;
}
.dm-bars.alt span { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); }
.dm-bars.mini { height: 50px; }
@keyframes growUp {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
.dm-map-header {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.dm-map-header .bi { color: var(--gov-blue); }
.dm-map-grid {
  position: relative;
  height: 70px;
  background: var(--light-blue);
  border-radius: 8px;
  overflow: hidden;
}
.dm-map-grid .dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gov-blue);
  box-shadow: 0 0 0 4px rgba(0,86,166,.18);
}
.dm-map-grid .d1 { top: 20%; left: 10%; } .dm-map-grid .d2 { top: 55%; left: 22%; background: var(--gold); box-shadow:0 0 0 4px rgba(244,180,0,.2);}
.dm-map-grid .d3 { top: 30%; left: 38%; } .dm-map-grid .d4 { top: 65%; left: 48%; }
.dm-map-grid .d5 { top: 15%; left: 60%; background: var(--green); box-shadow:0 0 0 4px rgba(25,135,84,.2);} .dm-map-grid .d6 { top: 45%; left: 72%; }
.dm-map-grid .d7 { top: 70%; left: 82%; } .dm-map-grid .d8 { top: 25%; left: 90%; background: var(--gold); box-shadow:0 0 0 4px rgba(244,180,0,.2);}

@media (max-width: 991.98px) {
  .hero-section { padding: 130px 0 60px; }
}

/* ============ Stats strip ============ */
.stats-strip {
  background: var(--navy);
  padding: 3rem 0;
  position: relative;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
}
.stat-label {
  color: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: .88rem;
  margin-top: .25rem;
}

/* ============ Sections general ============ */
.section { padding: 5.5rem 0; }
.section-heading { max-width: 700px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--gov-blue);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.section-heading p { color: var(--text-muted); font-size: 1.02rem; }
.section-heading.light .eyebrow { color: var(--gold); }
.section-heading.light h2, .section-heading.light p { color: #fff; }
.section-heading.light p { color: rgba(255,255,255,.75); }

/* ============ About ============ */
.about-section { background: #fff; }
.about-lead { font-size: 1.12rem; color: var(--text-body); margin-bottom: 1.75rem; }
.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem 1rem;
}
.about-checklist li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}
.about-checklist .bi { color: var(--green); font-size: 1.1rem; flex-shrink: 0; }

.about-graphic {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-graphic-card {
  background: linear-gradient(135deg, var(--gov-blue), var(--navy));
  color: #fff;
  border-radius: 18px;
  width: 170px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 700;
  font-size: .85rem;
  text-align: center;
  box-shadow: var(--shadow-strong);
  z-index: 2;
  padding: 1rem;
}
.about-graphic-card .bi { font-size: 2.2rem; }
.about-graphic-ring {
  position: absolute;
  border: 1.5px dashed var(--border-soft);
  border-radius: 50%;
}
.about-graphic-ring.r1 { width: 260px; height: 260px; animation: spin 30s linear infinite; }
.about-graphic-ring.r2 { width: 340px; height: 340px; border-color: rgba(0,86,166,.18); animation: spin 45s linear infinite reverse; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.about-graphic-node {
  position: absolute;
  width: 54px; height: 54px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--gov-blue);
  box-shadow: var(--shadow-soft);
}
.about-graphic-node.n1 { top: 4%; left: 12%; color: var(--gold); }
.about-graphic-node.n2 { top: 10%; right: 6%; color: var(--green); }
.about-graphic-node.n3 { bottom: 8%; left: 4%; }
.about-graphic-node.n4 { bottom: 2%; right: 14%; color: var(--gold); }

@media (max-width: 767.98px) {
  .about-checklist { grid-template-columns: 1fr; }
  .about-graphic { height: 280px; }
  .about-graphic-card { width: 130px; height: 130px; }
  .about-graphic-ring.r1 { width: 200px; height: 200px; }
  .about-graphic-ring.r2 { width: 260px; height: 260px; }
}

/* ============ Features ============ */
.features-section { background: var(--light-blue); }
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.9rem 1.6rem;
  height: 100%;
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--light-blue);
  color: var(--gov-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  transition: all .25s ease;
}
.feature-card:hover .feature-icon { background: var(--gov-blue); color: #fff; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.feature-card p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* ============ How it works ============ */
.how-section { background: #fff; }
.how-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.how-timeline::before {
  content: "";
  position: absolute;
  top: 78px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-soft) 0 10px, transparent 10px 18px);
  z-index: 0;
}
.how-step {
  position: relative;
  z-index: 1;
  text-align: center;
  background: #fff;
  padding: 0 .5rem;
}
.how-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: .4rem;
}
.how-step-icon {
  width: 66px; height: 66px;
  margin: 0 auto .9rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 6px solid #fff;
  box-shadow: 0 0 0 1px var(--border-soft), var(--shadow-soft);
}
.how-step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.how-step p { font-size: .9rem; color: var(--text-muted); }

@media (max-width: 767.98px) {
  .how-timeline { grid-template-columns: 1fr; gap: 2.2rem; }
  .how-timeline::before { display: none; }
}

/* ============ User types ============ */
.users-section { background: var(--light-blue); }
.user-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  border: 1px solid var(--border-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.user-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.user-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gov-blue), var(--navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.1rem;
}
.user-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.user-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ============ Workflow diagram ============ */
.workflow-section { background: #fff; }
.workflow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
}
.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.1rem 1rem;
  width: 150px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.workflow-node i { font-size: 1.5rem; color: var(--gov-blue); }
.workflow-node span { font-size: .8rem; font-weight: 700; color: var(--navy); }
.workflow-line {
  width: 44px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gov-blue) 0 8px, transparent 8px 14px);
  position: relative;
  flex-shrink: 0;
}
.workflow-line::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--gov-blue);
  border-bottom: 2px solid var(--gov-blue);
  transform: translateY(-50%) rotate(-45deg);
}
@media (max-width: 767.98px) {
  .workflow-diagram { flex-direction: column; }
  .workflow-line { width: 2px; height: 30px; background: repeating-linear-gradient(180deg, var(--gov-blue) 0 8px, transparent 8px 14px); }
  .workflow-line::after { right: 50%; top: auto; bottom: -2px; transform: translateX(50%) rotate(45deg); }
}

/* ============ Dashboard preview (full) ============ */

.fd-sidebar {
  background: var(--navy);
  padding: 1.5rem 1rem;
}
.fd-sidebar-logo {
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  padding: 0 .5rem;
}
.fd-sidebar-nav { display: flex; flex-direction: column; gap: .3rem; }
.fd-sidebar-nav span {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  font-weight: 600;
  padding: .65rem .75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.fd-sidebar-nav span.active { background: var(--gov-blue); color: #fff; }
.fd-main { padding: 1.5rem; overflow-x: auto; }
.fd-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.fd-admin { font-size: .85rem; color: var(--text-muted); display: flex; align-items: center; gap: .4rem; }
.fd-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.fd-stat {
  background: var(--light-blue);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.fd-stat-label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.fd-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.fd-panel-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.fd-panel-row:nth-of-type(3) { grid-template-columns: 1fr 1fr 1fr; }
.fd-panel {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.1rem;
}
.fd-panel-title { font-weight: 700; color: var(--navy); font-size: .88rem; margin-bottom: .9rem; }
.fd-donut {
  width: 130px; height: 130px;
  border-radius: 50%;
  margin: .4rem auto;
  background: conic-gradient(var(--gov-blue) 0% 45%, var(--gold) 45% 72%, var(--green) 72% 100%);
  position: relative;
}
.fd-donut::after {
  content: "";
  position: absolute;
  inset: 22%;
  background: #fff;
  border-radius: 50%;
}
.fd-donut.small { width: 90px; height: 90px; }
.fd-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.fd-list li { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: var(--text-body); }
.fd-tag { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.fd-tag-green { background: rgba(25,135,84,.12); color: var(--green); }
.fd-tag-gold { background: rgba(244,180,0,.15); color: #a67600; }
.fd-tag-navy { background: rgba(16,42,67,.1); color: var(--navy); }
.fd-hbars { display: flex; flex-direction: column; gap: .6rem; }
.fd-hbars span {
  position: relative;
  display: block;
  height: 22px;
  background: var(--light-blue);
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 22px;
  padding-left: 8px;
  overflow: hidden;
}
.fd-hbars span::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--gov-blue), var(--gold));
  border-radius: 6px;
  z-index: 0;
  animation: growRight 1.1s ease forwards;
  transform-origin: left;
}
.fd-hbars.mini span { height: 14px; line-height: 14px; }
@keyframes growRight { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fd-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.fd-table th { text-align: left; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; padding: .5rem .6rem; border-bottom: 1px solid var(--border-soft); }
.fd-table td { padding: .65rem .6rem; border-bottom: 1px solid var(--border-soft); color: var(--text-body); font-weight: 600; }

@media (max-width: 991.98px) {
  .full-dashboard { grid-template-columns: 1fr; }
  .fd-sidebar { display: none; }
  .fd-stat-row { grid-template-columns: 1fr 1fr; }
  .fd-panel-row, .fd-panel-row:nth-of-type(3) { grid-template-columns: 1fr; }
}

/* ============ Security ============ */
.security-section {
  background: linear-gradient(160deg, var(--navy) 0%, #0c1f33 100%);
  position: relative;
  overflow: hidden;
}
.security-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 90% 0%, rgba(0,86,166,.25), transparent 70%);
}
.security-card {
  position: relative;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  height: 100%;
  transition: all .25s ease;
}
.security-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.security-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: .8rem; display: inline-block; }
.security-card h3 { color: #fff; font-size: 1rem; margin: 0; }

/* ============ Benefits ============ */
.benefits-section { background: #fff; }
.benefit-card {
  background: var(--light-blue);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  height: 100%;
  transition: transform .25s ease;
}
.benefit-card:hover { transform: translateY(-5px); }
.benefit-card i { font-size: 1.6rem; color: var(--gov-blue); margin-bottom: .8rem; display: inline-block; }
.benefit-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.benefit-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ============ Reports ============ */
.reports-section { background: var(--light-blue); }
.report-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  height: 100%;
}
.report-title { font-weight: 700; color: var(--navy); font-size: .88rem; margin-bottom: 1rem; }

/* ============ FAQ ============ */
.faq-section { background: #fff; }
.krms-accordion { max-width: 820px; margin: 0 auto; }
.krms-accordion .accordion-item {
  border: 1px solid var(--border-soft);
  border-radius: 12px !important;
  margin-bottom: .8rem;
  overflow: hidden;
}
.krms-accordion .accordion-button {
  font-weight: 700;
  color: var(--navy);
  font-size: .98rem;
  padding: 1.1rem 1.3rem;
}
.krms-accordion .accordion-button:not(.collapsed) {
  background: var(--light-blue);
  color: var(--gov-blue-dark);
  box-shadow: none;
}
.krms-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(0,86,166,.2); }
.krms-accordion .accordion-body { color: var(--text-muted); font-size: .92rem; padding: 1rem 1.3rem 1.3rem; }

/* ============ CTA ============ */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(120deg, var(--gov-blue) 0%, var(--navy) 100%);
  overflow: hidden;
}
.cta-shapes span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-shapes span:nth-child(1) { width: 260px; height: 260px; top: -100px; left: -80px; animation: drift 9s ease-in-out infinite; }
.cta-shapes span:nth-child(2) { width: 180px; height: 180px; bottom: -70px; right: 8%; animation: drift 11s ease-in-out infinite reverse; }
.cta-shapes span:nth-child(3) { width: 100px; height: 100px; top: 20%; right: 20%; background: rgba(244,180,0,.15); animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-18px);} }
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.cta-section p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ Contact ============ */
.contact-section { background: #fff; }
.contact-info-card {
  background: var(--light-blue);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item i { font-size: 1.2rem; color: var(--gov-blue); margin-top: .2rem; }
.contact-info-item strong { display: block; color: var(--navy); font-size: .9rem; }
.contact-info-item span { color: var(--text-muted); font-size: .9rem; }

.contact-form .form-label { font-weight: 600; color: var(--navy); font-size: .88rem; }
.contact-form .form-control {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .93rem;
}
.contact-form .form-control:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(0,86,166,.15);
}
.form-success { color: var(--green); font-weight: 700; font-size: .9rem; }

/* ============ Footer ============ */
.krms-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.75rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .9rem;
}
.footer-brand .brand-title { color: #fff; font-size: 1.3rem; }
.footer-tag { color: var(--gold); font-weight: 700; font-size: .85rem; margin-bottom: .6rem; }
.footer-desc { font-size: .88rem; max-width: 320px; }
.krms-footer h4 { color: #fff; font-size: .95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .88rem; transition: color .2s ease; }
.footer-links a:hover, .footer-links a:focus { color: var(--gold); }
.footer-social { list-style: none; padding: 0; margin: 0; display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.footer-social a:hover, .footer-social a:focus { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.krms-footer hr { border-color: rgba(255,255,255,.12); margin: 2.5rem 0 1.5rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .82rem;
}

/* ============ Back to top ============ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gov-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover, .back-to-top:focus { background: var(--gov-blue-dark); }

/* ============ Responsive tweaks ============ */
@media (max-width: 575.98px) {
  .section { padding: 3.5rem 0; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .cta-actions { flex-direction: column; }
}
