/* ============================================================
   FRONTIER LIBYA — Design System CSS
   "Expanding Horizons"
   ============================================================ */

/* ──────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ────────────────────────────────────────── */
:root {
  --frontier-primary:    #183EB8;
  --frontier-secondary:  #162C93;
  --frontier-deep:       #00205B;
  --frontier-sky:        #9FB8F9;
  --frontier-warm-white: #F8F7F2;
  --frontier-surface:    #FFFFFF;
  --frontier-card-bg:    #FFFFFF;
  --frontier-nav-bg:     rgba(255, 255, 255, 0.95);
  --frontier-admin-bg:   #f4f6f9;
  --frontier-footer-bg:  #0B1535;
  --frontier-text:       #0B1535;
  --frontier-muted:      #667085;
  --frontier-border:     rgba(24, 62, 184, 0.12);
  --frontier-glass:      rgba(255,255,255,0.08);
  --frontier-shadow-sm:  0 1px 3px rgba(11,21,53,0.08), 0 1px 2px rgba(11,21,53,0.06);
  --frontier-shadow:     0 4px 24px rgba(11,21,53,0.10), 0 1px 4px rgba(11,21,53,0.06);
  --frontier-shadow-lg:  0 16px 64px rgba(11,21,53,0.15), 0 4px 16px rgba(11,21,53,0.08);

  --font-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-arabic:  'Changa', system-ui, Tahoma, Arial, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
html[data-theme="dark"] {
  --frontier-surface:    #0B1120; /* Slate-950 main background */
  --frontier-card-bg:    #151F32; /* Slate-900/800 for cards, widgets */
  --frontier-warm-white: #101625; /* Alternate deep slate background */
  --frontier-admin-bg:   #090D16; /* Deep dark admin background */
  --frontier-footer-bg:  #060b19; /* Deep dark footer background */
  --frontier-text:       #F8FAFC; /* Off-white text */
  --frontier-muted:      #94A3B8; /* Slate-400 */
  --frontier-border:     rgba(255, 255, 255, 0.12);
  --frontier-glass:      rgba(0, 0, 0, 0.35);
  --frontier-nav-bg:     rgba(11, 17, 32, 0.95);
  
  --frontier-shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --frontier-shadow:     0 4px 24px rgba(0,0,0,0.5);
  --frontier-shadow-lg:  0 16px 64px rgba(0,0,0,0.6);
}

/* ──────────────────────────────────────────
   2. GLOBAL RESET & BASE
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--frontier-text);
  background-color: var(--frontier-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.font-arabic,
html[dir="rtl"] body,
html[lang="ar"] *,
html[dir="rtl"] *,
body.font-arabic *,
.font-arabic * {
  font-family: "Cairo", "Tajawal", system-ui, Tahoma, Arial, sans-serif !important;
  letter-spacing: normal !important;
  word-spacing: normal !important;
}

::selection {
  background: var(--frontier-sky);
  color: var(--frontier-deep);
}

/* ──────────────────────────────────────────
   3. TYPOGRAPHY
   ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.fl-display, .fl-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--frontier-text);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .fl-display,
html[dir="rtl"] .fl-heading {
  letter-spacing: 0;
  line-height: 1.4;
}

.fl-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frontier-primary);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.fl-eyebrow::before {
  content: '——';
  opacity: 0.5;
}

html[dir="rtl"] .fl-eyebrow::before { content: none; }
html[dir="rtl"] .fl-eyebrow::after  { content: '——'; opacity: 0.5; }

.fl-text-muted { color: var(--frontier-muted); }
.fl-text-primary { color: var(--frontier-primary); }

/* ──────────────────────────────────────────
   4. NAVIGATION
   ────────────────────────────────────────── */
.fl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.fl-nav--transparent {
  background: transparent;
}

.fl-nav--scrolled {
  background: var(--frontier-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--frontier-shadow-sm);
}

.fl-nav--scrolled .navbar-brand,
.fl-nav--scrolled .nav-link,
.fl-nav--scrolled .fl-logo__name,
.fl-nav--scrolled .fl-logo__sub,
.fl-nav--scrolled .fl-lang-btn {
  color: var(--frontier-text) !important;
}

.fl-nav--transparent .navbar-brand,
.fl-nav--transparent .nav-link,
.fl-nav--transparent .fl-logo__name,
.fl-nav--transparent .fl-logo__sub,
.fl-nav--transparent .fl-lang-btn {
  color: #fff !important;
}

.fl-nav .navbar {
  min-height: 72px;
}

/* Logo */
.fl-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.fl-logo__mark {
  color: var(--frontier-primary);
  transition: color var(--transition);
}
.fl-logo__mark svg { display: block; }

.fl-logo__text {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1;
}

.fl-logo__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--frontier-deep);
  transition: color var(--transition);
}

.fl-logo__sub {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--frontier-primary);
  transition: color var(--transition);
}

.fl-nav--transparent .fl-logo__name {
  color: #ffffff !important;
}
.fl-nav--transparent .fl-logo__sub {
  color: #9FB8F9 !important;
}
.fl-nav--transparent .fl-logo__mark {
  color: #9FB8F9 !important;
}

.fl-nav--scrolled .fl-logo__name {
  color: var(--frontier-deep) !important;
}
.fl-nav--scrolled .fl-logo__sub {
  color: var(--frontier-primary) !important;
}
.fl-nav--scrolled .fl-logo__mark {
  color: var(--frontier-primary) !important;
}

/* Nav links */
.fl-nav .nav-link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  transition: color var(--transition), opacity var(--transition);
  position: relative;
}

.fl-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--frontier-primary);
  border-radius: 2px;
  transition: transform var(--transition);
}

.fl-nav--scrolled .nav-link::after { background: var(--frontier-primary); }
.fl-nav--transparent .nav-link::after { background: #fff; }

.fl-nav .nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

.fl-nav__contact {
  background: var(--frontier-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.1rem !important;
  margin-inline-start: 0.5rem;
}

.fl-nav__contact:hover { background: var(--frontier-secondary) !important; }
.fl-nav__contact::after { display: none !important; }

/* Language toggle */
.fl-lang-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition), color var(--transition);
  opacity: 0.85;
}

.fl-lang-btn:hover {
  background: var(--frontier-primary);
  border-color: var(--frontier-primary);
  color: #fff !important;
  opacity: 1;
}

/* Theme toggle */
.fl-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--frontier-border);
  background: transparent;
  color: var(--frontier-text);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.fl-theme-btn:hover {
  background: var(--frontier-border);
  color: var(--frontier-primary);
  border-color: transparent;
}

.fl-nav--transparent .fl-theme-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.fl-nav--transparent .fl-theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--frontier-sky);
  border-color: transparent;
}

.fl-nav--scrolled .fl-theme-btn {
  color: var(--frontier-text);
  border-color: var(--frontier-border);
}

/* Hamburger */
.fl-nav__toggle {
  border: none;
  background: transparent;
  padding: 8px;
}

.fl-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.fl-hamburger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
}

.fl-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fl-hamburger.is-active span:nth-child(2) { opacity: 0; width: 0; }
.fl-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.fl-mobile-drawer {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--frontier-deep);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

html[dir="rtl"] .fl-mobile-drawer { transform: translateX(100%); }

.fl-mobile-drawer.is-open {
  transform: translateX(0) !important;
}

.fl-mobile-drawer__inner {
  padding: 2rem 1.5rem;
}

.fl-mobile-drawer ul li a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.02em;
}

.fl-mobile-drawer ul li a:hover { color: var(--frontier-sky); }

.fl-mobile-drawer__lang a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ──────────────────────────────────────────
   5. BUTTONS
   ────────────────────────────────────────── */
.fl-btn-primary {
  background: var(--frontier-primary);
  color: #fff;
  border: 2px solid var(--frontier-primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.fl-btn-primary:hover {
  background: var(--frontier-secondary);
  border-color: var(--frontier-secondary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24,62,184,0.3);
}

.fl-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: all var(--transition);
}

.fl-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.fl-btn-outline--dark {
  color: var(--frontier-primary);
  border-color: var(--frontier-border);
}

.fl-btn-outline--dark:hover {
  background: var(--frontier-primary);
  border-color: var(--frontier-primary);
  color: #fff;
}

/* ──────────────────────────────────────────
   6. HERO SECTION
   ────────────────────────────────────────── */
.fl-hero {
  position: relative;
  min-height: 67vh;
  background: linear-gradient(135deg, rgba(0, 32, 91, 0.88) 0%, rgba(22, 44, 147, 0.84) 55%, rgba(11, 21, 53, 0.92) 100%),
              url('../images/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.fl-hero__arcs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.fl-hero__arcs svg {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 75vw;
  max-width: 900px;
  opacity: 0.12;
  animation: fl-arc-breathe 8s ease-in-out infinite;
}

html[dir="rtl"] .fl-hero__arcs svg {
  right: auto;
  left: -5%;
}

@keyframes fl-arc-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(1deg); }
}

.fl-hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.fl-hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
}

.fl-hero__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--frontier-sky);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.fl-hero__label::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--frontier-sky);
  opacity: 0.6;
}

html[dir="rtl"] .fl-hero__label::before { content: none; }
html[dir="rtl"] .fl-hero__label::after { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--frontier-sky); opacity: 0.6; }

.fl-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 12px rgba(0, 16, 50, 0.6);
}

html[dir="rtl"] .fl-hero__title {
  letter-spacing: 0;
  line-height: 1.3;
}

.fl-hero__title span { color: var(--frontier-sky); }

.fl-hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 560px;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 8px rgba(0, 16, 50, 0.5);
}

.fl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Impact stat cards (glass-style) */
.fl-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 500px;
}

@media (min-width: 992px) {
  .fl-hero__stats { grid-template-columns: repeat(2, 1fr); }
}

.fl-stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--transition), transform var(--transition);
}

.fl-stat-card:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-2px);
}

.fl-stat-card__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.fl-stat-card__label {
  font-size: 0.78rem;
  color: var(--frontier-sky);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────
   7. BANNER STRIP
   ────────────────────────────────────────── */
.fl-banner-strip {
  background: var(--frontier-primary);
  color: #fff;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.fl-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: fl-marquee 35s linear infinite;
}

html[dir="rtl"] .fl-marquee-track {
  animation: fl-marquee-rtl 35s linear infinite;
}

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

@keyframes fl-marquee-rtl {
  0%   { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

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

@media (prefers-reduced-motion: reduce) {
  .fl-marquee-track { animation: none; }
}

.fl-marquee-item {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.fl-marquee-item::after {
  content: '✦';
  opacity: 0.5;
  font-size: 0.7rem;
}

/* ──────────────────────────────────────────
   8. SECTION LAYOUT
   ────────────────────────────────────────── */
.fl-section {
  padding: 6rem 0;
}

.fl-section--warm {
  background: var(--frontier-warm-white);
}

.fl-section--dark {
  background: var(--frontier-deep);
  color: #fff;
}

.fl-section__header {
  margin-bottom: 3.5rem;
}

/* ──────────────────────────────────────────
   9. SERVICE CARDS
   ────────────────────────────────────────── */
.fl-service-card {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.fl-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--frontier-primary), var(--frontier-sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

html[dir="rtl"] .fl-service-card::before { transform-origin: right; }

.fl-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--frontier-shadow-lg);
  border-color: transparent;
}

.fl-service-card:hover::before { transform: scaleX(1); }

.fl-service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(24,62,184,0.08), rgba(24,62,184,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--frontier-primary);
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}

.fl-service-card:hover .fl-service-card__icon {
  background: var(--frontier-primary);
  color: #fff;
}

.fl-service-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.fl-service-card__desc {
  font-size: 0.875rem;
  color: var(--frontier-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.fl-service-card__link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--frontier-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
  transition: gap var(--transition);
}

.fl-service-card__link:hover { gap: 0.7em; }

/* ──────────────────────────────────────────
   10. PROJECT CARDS
   ────────────────────────────────────────── */
.fl-project-card {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fl-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--frontier-shadow);
}

.fl-project-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--frontier-secondary), var(--frontier-sky));
  position: relative;
  overflow: hidden;
}

.fl-project-card__image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--frontier-secondary) 0%, var(--frontier-sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 3rem;
}

.fl-project-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-project-card__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.fl-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  background: rgba(24,62,184,0.08);
  color: var(--frontier-primary);
}

.fl-tag--sector { background: rgba(24,62,184,0.08); color: var(--frontier-primary); }
.fl-tag--status-completed { background: rgba(16,185,129,0.1); color: #059669; }
.fl-tag--status-in_progress { background: rgba(245,158,11,0.1); color: #d97706; }

.fl-project-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  flex: 1;
}

.fl-project-card__title a {
  color: var(--frontier-text);
  text-decoration: none;
}

.fl-project-card__title a:hover { color: var(--frontier-primary); }

.fl-project-card__summary {
  font-size: 0.85rem;
  color: var(--frontier-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.fl-project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--frontier-border);
  padding-top: 1rem;
  margin-top: auto;
}

.fl-project-card__location {
  font-size: 0.78rem;
  color: var(--frontier-muted);
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.fl-project-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--frontier-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--frontier-primary);
  text-decoration: none;
  transition: all var(--transition);
}

.fl-project-card__arrow:hover {
  background: var(--frontier-primary);
  border-color: var(--frontier-primary);
  color: #fff;
}

/* ──────────────────────────────────────────
   11. FILTER CHIPS
   ────────────────────────────────────────── */
.fl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.fl-filter-chip {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  border: 1.5px solid var(--frontier-border);
  color: var(--frontier-muted);
  background: var(--frontier-surface);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.fl-filter-chip:hover,
.fl-filter-chip.is-active {
  background: var(--frontier-primary);
  border-color: var(--frontier-primary);
  color: #fff;
}

/* ──────────────────────────────────────────
   12. TESTIMONIAL CARDS
   ────────────────────────────────────────── */
.fl-testimonial-card {
  background: var(--frontier-surface);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.fl-testimonial-card::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--frontier-sky);
  position: absolute;
  top: 0.5rem;
  line-height: 1;
  opacity: 0.5;
}

html[dir="rtl"] .fl-testimonial-card::before {
  content: '\201D';
}

.fl-testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--frontier-text);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.fl-testimonial-card__person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fl-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--frontier-secondary), var(--frontier-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.fl-testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.fl-testimonial-card__role {
  font-size: 0.78rem;
  color: var(--frontier-muted);
}

/* ──────────────────────────────────────────
   13. PARTNER MARQUEE
   ────────────────────────────────────────── */
.fl-partners-marquee {
  overflow: hidden;
  padding: 0;
}

.fl-partners-track {
  display: flex;
  gap: 0;
  animation: fl-marquee 25s linear infinite;
}

html[dir="rtl"] .fl-partners-track {
  animation: fl-marquee-rtl 25s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .fl-partners-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

.fl-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  min-width: 180px;
  flex-shrink: 0;
  border-right: 1px solid var(--frontier-border);
  transition: opacity var(--transition);
}

html[dir="rtl"] .fl-partner-logo { border-right: none; border-left: 1px solid var(--frontier-border); }

.fl-partner-logo img {
  max-height: 44px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--transition);
}

.fl-partner-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

.fl-partner-logo__placeholder {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frontier-muted);
  opacity: 0.5;
  transition: opacity var(--transition);
}

.fl-partner-logo:hover .fl-partner-logo__placeholder { opacity: 1; color: var(--frontier-primary); }

/* ──────────────────────────────────────────
   14. EVENTS TIMELINE
   ────────────────────────────────────────── */
.fl-events-timeline {
  position: relative;
}

.fl-events-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 120px;
  width: 1px;
  background: var(--frontier-border);
}

html[dir="rtl"] .fl-events-timeline::before {
  left: auto;
  right: 120px;
}

.fl-event-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 0;
  position: relative;
}


.fl-event-item:last-child {
  margin-bottom: 0;
}

.fl-event-item__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--frontier-muted);
  text-align: right;
  padding-top: 0.25rem;
  padding-right: 1.5rem;
}

html[dir="rtl"] .fl-event-item__date { text-align: left; padding-right: 0; padding-left: 1.5rem; }

.fl-event-item__date strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--frontier-primary);
  line-height: 1;
}

.fl-event-item__dot {
  position: absolute;
  top: 4px;
  left: 112px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--frontier-primary);
  border: 3px solid var(--frontier-surface);
  box-shadow: 0 0 0 1px var(--frontier-primary);
  transform: translateX(-50%);
}

html[dir="rtl"] .fl-event-item__dot {
  left: auto;
  right: 112px;
  transform: translateX(50%);
}

.fl-event-item__content {}

.fl-event-item__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.fl-event-item__location {
  font-size: 0.82rem;
  color: var(--frontier-muted);
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-bottom: 0.5rem;
}

.fl-event-item__desc {
  font-size: 0.875rem;
  color: var(--frontier-muted);
  line-height: 1.65;
}

/* ──────────────────────────────────────────
   15. ARABIC MISSION BLOCK
   ────────────────────────────────────────── */
.fl-arabic-mission {
  background: var(--frontier-deep);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.fl-arabic-mission::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E") center/60px 60px;
}

.fl-arabic-mission__content {
  position: relative;
  z-index: 2;
  text-align: right;
  direction: rtl;
}

.fl-arabic-mission__label {
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--frontier-sky);
  opacity: 0.7;
  margin-bottom: 1.5rem;
}

.fl-arabic-mission__text {
  font-family: var(--font-arabic);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}

.fl-arabic-mission__sub {
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-top: 1.5rem;
  line-height: 1.8;
}

/* ──────────────────────────────────────────
   16. NEWSLETTER SECTION
   ────────────────────────────────────────── */
.fl-newsletter-section {
  background: linear-gradient(135deg, var(--frontier-primary), var(--frontier-secondary));
  padding: 5rem 0;
  color: #fff;
}

.fl-newsletter-input {
  display: flex;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.fl-newsletter-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
}

.fl-newsletter-input input::placeholder { color: rgba(255,255,255,0.5); }

.fl-newsletter-input button {
  background: #fff;
  color: var(--frontier-primary);
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

.fl-newsletter-input button:hover { background: var(--frontier-warm-white); }

/* ──────────────────────────────────────────
   17. PUBLICATIONS STRIP
   ────────────────────────────────────────── */
.fl-pub-card {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.fl-pub-card__cover {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--frontier-secondary) 0%, var(--frontier-sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.fl-pub-card__type-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 4px;
}

html[dir="rtl"] .fl-pub-card__type-badge { left: auto; right: 0.75rem; }

.fl-pub-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-pub-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  flex: 1;
}

.fl-pub-card__download {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--frontier-primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}

.fl-pub-card__download:hover { gap: 0.7em; color: var(--frontier-secondary); }

/* ──────────────────────────────────────────
   18. INSIGHTS CARDS
   ────────────────────────────────────────── */
.fl-insight-card {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fl-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--frontier-shadow);
}

.fl-insight-card__image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--frontier-secondary), var(--frontier-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
}

.fl-insight-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-insight-card__author {
  font-size: 0.78rem;
  color: var(--frontier-muted);
  margin-bottom: 0.5rem;
}

.fl-insight-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  flex: 1;
}

.fl-insight-card__title a {
  color: var(--frontier-text);
  text-decoration: none;
}

.fl-insight-card__title a:hover { color: var(--frontier-primary); }

.fl-insight-card__summary {
  font-size: 0.85rem;
  color: var(--frontier-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ──────────────────────────────────────────
   19. CTA SECTION
   ────────────────────────────────────────── */
.fl-cta-section {
  background: var(--frontier-warm-white);
  padding: 6rem 0;
}

.fl-cta-card {
  background: linear-gradient(135deg, var(--frontier-deep) 0%, var(--frontier-secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 4rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.fl-cta-card::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

html[dir="rtl"] .fl-cta-card::after { right: auto; left: -10%; }

/* ──────────────────────────────────────────
   20. PROGRAMS GRID
   ────────────────────────────────────────── */
.fl-program-card {
  background: var(--frontier-surface);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.fl-program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--frontier-shadow);
}

.fl-program-card__image {
  aspect-ratio: 3/2;
  background: linear-gradient(135deg, var(--frontier-primary), var(--frontier-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 2.5rem;
}

.fl-program-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-program-card__focus {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frontier-primary);
  margin-bottom: 0.6rem;
}

.fl-program-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.fl-program-card__meta {
  font-size: 0.8rem;
  color: var(--frontier-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.fl-program-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

/* ──────────────────────────────────────────
   21. CONTACT FORM
   ────────────────────────────────────────── */
.fl-contact-form .form-control,
.fl-contact-form .form-select {
  border: 1.5px solid var(--frontier-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  color: var(--frontier-text);
  background: var(--frontier-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.fl-contact-form .form-control:focus,
.fl-contact-form .form-select:focus {
  border-color: var(--frontier-primary);
  box-shadow: 0 0 0 3px rgba(24,62,184,0.12);
  outline: none;
}

.fl-contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--frontier-text);
  margin-bottom: 0.35rem;
}

/* ──────────────────────────────────────────
   22. ADMIN LAYOUT
   ────────────────────────────────────────── */
.fl-admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--frontier-deep);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.fl-admin-sidebar__logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1rem;
}

.fl-admin-sidebar__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fl-admin-sidebar__nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  border-left: 3px solid transparent;
}

.fl-admin-sidebar__nav li a:hover,
.fl-admin-sidebar__nav li a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--frontier-sky);
}

.fl-admin-sidebar__nav li a i { font-size: 1.05rem; }

.fl-admin-sidebar__section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 1.25rem 1.5rem 0.4rem;
}

.fl-admin-main {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--frontier-admin-bg);
}

.fl-admin-topbar {
  background: var(--frontier-card-bg);
  border-bottom: 1px solid var(--frontier-border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.fl-admin-content {
  padding: 2rem;
}

/* RTL Admin overrides */
html[dir="rtl"] .fl-admin-sidebar {
  left: auto;
  right: 0;
}
html[dir="rtl"] .fl-admin-sidebar__nav li a {
  border-left: none;
  border-right: 3px solid transparent;
}
html[dir="rtl"] .fl-admin-sidebar__nav li a:hover,
html[dir="rtl"] .fl-admin-sidebar__nav li a.active {
  border-left-color: transparent;
  border-right-color: var(--frontier-sky);
}
html[dir="rtl"] .fl-admin-main {
  margin-left: 0;
  margin-right: 260px;
}
@media (max-width: 991.98px) {
  html[dir="rtl"] .fl-admin-sidebar {
    transform: translateX(100%);
  }
  html[dir="rtl"] .fl-admin-sidebar.is-open {
    transform: translateX(0);
  }
  html[dir="rtl"] .fl-admin-main {
    margin-right: 0;
  }
}

.fl-admin-card {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.fl-admin-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.035);
  border-color: rgba(24, 62, 184, 0.15);
}

.fl-admin-stat {
  background: var(--frontier-card-bg);
  border: 1px solid var(--frontier-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.fl-admin-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045);
  border-color: rgba(24, 62, 184, 0.2);
}

.fl-admin-stat__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(24,62,184,0.08);
  color: var(--frontier-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fl-admin-stat__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.fl-admin-stat__label {
  font-size: 0.8rem;
  color: var(--frontier-muted);
  font-weight: 500;
}

.fl-admin-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--frontier-muted);
  font-weight: 500;
  border-bottom: 2px solid var(--frontier-border) !important;
  padding: 0.75rem 1rem;
}

.fl-admin-table td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--frontier-border) !important;
  font-size: 0.875rem;
}

.fl-status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.7em;
  border-radius: 100px;
}

.fl-status-badge--new { background: rgba(24,62,184,0.1); color: var(--frontier-primary); }
.fl-status-badge--in_progress { background: rgba(245,158,11,0.1); color: #d97706; }
.fl-status-badge--responded { background: rgba(16,185,129,0.1); color: #059669; }
.fl-status-badge--archived { background: rgba(156,163,175,0.15); color: #6b7280; }

/* ──────────────────────────────────────────
   23. COOKIE CONSENT BAR
   ────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: rgba(0, 32, 91, 0.85); /* Deep navy glassmorphism */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slide-up-cookie 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-up-cookie {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

[dir="rtl"] .cookie-bar {
  left: 24px;
  right: auto;
}

/* ──────────────────────────────────────────
   24. FOOTER
   ────────────────────────────────────────── */
.fl-footer {
  background: var(--frontier-footer-bg);
  color: rgba(255,255,255,0.6);
}

.fl-footer__upper {
  padding: 5rem 0 4rem;
}

.fl-footer__lower {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  font-size: 0.82rem;
}

.fl-footer__lower a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.fl-footer__lower a:hover { color: #fff; }

.fl-footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.fl-footer__mission {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
}

.fl-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fl-footer__links li { margin-bottom: 0.5rem; }

.fl-footer__links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.fl-footer__links a:hover { color: #fff; }

.fl-footer__sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.fl-footer__consent {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.45);
}

/* Newsletter Input Pill Box in LTR & RTL */
.fl-newsletter-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.fl-newsletter-input .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px !important;
  color: #ffffff;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  padding-left: 1.25rem;
  padding-right: 3.5rem;
  font-size: 0.88rem;
  transition: all 0.25s ease;
}

.fl-newsletter-input .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.fl-newsletter-input .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--frontier-sky);
  box-shadow: 0 0 0 0.2rem rgba(159, 184, 249, 0.25);
  color: #ffffff;
}

.fl-newsletter-input .btn {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff !important;
  color: var(--frontier-deep) !important;
  border: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fl-newsletter-input .btn:hover {
  background-color: var(--frontier-sky) !important;
  color: var(--frontier-deep) !important;
  transform: scale(1.08);
}

html[dir="rtl"] .fl-newsletter-input .form-control {
  padding-right: 1.25rem;
  padding-left: 3.5rem;
}

html[dir="rtl"] .fl-newsletter-input .btn {
  right: auto;
  left: 4px;
}

.fl-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.fl-footer__contact-item i { margin-top: 2px; flex-shrink: 0; }
.fl-footer__contact-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.fl-footer__contact-item a:hover { color: #fff; }

.fl-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition);
}

.fl-social-btn:hover {
  border-color: var(--frontier-sky);
  color: var(--frontier-sky);
  background: rgba(159,184,249,0.1);
}

.fl-footer__lang {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3em 0.8em;
  border-radius: 4px;
  transition: all var(--transition);
}

.fl-footer__lang:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ──────────────────────────────────────────
   25. UTILITY / HELPERS
   ────────────────────────────────────────── */
.fl-reveal { opacity: 0; }

.fl-divider {
  height: 1px;
  background: var(--frontier-border);
  border: none;
  margin: 0;
}

.fl-badge-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--frontier-primary);
  opacity: 0.08;
  line-height: 1;
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  pointer-events: none;
  user-select: none;
}

html[dir="rtl"] .fl-badge-number { right: auto; left: 1.5rem; }

/* Alert/Flash messages */
.fl-alert {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.fl-alert--success { background: rgba(16,185,129,0.08); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.fl-alert--error   { background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.2); }
.fl-alert--info    { background: rgba(24,62,184,0.06); color: var(--frontier-primary); border: 1px solid var(--frontier-border); }

/* Pagination override */
.pagination { gap: 0.25rem; }
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--frontier-border) !important;
  color: var(--frontier-text);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  transition: all var(--transition);
}
.page-link:hover, .page-item.active .page-link {
  background: var(--frontier-primary) !important;
  border-color: var(--frontier-primary) !important;
  color: #fff !important;
  box-shadow: none;
}

/* ──────────────────────────────────────────
   26. RESPONSIVE
   ────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .fl-nav .collapse { display: none !important; }
  .fl-hero__stats { max-width: 100%; grid-template-columns: repeat(2, 1fr); }
  .fl-admin-sidebar { transform: translateX(-100%); transition: transform var(--transition); }
  .fl-admin-sidebar.is-open { transform: translateX(0); }
  .fl-admin-main { margin-left: 0; }
  .fl-events-timeline::before { left: 60px; }
  html[dir="rtl"] .fl-events-timeline::before { right: 60px; }
  .fl-event-item { grid-template-columns: 60px 1fr; }
  .fl-event-item__dot { left: 52px; }
  html[dir="rtl"] .fl-event-item__dot { right: 52px; }
  .fl-event-item__date { padding-right: 0.75rem; }
  html[dir="rtl"] .fl-event-item__date { padding-left: 0.75rem; padding-right: 0; }
}

@media (max-width: 575.98px) {
  .fl-hero__title { font-size: 2.25rem; }
  .fl-section { padding: 4rem 0; }
  .fl-cta-card { padding: 2.5rem 1.5rem; }
  .fl-hero__stats { grid-template-columns: 1fr 1fr; }
  .fl-events-timeline::before { display: none; }
  .fl-event-item { grid-template-columns: 1fr; }
  .fl-event-item__dot { display: none; }
  .fl-event-item__date { text-align: start; padding: 0; }
  html[dir="rtl"] .fl-event-item__date { text-align: start; padding: 0; }
}

/* ──────────────────────────────────────────
   27. REDUCED MOTION
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fl-hero__arcs svg { animation: none; }
}

/* ──────────────────────────────────────────
   28. BOOTSTRAP DARK MODE INTEGRATIONS
   ────────────────────────────────────────── */
html[data-theme="dark"] .card {
  background-color: var(--frontier-card-bg) !important;
  border-color: var(--frontier-border) !important;
  color: var(--frontier-text) !important;
}

html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] .card h5,
html[data-theme="dark"] .card h6 {
  color: var(--frontier-text) !important;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .card span,
html[data-theme="dark"] .card div {
  color: var(--frontier-text);
}

html[data-theme="dark"] .card .text-muted {
  color: var(--frontier-muted) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
  background-color: var(--frontier-surface) !important;
  color: var(--frontier-text) !important;
  border-color: var(--frontier-border) !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
  background-color: var(--frontier-surface) !important;
  color: var(--frontier-text) !important;
  border-color: var(--frontier-primary) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

html[data-theme="dark"] .page-link {
  background-color: var(--frontier-card-bg) !important;
  color: var(--frontier-text) !important;
  border-color: var(--frontier-border) !important;
}

html[data-theme="dark"] .page-link:hover {
  background-color: var(--frontier-warm-white) !important;
  color: var(--frontier-sky) !important;
}

html[data-theme="dark"] .page-item.active .page-link {
  background-color: var(--frontier-primary) !important;
  border-color: var(--frontier-primary) !important;
  color: #fff !important;
}

/* Scrolled Logo Colors in Dark Mode */
html[data-theme="dark"] .fl-nav--scrolled .fl-logo__name {
  color: #ffffff !important;
}
html[data-theme="dark"] .fl-nav--scrolled .fl-logo__sub,
html[data-theme="dark"] .fl-nav--scrolled .fl-logo__mark {
  color: var(--frontier-sky) !important;
}

/* Dynamic Inline Style Color Overrides in Dark Mode */
html[data-theme="dark"] [style*="color: var(--frontier-deep)"],
html[data-theme="dark"] [style*="color:var(--frontier-deep)"],
html[data-theme="dark"] [style*="color: var(--frontier-secondary)"],
html[data-theme="dark"] [style*="color:var(--frontier-secondary)"] {
  color: var(--frontier-text) !important;
}

html[data-theme="dark"] [style*="color: var(--frontier-primary)"],
html[data-theme="dark"] [style*="color:var(--frontier-primary)"] {
  color: var(--frontier-sky) !important;
}

/* Bootstrap Text Color Helper Overrides in Dark Mode */
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary {
  color: var(--frontier-muted) !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-body {
  color: var(--frontier-text) !important;
}

html[data-theme="dark"] [style*="color: #00205B"],
html[data-theme="dark"] [style*="color:#00205B"],
html[data-theme="dark"] [style*="color: #162C93"],
html[data-theme="dark"] [style*="color:#162C93"] {
  color: var(--frontier-text) !important;
}

html[data-theme="dark"] [style*="color: #183EB8"],
html[data-theme="dark"] [style*="color:#183EB8"] {
  color: var(--frontier-sky) !important;
}
