@charset "UTF-8";

/* ==========================================================================
   IBM Plex Sans Arabic - High Performance Local WOFF2 Web Fonts
   ========================================================================== */

/* Regular 400 (Arabic) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF;
}
/* Regular 400 (Latin) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Medium 500 (Arabic) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-arabic-500.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF;
}
/* Medium 500 (Latin) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SemiBold 600 (Arabic) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF;
}
/* SemiBold 600 (Latin) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bold 700 (Arabic) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF;
}
/* Bold 700 (Latin) */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   مركز أم القيوين لريادة الأعمال - Um Al Quwain Entrepreneurship Center
   Unified Institutional UI/UX System (IBM Plex Sans Arabic Typography)
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* 1. Typography - Strictly Unified IBM Plex Sans Arabic System */
  --font-arabic: 'IBM Plex Sans Arabic', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-system: var(--font-arabic);
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Font Weights Hierarchy strictly per specification */
  --weight-regular: 400;   /* Normal Body Text (النصوص العادية) */
  --weight-medium:  500;   /* Buttons & Menus (الأزرار والقوائم) */
  --weight-semibold: 600;  /* Subheadings (العناوين الفرعية) */
  --weight-bold:    700;   /* Main Headings (العناوين الرئيسية) */

  /* Standardized Fluid Typography Scale */
  --font-size-hero:    clamp(2rem, 4.5vw, 2.75rem);     /* 32px - 44px */
  --font-size-h1:      clamp(1.6rem, 3.2vw, 2.2rem);    /* 26px - 35px */
  --font-size-h2:      clamp(1.3rem, 2.4vw, 1.65rem);   /* 21px - 26px */
  --font-size-h3:      clamp(1.1rem, 1.8vw, 1.3rem);    /* 18px - 21px */
  --font-size-h4:      1.1rem;                          /* 17.5px */
  --font-size-body:    0.975rem;                        /* 15.6px */
  --font-size-sub:     0.9125rem;                       /* 14.6px */
  --font-size-small:   0.84375rem;                      /* 13.5px */
  --font-size-caption: 0.75rem;                         /* 12px */

  /* Line Heights for Arabic Typographic Balance */
  --line-height-heading: 1.35;
  --line-height-subheading: 1.45;
  --line-height-normal: 1.7;
  --line-height-button: 1.5;
  --line-height-tight:  1.3;
  --line-height-loose:  1.8;

  /* Standardized Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-section: clamp(48px, 6vw, 76px);

  /* Touch / Tap Target (Apple HIG: 44x44pt minimum) */
  --tap-target-min: 44px;

  /* Unified Continuous Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 9999px;

  /* Adaptive Semantic Colors - Light Mode (Default) */
  --system-bg: #F4F6F9;
  --secondary-system-bg: #FFFFFF;
  --tertiary-system-bg: #F8FAFC;
  --label: #0F172A;
  --secondary-label: #475569;
  --tertiary-label: #94A3B8;
  --separator: #E2E8F0;
  --separator-subtle: #F1F5F9;
  --system-fill: rgba(15, 23, 42, 0.04);
  --secondary-system-fill: rgba(15, 23, 42, 0.07);

  /* Institutional UAE Brand Accents - Extracted Directly from Official Logo (#24416B & #F56729) */
  --brand-navy: #24416B;
  --brand-navy-dark: #162842;
  --brand-navy-light: #32598F;
  --brand-navy-rgb: 36, 65, 107;

  --brand-orange: #F56729;
  --brand-orange-light: #FB824D;
  --brand-orange-dark: #D9531E;
  --brand-orange-rgb: 245, 103, 41;

  --brand-teal: #24416B;
  --brand-teal-light: #32598F;
  --brand-gold: #F56729;
  --brand-gold-light: #FB824D;

  /* Semantic System Tints */
  --system-blue: #0071E3;
  --system-blue-rgb: 0, 113, 227;
  --system-green: #34C759;
  --system-green-rgb: 52, 199, 89;
  --system-orange: #FF9500;
  --system-red: #FF3B30;

  /* Liquid Glass Translucency */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(20px) saturate(180%);

  /* Elevation Shadows */
  --shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 16px -2px rgba(15, 44, 89, 0.06), 0 1px 3px rgba(15, 44, 89, 0.03);
  --shadow-floating: 0 12px 30px -4px rgba(15, 44, 89, 0.1), 0 4px 8px -2px rgba(15, 44, 89, 0.04);
  --shadow-popover: 0 20px 40px -6px rgba(15, 44, 89, 0.16);

  /* Spring Physics Timings */
  --spring-default: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
  --duration-quick: 0.18s;
  --duration-normal: 0.28s;
}

/* ==========================================================================
   Dark Mode Adaptive Semantic Colors
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --system-bg: #090D14;
    --secondary-system-bg: #121824;
    --tertiary-system-bg: #1B2433;
    --label: #F8FAFC;
    --secondary-label: #94A3B8;
    --tertiary-label: #64748B;
    --separator: #1E293B;
    --separator-subtle: #141C2B;
    --system-fill: rgba(255, 255, 255, 0.06);
    --secondary-system-fill: rgba(255, 255, 255, 0.1);

    --brand-navy: #60A5FA;
    --brand-navy-dark: #1E3A8A;
    --brand-orange: #FF7A3D;
    --brand-orange-light: #FFA070;
    --brand-teal: #2DD4BF;
    --brand-teal-light: #5EEAD4;
    --brand-gold: #FBBF24;
    --system-blue: #38BDF8;
    --system-blue-rgb: 56, 189, 248;

    --glass-bg: rgba(18, 24, 36, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);

    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
    --shadow-floating: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
  }
}

[data-theme="dark"] {
  --system-bg: #090D14;
  --secondary-system-bg: #121824;
  --tertiary-system-bg: #1B2433;
  --label: #F8FAFC;
  --secondary-label: #94A3B8;
  --tertiary-label: #64748B;
  --separator: #1E293B;
  --separator-subtle: #141C2B;
  --system-fill: rgba(255, 255, 255, 0.06);
  --secondary-system-fill: rgba(255, 255, 255, 0.1);

  --brand-navy: #60A5FA;
  --brand-navy-dark: #1E3A8A;
  --brand-orange: #FF7A3D;
  --brand-orange-light: #FFA070;
  --brand-teal: #2DD4BF;
  --brand-teal-light: #5EEAD4;
  --brand-gold: #FBBF24;
  --system-blue: #38BDF8;
  --system-blue-rgb: 56, 189, 248;

  --glass-bg: rgba(18, 24, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
  --shadow-floating: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Global Reset & Layout Guard
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Universal Bootstrap & Framework Font Override */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-font-sans-serif: var(--font-arabic) !important;
  --bs-body-font-family: var(--font-arabic) !important;
  --bs-body-font-weight: 400 !important;
  --bs-body-line-height: 1.7 !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-arabic) !important;
  font-size: var(--font-size-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-height-normal);
  letter-spacing: normal;
  color: var(--label);
  background-color: var(--system-bg);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: clip;
  transition: background-color var(--duration-normal) var(--spring-default), 
              color var(--duration-normal) var(--spring-default);
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1220px;
  padding-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Standardized Typography Hierarchy (IBM Plex Sans Arabic)
   1. Main Headings: Weight 700 (العناوين الرئيسية)
   2. Subheadings:   Weight 600 (العناوين الفرعية)
   3. Body Text:     Weight 400 (النصوص العادية)
   4. Buttons/Menus: Weight 500 (الأزرار والقوائم)
   ========================================================================== */

/* 1. Main Headings (700) */
h1, .h1, .hero-title, .main-title, .page-header-banner h1,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--font-arabic) !important;
  font-weight: 700 !important;
  line-height: var(--line-height-heading);
  letter-spacing: normal;
  color: var(--label);
  margin-top: 0;
}
h1 { font-size: var(--font-size-h1); }

/* 2. Subheadings (600) */
h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, 
.section-title h2, .card-title, .step-title, .program-card h3,
.modal-title, .accordion-button, .feature-title, .footer-title,
.timeline-title, .stat-card-header, .section-subtitle {
  font-family: var(--font-arabic) !important;
  font-weight: 600 !important;
  line-height: var(--line-height-subheading);
  letter-spacing: normal;
  color: var(--label);
  margin-top: 0;
}
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-body); }
h6 { font-size: var(--font-size-sub); }

/* 3. Normal Body Text (400) */
p, .lead, span, label, input, textarea, select, 
.form-control, .form-select, .form-text, table td, 
.card-text, .text-muted, .accordion-body, .list-group-item, 
.meta-label, .float-badge-title, .stat-card-label {
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: var(--line-height-normal);
  letter-spacing: normal;
}

p {
  color: var(--secondary-label);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* 4. Buttons and Navigation Menus (500) */
.btn, button, input[type="submit"], input[type="button"], input[type="reset"],
.header-action-btn, .navbar-nav .nav-link, .nav-link, .dropdown-item, 
.nav-tabs .nav-link, .nav-pills .nav-link, .badge, .badge-sub, .badge-uaq, 
.breadcrumb-item, .apple-segment-btn, .wizard-step-label, .page-link, 
.table th, .admin-nav-link, .status-badge {
  font-family: var(--font-arabic) !important;
  font-weight: 500 !important;
  line-height: var(--line-height-button);
  letter-spacing: normal;
}

a {
  color: var(--brand-teal);
  text-decoration: none;
  transition: all var(--duration-quick) ease;
}

a:hover {
  color: var(--system-blue);
}

/* ==========================================================================
   Section Headers & Rhythm
   ========================================================================== */
.section-wrapper {
  padding: var(--space-section) 0;
}

.section-title {
  margin-bottom: clamp(32px, 4vw, 48px);
  position: relative;
}

.section-title .badge-sub {
  color: var(--brand-teal);
  font-size: var(--font-size-caption);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  font-size: var(--font-size-sub);
  max-width: 640px;
  margin-bottom: 0;
}

.section-title .title-bar {
  display: none; /* Replaced with clean whitespace rhythm */
}

/* Page Banner Header (Inner Pages) */
.page-header-banner {
  background: var(--secondary-system-bg);
  border-bottom: 1px solid var(--separator);
  padding: 24px 0;
  margin-bottom: 0;
}

.page-header-banner h1 {
  font-size: var(--font-size-h2);
  margin-bottom: 4px;
}

.page-header-banner p {
  font-size: var(--font-size-small);
  color: var(--secondary-label);
  margin-bottom: 0;
}

.breadcrumb {
  font-size: var(--font-size-small);
  margin-bottom: 0;
  padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--tertiary-label);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ==========================================================================
   Header & Navigation (Polished & Reorganized)
   ========================================================================== */

/* 1. Government Top Ribbon */
.gov-topbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--separator);
  font-size: var(--font-size-caption);
  color: var(--secondary-label);
  padding: 8px 0;
  z-index: 1030;
  position: relative;
}

.gov-topbar a {
  color: var(--secondary-label);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gov-topbar a:hover {
  color: var(--label);
}

/* 2. Main Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--separator);
  transition: all var(--duration-normal) var(--spring-default);
}

.navbar {
  padding: 8px 0;
  min-height: 88px;
}

.navbar-brand {
  padding: 0;
  margin-left: 24px;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 76px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--duration-normal) var(--spring-bounce);
}

.navbar-brand .logo-dark {
  display: none !important;
}

.navbar-brand .logo-light {
  display: inline-block !important;
}

[data-theme="dark"] .navbar-brand .logo-light {
  display: none !important;
}

[data-theme="dark"] .navbar-brand .logo-dark {
  display: inline-block !important;
  height: 76px;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .navbar-brand .logo-light {
    display: none !important;
  }
  :root:not([data-theme="light"]) .navbar-brand .logo-dark {
    display: inline-block !important;
    height: 76px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

.navbar-brand:active img {
  transform: scale(0.96);
}

/* Nav Menu Items - Bulletproof Reset & Layout */
.navbar-nav {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.header-balance-spacer {
  width: 105px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-grow: 1;
  }
}

.navbar-nav .nav-item {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.navbar-nav .nav-item::before,
.navbar-nav .nav-item::after {
  display: none !important;
  content: none !important;
}

.navbar-nav .nav-link {
  font-size: var(--font-size-sub);
  font-weight: 500;
  color: var(--secondary-label);
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  min-height: var(--tap-target-min);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: all var(--duration-quick) ease;
}

.navbar-nav .nav-link:hover {
  color: var(--label);
  background: var(--system-fill);
}

.navbar-nav .nav-link.active {
  color: var(--brand-navy);
  background: rgba(36, 65, 107, 0.08);
  font-weight: 600;
}

/* Header Action CTA Button */
.header-action-btn {
  min-height: 44px;
  padding: 8px 20px;
  font-size: var(--font-size-sub);
  font-weight: 500;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  white-space: nowrap;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .navbar-expand-lg .navbar-nav {
    flex-direction: row !important;
    align-items: center !important;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none !important;
  }
}

/* Mobile Hamburger Toggler */
.navbar-toggler {
  border: 1px solid var(--separator) !important;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--secondary-system-bg);
  color: var(--label);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2) !important;
}

/* ==========================================================================
   Apple Style Theme Switcher Segmented Control
   ========================================================================== */
.apple-segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--system-fill);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--separator);
  gap: 2px;
  min-height: 34px;
}

.apple-segment-btn {
  border: none;
  background: transparent;
  color: var(--secondary-label);
  font-size: var(--font-size-caption);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-quick) ease;
  min-height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apple-segment-btn.active {
  background: var(--secondary-system-bg);
  color: var(--label);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Hero Section - Clean & Balanced
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--system-bg);
  padding: clamp(48px, 6vw, 84px) 0;
  overflow: hidden;
}

.hero-ghost-fibers,
.hero-ghost-fibers.ghost-fibers-container {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

[data-theme="dark"] .hero-ghost-fibers {
  opacity: 0.9;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator);
  color: var(--secondary-label);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-small);
  font-weight: 500;
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: 18px;
  color: var(--label);
}

.hero-title span {
  color: var(--brand-orange);
  background: linear-gradient(135deg, var(--brand-orange) 0%, #D9531E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--secondary-label);
  max-width: 620px;
  margin-bottom: 32px;
  line-height: var(--line-height-loose);
}

.hero-logo-card {
  max-height: 240px;
  background: var(--secondary-system-bg);
  padding: 24px 32px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--spring-default);
}

.hero-logo-card:hover {
  transform: translateY(-4px);
}

/* Hero Visual Media & Floating Badges */
.hero-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 520px;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 45px -10px rgba(15, 44, 89, 0.22);
  border: 4px solid var(--secondary-system-bg);
  transition: transform var(--duration-normal) var(--spring-default);
}

.hero-image-wrapper:hover .hero-visual-img {
  transform: translateY(-4px);
}

.hero-float-badge {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-floating);
  z-index: 10;
  text-align: right;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.float-badge-top {
  top: -16px;
  left: -15px;
}

.float-badge-bottom {
  bottom: -18px;
  right: -15px;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.float-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.float-badge-title {
  font-size: var(--font-size-caption);
  color: var(--secondary-label);
  font-weight: 400;
  line-height: 1.3;
}

.float-badge-val {
  font-size: var(--font-size-sub);
  font-weight: 600;
  color: var(--label);
  line-height: 1.3;
}

/* Program Card Visual Media */
.program-card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: var(--tertiary-system-bg);
}

.program-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .program-card-img {
  transform: scale(1.06);
}

.program-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(13, 148, 136, 0.9);
  color: #FFFFFF;
  font-size: var(--font-size-caption);
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

/* Image Utilities & Visual Transitions */
.hover-scale {
  transition: transform 0.4s ease;
}

.card:hover .hover-scale {
  transform: scale(1.05);
}

.object-fit-cover {
  object-fit: cover;
}

.bg-gradient-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
}

/* Feature Cards Image Overlay Badges */
.feature-image-badge,
.bg-gradient-dark .badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 16px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  letter-spacing: normal !important;
  transition: all var(--duration-quick) ease !important;
}

.feature-image-badge .badge-icon,
.bg-gradient-dark .badge i,
.bg-gradient-dark .badge svg {
  color: #2DD4BF !important;
  display: inline-flex !important;
  align-items: center !important;
}

.feature-image-badge:hover,
.bg-gradient-dark .badge:hover {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

[data-theme="dark"] .feature-image-badge,
[data-theme="dark"] .bg-gradient-dark .badge,
:root:not([data-theme="light"]) .feature-image-badge,
:root:not([data-theme="light"]) .bg-gradient-dark .badge {
  background: rgba(10, 15, 26, 0.88) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] .feature-image-badge .badge-icon,
[data-theme="dark"] .bg-gradient-dark .badge i,
[data-theme="dark"] .bg-gradient-dark .badge svg,
:root:not([data-theme="light"]) .feature-image-badge .badge-icon,
:root:not([data-theme="light"]) .bg-gradient-dark .badge i,
:root:not([data-theme="light"]) .bg-gradient-dark .badge svg {
  color: #38BDF8 !important;
}

/* ==========================================================================
   Standardized Cards System
   ========================================================================== */
.card {
  background-color: var(--secondary-system-bg) !important;
  color: var(--label) !important;
  border: 1px solid var(--separator) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--spring-default), 
              box-shadow var(--duration-normal) var(--spring-default);
}

/* Hero Bottom Wave Shape Divider */
.hero-shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.hero-shape-divider svg path {
  fill: var(--system-bg) !important;
  color: var(--system-bg) !important;
  transition: fill var(--duration-normal) var(--spring-default);
}

/* Feature Step Card */
.feature-step-card {
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--spring-default), 
              box-shadow var(--duration-normal) var(--spring-default);
}

.feature-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
}

.step-number-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(36, 65, 107, 0.08);
  color: var(--brand-navy);
  border: 1px solid rgba(36, 65, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 18px;
  transition: all var(--duration-quick) ease;
}

[data-theme="dark"] .step-number-badge,
:root:not([data-theme="light"]) .step-number-badge {
  background: rgba(45, 212, 191, 0.16) !important;
  color: #2DD4BF !important;
  border: 1.5px solid rgba(45, 212, 191, 0.45) !important;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.22);
}

/* Program Card */
.program-card {
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--spring-default), 
              box-shadow var(--duration-normal) var(--spring-default);
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-floating);
}

.program-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(13, 148, 136, 0.1);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.amount-tag {
  background: rgba(36, 65, 107, 0.08);
  color: var(--brand-navy);
  border: 1px solid rgba(36, 65, 107, 0.15);
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  font-size: var(--font-size-small);
  margin-bottom: 16px;
  width: fit-content;
}

/* Sector / Priority Fields Grid Cards */
.sector-card {
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-normal) var(--spring-default), 
              box-shadow var(--duration-normal) var(--spring-default);
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.sector-icon {
  font-size: 1.85rem;
  color: var(--brand-teal);
  margin-bottom: 12px;
}

/* ==========================================================================
   Buttons & Interactive Elements (Standardized & 44pt Minimum)
   ========================================================================== */
.btn {
  min-height: var(--tap-target-min);
  padding: 10px 20px;
  font-size: var(--font-size-sub);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform var(--duration-quick) var(--spring-default), 
              background-color var(--duration-quick) ease, 
              box-shadow var(--duration-quick) ease;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: var(--font-size-small);
  border-radius: var(--radius-sm);
}

.btn-uaq-primary, .btn-primary {
  background: var(--brand-navy) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(36, 65, 107, 0.28);
}

.btn-uaq-primary:hover, .btn-primary:hover {
  background: var(--brand-navy-dark) !important;
  box-shadow: 0 6px 18px rgba(36, 65, 107, 0.38);
}

.btn-uaq-gold {
  background: linear-gradient(135deg, #D48B38 0%, #C27835 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 14px rgba(194, 120, 53, 0.28);
}

.btn-uaq-gold:hover {
  background: linear-gradient(135deg, #DE9544 0%, #B86F28 100%) !important;
  box-shadow: 0 6px 20px rgba(194, 120, 53, 0.38);
}

.btn-outline-navy {
  background: transparent !important;
  color: var(--brand-navy) !important;
  border: 1.5px solid var(--brand-navy) !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--duration-quick) ease;
}

.btn-outline-navy:hover {
  background: var(--brand-navy) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(36, 65, 107, 0.25);
}

.btn-secondary, .btn-outline-secondary {
  background-color: var(--secondary-system-bg) !important;
  color: var(--label) !important;
  border: 1px solid var(--separator) !important;
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover, .btn-outline-secondary:hover {
  background-color: var(--system-fill) !important;
  border-color: var(--tertiary-label) !important;
}

.btn-outline-primary {
  background: transparent !important;
  color: var(--brand-navy) !important;
  border: 1.5px solid var(--brand-navy) !important;
}

.btn-outline-primary:hover {
  background: rgba(36, 65, 107, 0.08) !important;
  color: var(--brand-navy) !important;
}

/* ==========================================================================
   Forms & Inputs System
   ========================================================================== */
.form-label {
  font-size: var(--font-size-sub);
  font-weight: 500;
  color: var(--label);
  margin-bottom: 6px;
}

.form-control, .form-select {
  background-color: var(--secondary-system-bg);
  color: var(--label);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: var(--font-size-body);
  min-height: 46px;
  transition: all var(--duration-quick) ease;
}

.form-control:focus, .form-select:focus {
  background-color: var(--secondary-system-bg);
  color: var(--label);
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(36, 65, 107, 0.15);
  outline: none;
}

.input-group-text {
  background-color: var(--system-fill);
  border: 1.5px solid var(--separator);
  color: var(--secondary-label);
  border-radius: var(--radius-sm);
}

.field-hint {
  font-size: var(--font-size-caption);
  color: var(--tertiary-label);
  margin-top: 6px;
}

/* Multi-Step Wizard */
.form-wizard-card {
  background: var(--secondary-system-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 40px;
}

.wizard-steps-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 38px;
}

.wizard-progress-track {
  position: absolute;
  top: 22px;
  right: calc(100% / 6);
  left: calc(100% / 6);
  height: 4px;
  background: var(--separator);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  direction: rtl;
}

.wizard-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to left, var(--brand-navy), var(--brand-orange));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-indicator {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--secondary-system-bg);
  border: 2px solid var(--separator);
  color: var(--secondary-label);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 auto 8px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 0 0 5px rgba(245, 103, 41, 0.22);
  transform: scale(1.08);
}

.step-indicator.completed .step-circle {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(36, 65, 107, 0.15);
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary-label);
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.step-indicator.active .step-label {
  color: var(--label);
  font-weight: 700;
}

.step-indicator.completed .step-label {
  color: var(--brand-navy);
  font-weight: 600;
}

[data-theme="dark"] .step-indicator.completed .step-label {
  color: #93c5fd;
}

/* Step Content Transitions */
.form-step-content {
  display: none;
}

.form-step-content.active {
  display: block;
  animation: wizardStepFadeIn 0.35s ease-out;
}

@keyframes wizardStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Review Step Cards */
.review-summary-card {
  background: var(--tertiary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  transition: background-color var(--duration-fast);
}

.review-summary-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--separator);
  display: flex;
  align-items: center;
}

[data-theme="dark"] .review-summary-card h5 {
  color: #FFFFFF;
}

.review-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.review-item .label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--secondary-label);
  margin-bottom: 4px;
}

.review-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--label);
  word-break: break-word;
}

.review-project-summary {
  background: var(--secondary-system-bg);
  color: var(--label);
  border-color: var(--separator) !important;
}

/* Legal Declaration Box */
.declaration-box {
  background: rgba(245, 103, 41, 0.05);
  border: 1px solid rgba(245, 103, 41, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  margin-bottom: 24px;
}

[data-theme="dark"] .declaration-box {
  background: rgba(245, 103, 41, 0.1);
  border-color: rgba(245, 103, 41, 0.35);
}

.declaration-box .form-check-label {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--label);
}

.declaration-box .form-check-label strong {
  display: block;
  color: var(--brand-orange);
  margin-bottom: 4px;
  font-size: 0.95rem;
}

/* File Upload Dropzone in Step 2 */
.file-upload-dropzone {
  position: relative;
  background: var(--tertiary-system-bg);
  border: 2px dashed var(--separator);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.file-upload-dropzone:hover,
.file-upload-dropzone.dragover {
  border-color: var(--brand-orange);
  background: rgba(245, 103, 41, 0.04);
}

[data-theme="dark"] .file-upload-dropzone:hover,
[data-theme="dark"] .file-upload-dropzone.dragover {
  background: rgba(245, 103, 41, 0.08);
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-pill);
  background: rgba(36, 65, 107, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform var(--duration-fast), background-color var(--duration-fast);
}

.file-upload-dropzone:hover .dropzone-icon {
  transform: translateY(-2px);
  background: rgba(245, 103, 41, 0.12);
}

.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.file-item-pill {
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--duration-fast);
}

.file-item-pill .file-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.file-item-pill .file-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.file-item-pill .file-size {
  font-size: 0.725rem;
  color: var(--secondary-label);
}

.file-item-pill .file-remove-btn {
  background: none;
  border: none;
  color: var(--system-red, #dc3545);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast);
}

.file-item-pill .file-remove-btn:hover {
  background: rgba(220, 53, 69, 0.1);
}

/* ==========================================================================
   Status Badges (Pills)
   ========================================================================== */
.status-badge {
  font-size: var(--font-size-caption) !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none !important;
}

.bg-primary {
  background-color: rgba(36, 65, 107, 0.12) !important;
  color: var(--brand-navy) !important;
}

.text-navy { color: var(--brand-navy) !important; }
.bg-navy { background-color: var(--brand-navy) !important; color: #FFFFFF !important; }
.bg-navy-subtle { background-color: rgba(36, 65, 107, 0.1) !important; color: var(--brand-navy) !important; }

.text-orange { color: var(--brand-orange) !important; }
.bg-orange { background-color: var(--brand-orange) !important; color: #FFFFFF !important; }
.bg-orange-subtle { background-color: rgba(245, 103, 41, 0.12) !important; color: var(--brand-orange) !important; }

.text-teal { color: var(--brand-navy) !important; }
.bg-teal { background-color: rgba(36, 65, 107, 0.1) !important; color: var(--brand-navy) !important; }

.bg-info {
  background-color: rgba(0, 113, 227, 0.12) !important;
  color: var(--system-blue) !important;
}

.bg-warning {
  background-color: rgba(217, 119, 6, 0.12) !important;
  color: var(--brand-gold) !important;
}

.bg-success {
  background-color: rgba(52, 199, 89, 0.12) !important;
  color: #15803d !important;
}

.bg-danger {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
}

.bg-secondary {
  background-color: var(--system-fill) !important;
  color: var(--secondary-label) !important;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background: var(--secondary-system-bg);
  border-top: 1px solid var(--separator);
  color: var(--secondary-label);
  padding: 56px 0 0;
  margin-top: 64px;
}

.site-footer h4 {
  font-size: var(--font-size-h4);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--label);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--secondary-label);
  font-size: var(--font-size-sub);
  display: inline-block;
  padding: 3px 0;
}

.footer-links a:hover {
  color: var(--brand-navy);
  transform: translateX(-3px);
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--system-fill);
  color: var(--secondary-label);
  border: 1px solid var(--separator);
  transition: all var(--duration-quick) ease;
}

.footer-social-btn:hover {
  background: var(--brand-navy);
  color: #FFFFFF;
  border-color: var(--brand-navy);
  transform: translateY(-2px);
}

.footer-bottom {
  background: var(--system-bg);
  border-top: 1px solid var(--separator);
  padding: 20px 0;
  margin-top: 48px;
  font-size: var(--font-size-small);
  color: var(--tertiary-label);
}

/* ==========================================================================
   Contact Page Components
   ========================================================================== */
.contact-pill-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(36, 65, 107, 0.07);
  color: var(--brand-navy);
  border: 1px solid rgba(36, 65, 107, 0.12);
  transition: all var(--duration-quick) ease;
}

.transition-card:hover .contact-pill-icon {
  background: var(--brand-navy);
  color: #FFFFFF;
}

.transition-card {
  transition: transform var(--duration-normal) var(--spring-default), 
              box-shadow var(--duration-normal) var(--spring-default),
              border-color var(--duration-quick) ease;
}

.transition-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--brand-navy) !important;
}

.border-teal-subtle {
  border-color: rgba(36, 65, 107, 0.2) !important;
}

/* ==========================================================================
   Premium AI SaaS Icon System (Lucide Geometric Line Icons)
   ========================================================================== */
.lucide, svg.lucide {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 1.85px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  display: inline-block;
  flex-shrink: 0;
  transition: transform var(--duration-quick) var(--spring-default), 
              stroke var(--duration-quick) ease,
              filter var(--duration-quick) ease;
}

/* Sizing Tokens */
.icon-xs, svg.lucide.icon-xs { width: 0.875rem !important; height: 0.875rem !important; stroke-width: 1.75px; }
.icon-sm, svg.lucide.icon-sm { width: 1.05rem !important; height: 1.05rem !important; stroke-width: 1.8px; }
.icon-md, svg.lucide.icon-md { width: 1.25rem !important; height: 1.25rem !important; stroke-width: 1.85px; }
.icon-lg, svg.lucide.icon-lg { width: 1.75rem !important; height: 1.75rem !important; stroke-width: 1.85px; }
.icon-xl, svg.lucide.icon-xl { width: 2.25rem !important; height: 2.25rem !important; stroke-width: 1.75px; }

/* Micro-Interactions on Interactive Elements */
a:hover .lucide, 
button:hover .lucide, 
.btn:hover .lucide {
  transform: translateY(-1px);
}

.btn:active .lucide {
  transform: scale(0.94);
}

/* Institutional Badges & Indicators */
.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-small);
  font-weight: 500;
  background: rgba(36, 65, 107, 0.08);
  color: var(--brand-navy);
  border: 1px solid rgba(36, 65, 107, 0.16);
}

.gov-badge.badge-gold {
  background: rgba(194, 120, 53, 0.1);
  color: #9c5c1d;
  border-color: rgba(194, 120, 53, 0.25);
}

/* ==========================================================================
   Universal Responsive Breakpoints
   ========================================================================== */

/* Mobile & Tablet adjustments (under 992px) */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--secondary-system-bg);
    border: 1px solid var(--separator);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-top: 12px;
    box-shadow: var(--shadow-popover);
  }

  .navbar-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 4px !important;
  }

  .navbar-nav .nav-item {
    display: block !important;
    width: 100% !important;
  }

  .navbar-nav .nav-link {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-sm);
  }

  .header-action-btn {
    width: 100% !important;
    margin-top: 10px;
  }

  .hero-section {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .d-flex.flex-wrap {
    justify-content: center;
  }

  .wizard-progress-track {
    left: calc(100% / 6);
    right: calc(100% / 6);
  }
}

/* Small mobile screens (under 576px) */
@media (max-width: 575.98px) {
  .navbar-brand img,
  .navbar-brand .logo-light,
  .navbar-brand .logo-dark {
    height: 62px !important;
  }

  .gov-topbar .container {
    gap: 8px;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-section .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    width: 100%;
  }

  .hero-section .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Bootstrap Component Overrides for Consistency
   ========================================================================== */
.bg-light {
  background-color: var(--system-bg) !important;
}

.bg-white {
  background-color: var(--secondary-system-bg) !important;
}

.border, .border-top, .border-bottom, .border-start, .border-end {
  border-color: var(--separator) !important;
}

.text-dark, .text-navy {
  color: var(--label) !important;
}

.text-muted, .text-slate-300 {
  color: var(--secondary-label) !important;
}

.accordion-item {
  background-color: var(--secondary-system-bg) !important;
  border-color: var(--separator) !important;
}

.accordion-button {
  background-color: var(--secondary-system-bg) !important;
  color: var(--label) !important;
  font-size: var(--font-size-sub);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--secondary-system-bg) !important;
  color: var(--brand-teal) !important;
  box-shadow: none !important;
}

.modal-content {
  background-color: var(--secondary-system-bg);
  color: var(--label);
  border: 1px solid var(--separator);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-popover);
}

.modal-header, .modal-footer {
  border-color: var(--separator);
}

/* ==========================================================================
   Comprehensive Dark Mode Precision Overrides Across All Pages
   ========================================================================== */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  /* Subtitle Badges */
  .badge-sub,
  .section-title .badge-sub {
    color: #2DD4BF !important;
  }

  /* Outline Navy Buttons */
  .btn-outline-navy {
    color: #60A5FA !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
    background: rgba(96, 165, 250, 0.05) !important;
  }
  .btn-outline-navy:hover {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
  }

  /* Outline Primary Buttons */
  .btn-outline-primary {
    color: #60A5FA !important;
    border-color: rgba(96, 165, 250, 0.45) !important;
  }
  .btn-outline-primary:hover {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
  }

  /* Amount Tags (Programs & Cards) */
  .amount-tag {
    background: rgba(45, 212, 191, 0.12) !important;
    color: #2DD4BF !important;
    border-color: rgba(45, 212, 191, 0.3) !important;
  }

  /* Program Card Icons */
  .program-icon-box {
    background: rgba(96, 165, 250, 0.12) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(96, 165, 250, 0.25) !important;
  }

  /* Sector Icons */
  .sector-icon {
    color: #38BDF8 !important;
  }

  /* Contact Page Pill Icons */
  .contact-pill-icon {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38BDF8 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
  }
  .transition-card:hover .contact-pill-icon {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #FFFFFF !important;
  }

  /* Form Controls, Inputs & Addons */
  .input-group-text {
    background-color: var(--tertiary-system-bg) !important;
    color: var(--secondary-label) !important;
    border-color: var(--separator) !important;
  }
  .input-group-text i,
  .input-group-text svg {
    color: #94A3B8 !important;
  }
  .form-control, .form-select {
    background-color: var(--secondary-system-bg) !important;
    color: var(--label) !important;
    border-color: var(--separator) !important;
  }
  .form-control:focus, .form-select:focus {
    background-color: var(--secondary-system-bg) !important;
    color: var(--label) !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18) !important;
  }
  select.form-select option {
    background-color: var(--secondary-system-bg);
    color: var(--label);
  }

  /* Accordion Components */
  .accordion-button:not(.collapsed) {
    background-color: var(--tertiary-system-bg) !important;
    color: #2DD4BF !important;
  }
  .accordion-button::after {
    filter: invert(1) brightness(1.6) !important;
  }

  /* Multi-Step Application Wizard */
  .step-circle {
    background: var(--tertiary-system-bg) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #CBD5E1 !important;
  }
  .step-label {
    color: #94A3B8 !important;
  }
  .step-indicator.active .step-label {
    color: #F8FAFC !important;
    font-weight: 700 !important;
  }
  .step-indicator.active .step-circle {
    background: #F56729 !important;
    border-color: #F56729 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 5px rgba(245, 103, 41, 0.3) !important;
  }
  .step-indicator.completed .step-circle {
    background: #2563EB !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25) !important;
  }

  /* Dropzone & File Item Pills */
  .dropzone-icon {
    background: rgba(45, 212, 191, 0.12) !important;
    color: #2DD4BF !important;
  }
  .file-item-pill {
    background: var(--tertiary-system-bg) !important;
    border-color: var(--separator) !important;
  }

  /* Review Summary Step 3 in Application */
  .review-summary-card {
    background: var(--tertiary-system-bg) !important;
    border-color: var(--separator) !important;
  }
  .review-summary-item {
    background: var(--secondary-system-bg) !important;
    border-color: var(--separator-subtle) !important;
  }

  /* Tracking Application Page */
  .timeline-badge {
    border-color: var(--secondary-system-bg) !important;
  }

  /* Alerts */
  .alert-success {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6EE7B7 !important;
  }
  .alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #FCA5A5 !important;
  }
  .alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #FCD34D !important;
  }
  .alert-info {
    background-color: rgba(56, 189, 248, 0.12) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #7DD3FC !important;
  }

  /* Footer Links */
  .footer-links a:hover {
    color: #2DD4BF !important;
  }
}

/* ==========================================================================
   Success Confirmation Card & Print Layout
   ========================================================================== */
.print-only {
  display: none !important;
}

.success-card {
  background: var(--secondary-system-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--separator);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--duration-normal), border-color var(--duration-normal);
}

.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange));
}

.success-icon-wrapper {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.1);
  border: 2px solid rgba(13, 148, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D9488;
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.15);
  transition: transform var(--duration-normal) var(--spring-bounce);
}

.success-icon-wrapper:hover {
  transform: scale(1.06);
}

.success-icon-wrapper svg {
  width: 38px;
  height: 38px;
  stroke-width: 2.5;
}

.reference-token-badge {
  background: var(--tertiary-system-bg);
  border: 1.5px dashed rgba(13, 148, 136, 0.45);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin: 22px auto 26px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reference-token-badge .token-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-label);
}

.reference-token-badge .token-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reference-token-badge .token-number {
  font-family: var(--font-mono, monospace);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-navy);
}

[data-theme="dark"] .reference-token-badge .token-number {
  color: #5eead4;
}

.btn-copy-ref {
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 14px;
  background: var(--system-bg);
  border: 1px solid var(--separator);
  color: var(--label);
  cursor: pointer;
  transition: all var(--duration-quick);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-ref:hover {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
}

.success-summary-card {
  background: var(--tertiary-system-bg);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-item {
  background: var(--secondary-system-bg);
  border: 1px solid var(--separator-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--duration-quick);
}

.summary-item:hover {
  border-color: var(--separator);
}

.summary-label {
  font-size: 0.78rem;
  color: var(--secondary-label);
  font-weight: 500;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--label);
  word-break: break-word;
}

.success-next-steps {
  background: rgba(36, 65, 107, 0.03);
  border: 1px solid rgba(36, 65, 107, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

[data-theme="dark"] .success-next-steps {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--separator);
}

.step-num-badge {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

@media print {
  .gov-topbar,
  .main-header,
  .site-footer,
  .page-header-banner,
  .no-print,
  .btn,
  .wizard-steps-header,
  .apple-segmented-control {
    display: none !important;
  }

  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .print-only {
    display: block !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .form-wizard-card,
  .success-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .success-card::before {
    display: none !important;
  }

  .success-summary-card,
  .summary-item,
  .reference-token-badge {
    background: #fff !important;
    border-color: #ccc !important;
    color: #000 !important;
  }

  .token-number {
    color: #000 !important;
  }
}

/* ==========================================================================
   React Bits: GhostFibers Component
   ========================================================================== */
.ghost-fibers-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-ghost-fibers.ghost-fibers-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.ghost-fibers-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* ==========================================================================
   From Uiverse.io by LightAndy1 (Adapted & Color-Fitted for UAQEC)
   ========================================================================== */
.package {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(163deg, #24416B 0%, #0F766E 45%, #C59B27 100%);
  border-radius: 20px;
  padding: 2.5px;
  display: flex;
  transition: all 0.25s cubic-bezier(0, 0, 0, 1);
  position: relative;
  box-shadow: 0 4px 14px rgba(36, 65, 107, 0.08);
}

.package:hover {
  box-shadow: 0px 0px 30px 1px rgba(36, 65, 107, 0.28), 0px 0px 22px rgba(197, 155, 39, 0.35);
  transform: translateY(-2px);
}

.package2 {
  width: 100%;
  height: 100%;
  background-color: var(--secondary-system-bg);
  border-radius: 18px;
  transition: all 0.25s cubic-bezier(0, 0, 0, 1);
  padding: 24px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.package2:hover {
  transform: scale(0.98);
  border-radius: 17px;
}

.package2 .text {
  color: var(--label);
  font-size: 16px;
}

.package2 .text-navy {
  transition: color 0.25s ease;
}

.package2:hover .text-navy {
  color: var(--brand-teal) !important;
}

.package-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(36, 65, 107, 0.06);
  border: 1px solid rgba(36, 65, 107, 0.12);
  color: var(--brand-navy);
  transition: all 0.25s ease;
}

.package:hover .package-icon-box {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  transform: scale(1.05);
}

/* Dark mode theme color adaptation */
[data-theme="dark"] .package {
  background-image: linear-gradient(163deg, #1e3a8a 0%, #0d9488 45%, #f59e0b 100%);
}

[data-theme="dark"] .package:hover {
  box-shadow: 0px 0px 32px 1px rgba(13, 148, 136, 0.35), 0px 0px 24px rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .package2 {
  background-color: #121824;
}

[data-theme="dark"] .package2:hover .text-navy {
  color: #5eead4 !important;
}

[data-theme="dark"] .package-icon-box {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}

[data-theme="dark"] .package:hover .package-icon-box {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

