/* ========================================
   IME Department - Ministry of Planning, Development & Special Initiatives
   Official Color System — UI Redesign
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ─── Official Ministry Colors ─── */
  --primary:        #022822;
  --primary-mid:    #033a31;
  --secondary:      #044a42;
  --secondary-mid:  #055a50;
  --accent:         #f8b739;
  --accent-hover:   #ffcc5e;
  --accent-dark:    #d9960a;

  /* ─── Neutrals ─── */
  --white:          #ffffff;
  --off-white:      #f4f8f6;
  --light-bg:       #eef4f1;
  --text-dark:      #0c1f1a;
  --text-mid:       #2a4a3e;
  --text-muted:     #5a7a6e;
  --border:         #cce0d9;
  --border-light:   #e1eeea;

  /* ─── Shadows & misc ─── */
  --shadow-sm:  0 2px 8px rgba(2,40,34,0.08);
  --shadow:     0 4px 20px rgba(2,40,34,0.12);
  --shadow-lg:  0 12px 48px rgba(2,40,34,0.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --menu-bg:    #03332d;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  background: var(--primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
strong { color: inherit; }

/* ==============================
   NAVBAR
   ============================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(2, 40, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(248,183,57,0.15);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.navbar.scrolled {
  background: rgba(2, 30, 24, 0.99);
  box-shadow: var(--shadow-lg);
  border-bottom-color: rgba(248,183,57,0.25);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.5rem; gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.8rem; }
.nav-logo {
  height: 46px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.08);
}
.nav-title { display: flex; flex-direction: column; }
.nav-title-main {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--white); letter-spacing: 0.2px;
}
.nav-title-sub { font-size: 0.62rem; color: rgba(255,255,255,0.55); letter-spacing: 0.3px; }
.nav-links {
  display: flex; align-items: center; gap: 0.15rem;
  list-style: none;
}
.nav-link {
  color: rgba(255,255,255,0.72);
  text-decoration: none; font-size: 0.775rem; font-weight: 500;
  padding: 0.38rem 0.6rem; border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(248,183,57,0.1);
}
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ==============================
   HERO — Full-Screen Slider
   ============================== */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(160deg, var(--primary) 0%, #032e26 45%, var(--secondary) 100%);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
/* Subtle geometric pattern */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(248,183,57,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(4,74,66,0.5) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.018' d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(248,183,57,0.06) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(248,183,57,0.07) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.015' d='M0 0h40v40H0zM40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}


/* ==============================
   MODULES GRID
   ============================== */
/* ==============================
   VIEWING SCREEN WRAPPER
   ============================== */
.viewing-screen {
  background: transparent;
  border-radius: 30px;
  padding: 3rem 0; 
  border: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.screen-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  text-align: center;
  position: relative;
  z-index: 2;
  letter-spacing: -0.5px;
}

.screen-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.viewing-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(248, 183, 57, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 3rem !important;
}
.module-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  backdrop-filter: blur(10px);
}
.module-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: var(--transition);
}
.module-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(248,183,57,0.3);
}
.module-card:hover::after { transform: scaleX(1); }

.module-icon {
  width: 50px; height: 50px;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.module-icon img { width: 100%; height: 100%; object-fit: contain; }
.module-card:hover .module-icon { transform: scale(1.1); }

.module-card h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  white-space: nowrap;
}
.module-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  text-align: center;
  flex-grow: 1;
}
.read-more {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==============================
   DETAIL PAGES
   ============================== */
.detail-page .navbar { background: var(--primary); border-bottom: 1px solid rgba(248,183,57,0.2); }
.detail-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 120px 0 60px;
  color: var(--white);
  text-align: center;
  position: relative;
}
.detail-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(248,183,57,0.08), transparent 60%);
}
.detail-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.detail-hero p { font-size: 1.1rem; opacity: 0.8; position: relative; z-index: 1; }

.slide-inner {
  max-width: 1200px; width: 100%;
  margin: 0 auto; padding: 0 1.5rem;
  padding-top: 70px;
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(248,183,57,0.13);
  border: 1px solid rgba(248,183,57,0.35);
  color: var(--accent-hover);
  padding: 0.42rem 1.2rem; border-radius: 50px;
  font-size: 0.76rem; font-weight: 600;
  margin-bottom: 0.85rem; letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
}
.slide-number {
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px; margin-bottom: 1rem;
  text-transform: uppercase;
}
.slide-icon {
  font-size: 3.5rem; margin-bottom: 0.85rem;
  filter: drop-shadow(0 4px 12px rgba(248,183,57,0.3));
}
.slide-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.slide-title span { color: var(--accent); }
.slide-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.74);
  max-width: 650px; line-height: 1.8;
  margin-bottom: 2.2rem;
  border-left: 3px solid rgba(248,183,57,0.4);
  padding-left: 1rem;
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 2rem; border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(248,183,57,0.35);
  letter-spacing: 0.2px;
}
.slide-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(248,183,57,0.45);
}

/* ── ARROW CONTROLS ── */
.slider-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white); font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.slider-arrow:hover {
  background: var(--accent); color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(248,183,57,0.4);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* ── DOT NAVIGATION ── */
.slider-dots {
  position: absolute; bottom: 3.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0.55rem;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.dot.active, .dot:hover {
  background: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(248,183,57,0.5);
}

/* ── PROGRESS BAR ── */
.slider-progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.08); z-index: 10;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  width: 0%;
  transition: width 0.1s linear;
}

/* ==============================
   SECTION SYSTEM
   ============================== */
.section { padding: 0; }
.detail-page .section { padding: 30px 0; }

/* Dark sections — deep primary green */
.section-dark {
  background: var(--primary);
  color: var(--white);
  padding-top: 30px;
}
/* Light sections — crisp off-white (Updated for dark theme) */
.section-light {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
}
/* Gradient sections — secondary green */
.section-gradient {
  background: linear-gradient(135deg, var(--secondary) 0%, #033a31 60%, var(--primary) 100%);
  color: var(--white);
}

/* Section header */
.section-header { text-align: center; margin-bottom: 3.25rem; }
.section-tag {
  display: inline-block;
  padding: 0.3rem 1.1rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  margin-bottom: 1rem; letter-spacing: 0.8px;
  text-transform: uppercase;
  /* Light default */
  background: rgba(4,74,66,0.1);
  border: 1px solid rgba(4,74,66,0.22);
  color: var(--secondary);
}
.section-dark .section-tag {
  background: rgba(248,183,57,0.12);
  border-color: rgba(248,183,57,0.3);
  color: var(--accent-hover);
}
.section-gradient .section-tag {
  background: rgba(248,183,57,0.18);
  border-color: rgba(248,183,57,0.4);
  color: var(--accent-hover);
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-weight: 800; margin-bottom: 1.25rem;
  color: inherit; letter-spacing: -0.3px;
}
.section-light .section-title { color: var(--primary); }
.section-dark .section-title, .section-gradient .section-title { color: var(--white); }

/* Gold underline accent under section titles */
.section-header .section-title::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin: 0.9rem auto 0;
}

.section-desc {
  font-size: 0.97rem; line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify; /* Justify text as requested */
}
.section-dark .section-desc,
.section-gradient .section-desc { color: rgba(255,255,255,0.78); }
.section-light .section-desc { color: var(--text-mid); }

.sub-section { margin-top: 3.25rem; }
.sub-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.38rem; font-weight: 700;
  margin-bottom: 1.25rem; color: inherit;
  display: flex; align-items: center; gap: 0.6rem;
}
.sub-title::before {
  content: '';
  display: inline-block; width: 4px; height: 1.2em;
  background: var(--accent);
  border-radius: 2px; flex-shrink: 0;
}
.section-light .sub-title { color: var(--primary); }

/* ==============================
   ORG CHART
   ============================== */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; width: 100%; align-items: stretch; }
.org-connector {
  width: 2px; height: 32px;
  background: linear-gradient(to bottom, rgba(248,183,57,0.5), rgba(248,183,57,0.15));
  margin: 0 auto;
}
.org-connector.small { height: 20px; }
.org-branch { display: flex; flex-direction: column; align-items: center; flex: 1; }
.org-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center; min-width: 150px; max-width: 220px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}
.section-light .org-node {
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.org-node:hover {
  background: var(--primary); /* Keep fully opaque on hover to hide lines behind it */
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.section-light .org-node:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.node-minister {
  background: linear-gradient(135deg, rgba(248,183,57,0.2), rgba(255,204,94,0.12));
  border: 2px solid rgba(248,183,57,0.5);
  box-shadow: 0 0 20px rgba(248,183,57,0.12);
}
.node-member {
  background: var(--primary); /* Opaque solid color to hide the line underneath */
  border-color: rgba(248,183,57,0.35);
  position: relative;
  z-index: 2; /* Sit strictly above lines */
}
.node-support {
  background: var(--primary); /* Opaque solid color to hide the line underneath */
  border-color: rgba(255,255,255,0.12);
  position: relative;
  z-index: 2; /* Sit strictly above lines */
}
.org-node-photo {
  width: 80px; height: 80px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: var(--primary);
  transition: var(--transition);
}
.org-node:hover .org-node-photo {
  transform: scale(1.05);
  border-color: var(--white);
}
.org-node-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.org-node-photo.small { width: 65px; height: 65px; }
.org-node-photo.mini { width: 50px; height: 50px; border-width: 2px; }
.node-pd-offset { margin-top: 2.5rem; }

/* Staggered Layout for Level 3 */
.org-staggered-level {
  position: relative;
  z-index: 0; /* Creates stacking context to prevent z-index -1 lines from hiding behind section background */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.vertical-main-line {
  position: absolute;
  top: -32px;
  height: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--accent);
  z-index: 0; /* Changed from -1 to ensure it stays visible but we'll use background blocks to cover it */
}

.section-light .vertical-main-line {
  background: var(--accent);
  opacity: 1;
}

.support-row {
  display: flex;
  justify-content: center;
  gap: 12rem; /* Reduced slightly to bring nodes closer if needed, or adjust to fit */
  position: relative;
  width: 100%;
  padding-top: 1rem;
}

.horizontal-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 24rem); /* Dynamic width based on gap to prevent shooting past nodes */
  max-width: 400px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  z-index: 0; 
}

.section-light .horizontal-line {
  background: var(--accent);
  height: 2px;
  opacity: 0.8;
}

.pd-row {
  margin-top: 4rem;
  position: relative;
  z-index: 2; /* Ensure PD sits above the lines */
}

/* Ensure support nodes have opaque backgrounds to block the line behind them */
.node-support {
  background: var(--primary); /* Use solid color instead of translucent */
  border-color: rgba(255,255,255,0.12);
}
.section-light .node-support {
  background: var(--white);
}

.org-node-title { font-size: 0.75rem; color: var(--accent); font-weight: 600; margin-bottom: 0.2rem; letter-spacing: 0.3px; }
.section-light .org-node-title { color: var(--secondary); opacity: 0.8; }
.org-node-name { font-size: 0.88rem; font-weight: 700; color: var(--white); }
.section-light .org-node-name { color: var(--primary); }
.node-dg { 
  min-width: 160px; 
  border-color: rgba(248,183,57,0.2); 
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.section-light .node-dg { border-color: var(--border-light); border-top: 3px solid var(--secondary); }
.node-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  min-width: 120px;
  width: 100%;
}
.section-light .node-field {
  background: rgba(2,40,34,0.05);
  border-color: var(--border-light);
  color: var(--text-mid);
  font-weight: 500;
}

/* ==============================
   RBM CHAIN
   ============================== */
.rbm-chain {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.5rem; justify-content: center;
  margin-top: 2.5rem;
}
.rbm-item {
  background: var(--white);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  min-width: 145px; flex: 1;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.rbm-item:hover {
  border-bottom-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.rbm-item-highlight {
  border: 2px solid var(--accent-dark);
  border-bottom: 3px solid var(--accent);
  background: linear-gradient(135deg, #fffbef, #fff8dc);
  box-shadow: 0 4px 20px rgba(248,183,57,0.15);
}
.rbm-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rbm-label {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem;
  font-weight: 700; color: var(--primary); margin-bottom: 0.75rem;
}
.rbm-kpi { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.kpi-tag {
  background: rgba(2,40,34,0.08);
  border: 1px solid rgba(2,40,34,0.14);
  color: var(--secondary);
  font-size: 0.67rem; font-weight: 600;
  padding: 0.2rem 0.55rem; border-radius: 50px;
}
.rbm-arrow { font-size: 1.5rem; color: var(--accent-dark); font-weight: 700; }

/* Dark mode overrides for RBM Chain */
.section-dark .rbm-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 3px solid rgba(248,183,57,0.4);
  color: var(--white);
}
.section-dark .rbm-item:hover {
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--accent);
}
.section-dark .rbm-label {
  color: var(--accent);
}
.section-dark .rbm-item-highlight {
  background: rgba(248,183,57,0.1);
  border: 1px solid rgba(248,183,57,0.3);
  border-bottom: 3px solid var(--accent);
}
.section-dark .rbm-arrow {
  color: var(--white);
  opacity: 0.5;
}
.section-dark .kpi-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}

/* ==============================
   MONITORING
   ============================== */
.monitoring-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.monitoring-block {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid rgba(248,183,57,0.35);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: var(--transition);
}
.monitoring-block:hover { background: rgba(255,255,255,0.08); border-top-color: var(--accent); }
.monitoring-block h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1rem;
}
.monitoring-block p { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.85; }

/* Feature list */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative; font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0.88;
  transition: var(--transition);
}
.feature-list li:hover { opacity: 1; padding-left: 1.75rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.section-light .feature-list li::before { background: var(--secondary); }
.section-light .feature-list li { border-bottom-color: var(--border); opacity: 1; }

/* KPI grid */
.kpi-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem; 
  margin: 1.5rem auto 0; 
  max-width: 750px; 
}
.kpi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid rgba(248,183,57,0.4);
  padding: 1.25rem 0.75rem;
  font-size: 0.8rem; 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
  align-items: center; 
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

/* Shine Hover Effect */
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
  z-index: 1;
}

.kpi-card:hover::before {
  left: 200%;
}

.section-light .kpi-card {
  background: var(--primary);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.kpi-card:hover { border-left-color: var(--accent); }
.section-light .kpi-card:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--secondary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.kpi-icon { font-size: 1.5rem; flex-shrink: 0; margin-bottom: 0.2rem; }
.kpi-card strong { color: var(--accent); display: block; margin-bottom: 0.15rem; font-size: 1rem; }
.section-light .kpi-card strong { color: var(--accent); }
.section-light .kpi-card span { color: rgba(255,255,255,0.8); font-weight: 600; }

/* Policy download button */
.policy-download { margin-top: 1.25rem; }
.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(248,183,57,0.15);
  border: 1px solid rgba(248,183,57,0.45);
  color: var(--accent-hover); padding: 0.7rem 1.3rem;
  border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
}
.btn-download:hover {
  background: rgba(248,183,57,0.28);
  box-shadow: 0 4px 14px rgba(248,183,57,0.2);
}
.download-label {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 0.6rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  font-style: italic;
  opacity: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding-left: 0.1rem;
}
.download-label::before {
  content: 'ⓘ';
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Two-col list */
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1rem; }
.features-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.feature-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  padding: 0.45rem 1rem; border-radius: 50px;
  font-size: 0.79rem; color: rgba(255,255,255,0.83);
  transition: var(--transition);
}
.feature-pill:hover { background: rgba(248,183,57,0.12); border-color: rgba(248,183,57,0.3); color: var(--accent-hover); }
.section-light .feature-pill {
  background: rgba(2,40,34,0.07);
  border-color: var(--border-light);
  color: var(--text-mid);
}
.section-light .feature-pill:hover {
  background: rgba(4,74,66,0.12);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Approaches grid */
.approaches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 1rem; margin-top: 1rem; }
.approach-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-bottom: 3px solid rgba(248,183,57,0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem; text-align: center;
  transition: var(--transition);
}
.approach-card:hover {
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.approach-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.approach-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 0.98rem; font-weight: 700;
  color: var(--accent-hover); margin-bottom: 0.5rem;
}
.approach-card p { font-size: 0.82rem; opacity: 0.72; }

/* Impact items */
.impact-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.impact-item {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 0.8rem 1rem;
  font-size: 0.86rem; display: flex; gap: 0.6rem;
  transition: var(--transition);
}
.impact-item:hover { background: rgba(255,255,255,0.09); }

/* ==============================
   PROJECT ROADMAP & FILM STRIP
   ============================== */
.roadmap-layout {
  display: grid;
  grid-template-columns: 3fr 1fr; /* 9 units to 3 units (75% / 25%) */
  gap: 2rem;
  align-items: center; /* Center roadmap vertically relative to the strip */
}
/* ==============================
   EVALUATION
   ============================== */
.eval-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.eval-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.eval-block:hover { box-shadow: var(--shadow); border-top-color: var(--accent-dark); }
.eval-block h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1rem;
}

/* Lifecycle cards */
.lifecycle-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.lifecycle-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem; text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.lifecycle-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.lifecycle-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 700; padding: 0.3rem 1.1rem; border-radius: 50px;
  font-size: 0.85rem; margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}
.lifecycle-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.5rem;
}
.lifecycle-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Eval select grid */
.eval-select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.eval-select-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-top: 3px solid var(--secondary);
  border-radius: var(--radius); padding: 1.6rem;
  text-align: center; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.eval-select-card:hover {
  border-top-color: var(--accent-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.eval-select-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.eval-select-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.5rem;
}
.eval-select-card p { font-size: 0.82rem; color: var(--text-muted); }

/* ==============================
   IMPACT (section-gradient)
   ============================== */
.impact-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.impact-block {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 3px solid rgba(248,183,57,0.5);
  border-radius: var(--radius); padding: 1.85rem;
  transition: var(--transition);
}
.impact-block:hover { background: rgba(255,255,255,0.1); border-top-color: var(--accent); }
.impact-block h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--accent-hover); margin-bottom: 0.75rem;
}
.impact-block p { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.84; }

/* ==============================
   EVIDENCE
   ============================== */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.evidence-block {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid rgba(248,183,57,0.35);
  border-radius: var(--radius); padding: 1.6rem;
  transition: var(--transition);
}
.evidence-block:hover {
  background: rgba(255,255,255,0.09);
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}
.evidence-block h3 {
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--accent); margin-bottom: 0.75rem;
}

/* Tech cards */
.tech-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.tech-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: var(--transition);
}
.tech-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(248,183,57,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.tech-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tech-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 0.95rem; font-weight: 700;
  color: var(--accent); margin-bottom: 0.4rem;
}
.tech-card p { font-size: 0.8rem; opacity: 0.72; }

/* ==============================
   MOBILE APP (section-light)
   ============================== */
.app-features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.app-feature-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius); padding: 1.85rem;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.app-feature-card:hover {
  border-left-color: var(--accent-dark);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.app-feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.app-feature-card h4 {
  font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--primary); margin-bottom: 0.5rem;
}
.app-feature-card p { font-size: 0.85rem; color: var(--text-muted); }


.app-screenshots {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.app-screenshots .sub-title {
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}
.app-carousel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.screenshots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; /* Added for mobile focus */
  scrollbar-width: none; 
  cursor: grab;
  user-select: none; /* Prevent text selection while dragging */
  width: 100%;
}
.screenshots-scroll:active {
  cursor: grabbing;
}
.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.app-nav-btn {
  background: var(--primary);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  flex-shrink: 0;
}
.app-nav-btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.1);
}

.screenshot-item {
  flex: 0 0 255px; /* Reduced width to match new height proportionately */
  flex-shrink: 0;
  scroll-snap-align: center;
  height: 510px; /* Reduced height by 50px as requested */
  aspect-ratio: 9 / 18;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 4px solid var(--accent);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: zoom-in;
}
.screenshot-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 45px rgba(0,0,0,0.25);
  border-color: var(--accent);
}
.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Reverted to cover as per latest user request */
  object-position: center;
  border-radius: 22px;
  display: block;
}

/* Modal / Lightbox Styles */
.app-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000; /* Solid black to hide thumbnails */
  backdrop-filter: blur(8px);
}
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  max-width: 80%;
  max-height: 85vh;
  border-radius: 12px;
  border: 4px solid var(--accent);
  animation-name: zoom;
  animation-duration: 0.3s;
}
@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: var(--white);
  padding: 10px 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.app-benefits {
  margin-top: 2.5rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow);
}
.app-benefits h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700;
  color: var(--primary); margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.benefit-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.875rem; color: var(--text-mid);
  padding: 0.85rem; border-radius: 8px;
  background: var(--light-bg);
  border-left: 3px solid var(--secondary);
  transition: var(--transition);
}
.benefit-item:hover { background: var(--off-white); border-left-color: var(--accent-dark); }
.benefit-icon { font-size: 1.2rem; flex-shrink: 0; }
.app-download-cta { margin-top: 1.75rem; text-align: center; }
.app-download-cta p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.85rem; }
.btn-app-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); font-weight: 700; font-size: 1rem;
  padding: 0.9rem 2.5rem; border-radius: 12px;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 4px 20px rgba(2,40,34,0.3);
  border: 2px solid transparent;
}
.btn-app-download:hover {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
  box-shadow: 0 6px 28px rgba(2,40,34,0.15);
  transform: translateY(-2px);
}

/* ==============================
   SITE GALLERY (Masonry)
   ============================== */
.masonry-gallery {
  column-count: 3;
  column-gap: 1.5rem;
  margin-top: 2rem;
}
.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: zoom-in;
  border: 1px solid var(--border-light);
}
.masonry-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.masonry-item img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .masonry-gallery { column-count: 2; }
}
@media (max-width: 600px) {
  .masonry-gallery { column-count: 1; }
}

/* ==============================
   CITIZEN ENGAGEMENT (section-gradient)
   ============================== */
.citizen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.citizen-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 3px solid rgba(248,183,57,0.3);
  border-radius: var(--radius); padding: 1.6rem; text-align: center;
  transition: var(--transition);
}
.citizen-card:hover {
  background: rgba(255,255,255,0.12);
  border-bottom-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.citizen-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.citizen-card p { font-size: 0.85rem; opacity: 0.82; }

/* ==============================
   THIRD PARTY (section-dark)
   ============================== */
.tpv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.tpv-block {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-top: 3px solid rgba(248,183,57,0.35);
  border-radius: var(--radius); padding: 1.85rem;
  transition: var(--transition);
}
.tpv-block:hover { border-top-color: var(--accent); background: rgba(255,255,255,0.08); }
.tpv-block h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--accent-hover); margin-bottom: 0.85rem;
}
.tpv-block p { font-size: 0.9rem; margin-bottom: 0.75rem; opacity: 0.84; }

/* Lifecycle integration chain */
.lifecycle-integration {
  margin-top: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg); padding: 2rem;
}
.lifecycle-integration h3 {
  font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--accent); margin-bottom: 1.75rem; text-align: center;
}
.lifecycle-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.lifecycle-step { text-align: center; max-width: 200px; }
.step-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: 1px solid rgba(248,183,57,0.4);
  color: var(--white); font-weight: 700; font-size: 0.9rem;
  padding: 0.35rem 1.1rem; border-radius: 50px; margin-bottom: 0.5rem;
  transition: var(--transition);
}
.lifecycle-step:hover .step-badge {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.lifecycle-step p { font-size: 0.81rem; opacity: 0.75; }
.step-arrow { font-size: 1.5rem; color: var(--accent); opacity: 0.7; }

/* ==============================
   TABLE — Firms
   ============================== */
.table-wrapper {
  overflow-x: auto; margin-top: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
}
.firms-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.firms-table thead {
  background: linear-gradient(135deg, rgba(248,183,57,0.2), rgba(248,183,57,0.08));
  position: sticky; top: 0;
}
.firms-table th {
  color: var(--accent); font-weight: 700;
  padding: 0.9rem 1.1rem; text-align: left;
  border-bottom: 2px solid rgba(248,183,57,0.3);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.firms-table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.8);
  vertical-align: top;
}
.firms-table tr:last-child td { border-bottom: none; }
.firms-table tr:hover td { background: rgba(248,183,57,0.04); }
.firms-table td:first-child {
  color: var(--accent); font-weight: 700; width: 40px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .firms-table thead { display: none; }
  .firms-table, .firms-table tbody, .firms-table tr, .firms-table td { display: block; width: 100%; }
  .firms-table tr {
    margin-bottom: 2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
  }
  .firms-table td {
    padding: 1.15rem 1.25rem;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left !important;
    font-size: 0.95rem;
  }
  .firms-table td:last-child { border-bottom: none; }
  .firms-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .firms-table td:first-child { 
    background: linear-gradient(90deg, rgba(248,183,57,0.2), transparent);
    font-weight: 800; color: var(--accent); font-size: 1rem;
    padding: 0.75rem 1.25rem;
  }
  .firms-table td:first-child::before { display: none; }
  .firms-table td[data-label="Firm Name"] { 
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem; font-weight: 700; color: var(--white);
    padding-bottom: 1.5rem;
  }
}

/* ==============================
   FOOTER (Redesigned)
   ============================== */
.footer {
  background: linear-gradient(180deg, #021a14 0%, #010806 100%);
  padding: 3.5rem 0 1.5rem; /* Reduced vertical padding */
  color: rgba(255,255,255,0.7);
  border-top: 2px solid var(--accent);
}
.footer-grid.simple {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}
.footer-col.branding { max-width: 450px; }
.footer-brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer-brand.vertical { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-logo { height: 50px; flex-shrink: 0; }
.footer-logo-img { height: 100%; width: auto; object-fit: contain; }
.footer-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--white); line-height: 1.2; }
.footer-subtitle { font-size: 0.75rem; color: var(--accent); opacity: 0.9; margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-brief { font-size: 0.88rem; line-height: 1.5; opacity: 0.75; }

.footer-heading {
  font-family: 'Outfit', sans-serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-link-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}
.footer-link-grid li { margin-bottom: 0; }
.footer-link-grid a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
}
.footer-link-grid a:hover { color: var(--accent); transform: translateX(5px); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .footer-grid.simple { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-col.branding { max-width: none; }
  .footer-link-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-link-grid { grid-template-columns: 1fr; }
}

/* ==============================
   REVEAL ANIMATION
   ============================== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .monitoring-grid, .eval-two-col, .tpv-grid, .impact-two-col { grid-template-columns: 1fr; }
  .lifecycle-cards { grid-template-columns: 1fr; }
  .two-col-list { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .org-level { gap: 0.75rem; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(2, 30, 24, 0.99);
    backdrop-filter: blur(16px);
    padding: 0.75rem; gap: 0.2rem;
    border-bottom: 2px solid rgba(248,183,57,0.15);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 105px 0 3.5rem; }
  .hero-title { font-size: 2.1rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .rbm-chain { flex-direction: column; }
  .rbm-arrow { transform: rotate(90deg); }
  .lifecycle-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .footer-content { flex-direction: column; }
  .eval-select-grid { 
    display: grid !important; 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem !important; 
  }
  .monitoring-grid { 
    grid-template-columns: 1fr !important; 
    gap: 1.5rem !important; 
  }
}
@media (max-width: 768px) {
  .app-nav-btn { display: none; } /* Hide buttons to save space on mobile */
  .app-screenshots { padding: 1rem 0.5rem; }
  .app-carousel-container { gap: 0; }
  .screenshot-item { flex: 0 0 220px; height: 440px; } /* Slightly smaller for mobile */
}

@media (max-width: 480px) {
  .section { padding: 3.75rem 0; }
  .hero-cards { grid-template-columns: 1fr; }
  .approaches-grid { grid-template-columns: 1fr; }
  .screenshot-item { flex: 0 0 82vw; max-width: 240px; } /* Dynamic width for very small screens */
}

/* ==============================
   ROADMAP IMAGE
   ============================== */
.roadmap-container {
  width: 100%;
  max-width: 1100px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.roadmap-image {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in; /* Indicate it's clickable */
  transition: transform 0.3s ease;
}
.roadmap-container:hover .roadmap-image {
  transform: scale(1.02); /* Slight zoom on container hover */
}

/* Vertical Film Strip Slider */
.site-images-slider {
  max-height: 550px; /* Slightly shorter */
  overflow: hidden;
  background: var(--dark); /* Base dark background */
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Gradient overlays for smooth fading edges */
.site-images-slider::before,
.site-images-slider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 10;
  pointer-events: none;
}
.site-images-slider::before {
  top: 0;
  background: linear-gradient(to bottom, var(--dark) 0%, transparent 100%);
}
.site-images-slider::after {
  bottom: 0;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
}

.slider-track {
  display: flex;
  flex-direction: column;
  background: url('images/image19.png') center top / 100% auto repeat-y;
  padding: 4rem 15% 4rem 15%; /* Generous top/bottom padding so images don't clip at edges, and lateral padding to fit inside film frame */
  gap: 0; /* Removing transparent gap, using solid black image borders to form the authentic film separating strip */
  align-items: center; /* Horizontally center the images inside the track */
  animation: scrollVertical 35s linear infinite;
}

/* Pause animation on hover for better UX */
.site-images-slider:hover .slider-track {
  animation-play-state: paused;
}

.site-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3; /* Enforce a consistent shape for the film strip holes */
  object-fit: cover; /* Reverted to cover for better aesthetic for site photos */
  border-radius: 4px; /* Slight rounding */
  transition: transform 0.3s ease;
  cursor: zoom-in; /* Indicate it's clickable */
}

.site-image:hover {
  transform: scale(1.05);
  z-index: 5;
  position: relative;
}

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  /* Translating exactly -50% because the track contains TWO perfectly identical sets of images with solid black borders acting as gap */
  100% { transform: translateY(-50%); } 
}

/* ==============================
   RBM TABLE
   ============================== */
.rbm-table-container {
  margin-top: 4rem;
  overflow-x: auto;
}

.rbm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
  font-family: var(--font-primary);
}

.rbm-table th, .rbm-table td {
  border: 1px solid #ffffff; /* White dividers as seen in the image */
  padding: 1rem 0.5rem;
  text-align: center;
}

.rbm-table thead tr:first-child th {
  background-color: #e8ebf3; /* Light lavender-slate */
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--dark);
}

.rbm-table thead .sub-header th {
  background-color: #f0f2fa;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
}

.rbm-table tbody td {
  background-color: #f0f2fa;
  height: 3.5rem; /* Tall empty rows matched to image */
}

/* Dark mode overrides for RBM Table */
.section-dark .rbm-table th, 
.section-dark .rbm-table td {
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.section-dark .rbm-table thead tr:first-child th {
  background-color: transparent;
  color: var(--accent);
}
.section-dark .rbm-table thead .sub-header th {
  background-color: rgba(255,255,255,0.05);
  color: var(--white);
}
.section-dark .rbm-table tbody td {
  background-color: transparent;
}

/* ==============================
   FULL-SCREEN IMAGE LIGHTBOX
   ==============================*/

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg);
  border-color: transparent;
}

/* ==============================
   FULL-SCREEN MODAL TRANSITION
   ============================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  z-index: 20000;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active {
  transform: translateY(0);
  visibility: visible;
}

.modal-close {
  position: fixed;
  top: 1.5rem;
  right: 4.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  line-height: 1;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg) scale(1.1);
}

.modal-close.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--primary);
}

#modalContent {
  height: 100%;
}

.modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.modal-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 2050;
}

.spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(2, 40, 34, 0.1);
  border-left-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


@media (max-width: 768px) {
  .modal-close {
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

/* ==============================
   IMAGE LIGHTBOX (Inner Pages)
   ============================== */
.image-lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  border: 4px solid rgba(255,255,255,0.1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3101;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg) scale(1.1);
}

/* ==============================
   IMAGE LIGHTBOX (Inner Pages)
   ============================== */
.image-lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,0,0,0.6);
  border: 4px solid rgba(255,255,255,0.1);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 3101;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.lightbox-close:hover {
  background: var(--accent);
  color: var(--primary);
  transform: rotate(90deg) scale(1.1);
}

/* ==============================
   MOBILE RESPONSIVE ORG CHART
   ============================== */
@media (max-width: 768px) {
  .org-chart { padding: 0; width: 100%; }
  
  /* Stack levels and reset gaps */
  .org-level { flex-direction: column; align-items: center; gap: 2.5rem; }
  
  /* Hide complex desktop lines */
  .horizontal-line, .vertical-main-line { display: none; }
  
  /* Stack the staggered section (Support & PD) */
  .org-staggered-level { width: 100%; }
  
  .support-row {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 0;
    width: 100%;
  }
  
  /* Create connector from Level 2 (Member) to first Support Node */
  .org-staggered-level::before {
    content: ''; display: block; margin: 0 auto;
    width: 2px; height: 2rem;
    background: linear-gradient(to bottom, rgba(248,183,57,0.5), rgba(248,183,57,0.15));
  }

  /* Connectors between stacked Support Nodes */
  .support-row .org-node::after {
    content: ''; position: absolute;
    bottom: -2.5rem; left: 50%; transform: translateX(-50%);
    width: 2px; height: 2.5rem;
    background: linear-gradient(to bottom, rgba(248,183,57,0.5), rgba(248,183,57,0.15));
  }

  /* Adjust PD Row margin since visual line comes from support node above */
  .pd-row { margin-top: 0; }
  
  /* Stack Level 4 (Director Generals) */
  .org-level-4 {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }
  
  .org-branch { width: 100%; max-width: 280px; position: relative; }
  
  /* Connectors between stacked branches */
  .org-branch:not(:last-child)::after {
    content: ''; position: absolute;
    bottom: -2.5rem; left: 50%; transform: translateX(-50%);
    width: 2px; height: 2.5rem;
    background: linear-gradient(to bottom, rgba(248,183,57,0.5), rgba(248,183,57,0.15));
  }
  
  .org-node { max-width: 100%; width: 260px; }
}

/* ==============================
   MOBILE RESPONSIVE FILM STRIP
   ============================== */
@media (max-width: 900px) {
  /* Stack content and film strip vertically */
  .roadmap-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .app-screenshots {
    width: 100%;
    max-width: 100%;
  }

  .app-features-grid {
    grid-template-columns: 1fr;
  }
  
  .site-images-slider {
    max-height: 350px; /* Reduce height to avoid excessive scrolling */
    max-width: 450px;  /* Prevent it from becoming too wide in single column */
    margin: 0 auto;    /* Center the film strip horizontally */
  }

  /* Evidence Page Specific Mobile Adjustments */
  .detail-hero { padding: 4rem 1.5rem 3rem !important; }
  .detail-hero h1 { font-size: 2rem !important; }
  
  #mobile-app { 
    padding: 2rem 1.5rem !important; 
    border-radius: 16px !important;
  }
  #mobile-app > div { 
    grid-template-columns: 1fr !important; 
    gap: 2.5rem !important; 
  }
  #mobile-app h3 { font-size: 1.8rem !important; }
  #mobile-app .feature-list { grid-template-columns: 1fr !important; }
  #mobile-app div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  #mobile-app div[style*="position: sticky"] {
    position: relative !important;
    top: 0 !important;
  }
}
