/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Fonts */
  --font-en: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, sans-serif;
  
  /* Color Palette */
  --color-primary: #0a4b7c;         /* Medical Deep Blue */
  --color-primary-light: #16609b;
  --color-primary-dark: #073559;
  --color-secondary: #0d9488;       /* Teal/Medical Green */
  --color-secondary-light: #14b8a6;
  --color-accent: #bfa15f;          /* Logo Gold */
  --color-accent-light: #d1ba8c;
  --color-accent-dark: #a18343;
  
  /* Neutral Colors */
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-white: #ffffff;
  --color-red-500: #ef4444;
  --color-red-600: #dc2626;

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(10, 75, 124, 0.06);
  --shadow-accent: 0 10px 15px -3px rgba(191, 161, 95, 0.2);

  /* Borders & Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--color-white);
  color: var(--color-slate-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* RTL Typography & Direction */
[dir="rtl"] body {
  font-family: var(--font-ar);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-slate-900);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-slate-600);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES & WRAPPER
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
  position: relative;
}

.section-bg-slate {
  background-color: var(--color-slate-50);
}

.section-bg-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-bg-primary h2, 
.section-bg-primary p {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

.section-header p {
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 75, 124, 0.25);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-slate-900);
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Icons */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: rgba(10, 75, 124, 0.08);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

[dir="rtl"] .btn svg {
  transform: scaleX(-1);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background-color: rgba(191, 161, 95, 0.15);
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

[dir="rtl"] .badge {
  font-family: var(--font-ar);
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
  padding-block: 0.5rem;
}

.logo-img {
  height: 100%;
  width: auto;
  max-height: 4.5rem;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--color-slate-700);
  font-size: 0.95rem;
  position: relative;
  padding-block: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Switcher */
.lang-btn {
  background: transparent;
  border: 1px solid var(--color-slate-300);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-slate-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-slate-50);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-slate-800);
}

.mobile-toggle:focus {
  outline: none;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  left: 0;
  transition: var(--transition-normal);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}

.mobile-toggle.active .hamburger {
  background-color: transparent;
}

.mobile-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================================================
   HERO BANNER & IMPACT FLOAT BAR
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 9.5rem;
  padding-bottom: 7rem;
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(10, 75, 124, 0.04) 0%, rgba(13, 148, 136, 0.03) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-subtitle {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-content h1 span {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--color-slate-600);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-image-wrapper {
  position: relative;
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-badge-float {
  position: absolute;
  bottom: 2rem;
  inset-inline-start: -2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  z-index: 10;
}

.hero-badge-float .icon-wrapper {
  margin-bottom: 0;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--color-secondary);
}

.hero-badge-text h4 {
  font-size: 1.125rem;
  color: var(--color-slate-900);
}

.hero-badge-text p {
  font-size: 0.85rem;
  color: var(--color-slate-600);
}

/* Float Stat Bar */
.stat-bar {
  position: relative;
  z-index: 10;
  margin-top: -3.5rem;
  margin-bottom: 1.5rem;
}

.stat-bar-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.stat-item {
  text-align: center;
  border-inline-end: 1px solid var(--color-slate-200);
}

.stat-item:last-child {
  border-inline-end: none;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.stat-number span {
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-slate-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   IDENTITY CARD & GOVERNANCE OBJECTIVES
   ========================================================================== */
.identity-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.identity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  overflow: hidden;
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  z-index: 10;
}

.identity-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.75rem;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 1rem;
}

.identity-meta-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.identity-meta-item:last-child {
  margin-bottom: 0;
}

.identity-meta-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.identity-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-slate-800);
}

.identity-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.identity-text p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Strategic Framework Vision & Mission */
.framework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

.framework-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.framework-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 75, 124, 0.15);
}

.framework-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.framework-card p {
  font-size: 1.05rem;
}

.framework-alignment {
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(10, 75, 124, 0.03) 0%, rgba(191, 161, 95, 0.04) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(191, 161, 95, 0.15);
}

.framework-alignment-content {
  max-width: 1000px;
  margin-inline: auto;
}

.framework-alignment-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.framework-alignment-content h3 svg {
  color: var(--color-accent);
}

.framework-alignment-content p {
  font-size: 1.05rem;
}

/* ==========================================================================
   STRATEGIC OBJECTIVES GRID
   ========================================================================== */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.objective-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 75, 124, 0.15);
}

.objective-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: var(--color-accent);
  transition: var(--transition-normal);
  border-radius: 0 0 0 var(--radius-lg);
}

[dir="rtl"] .objective-card::after {
  left: auto;
  right: 0;
  border-radius: 0 0 var(--radius-lg) 0;
}

.objective-card:hover::after {
  width: 100%;
}

.objective-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-900);
}

.objective-card p {
  font-size: 0.95rem;
}

.objective-list {
  margin-top: 1rem;
  padding-inline-start: 1.25rem;
  list-style-type: disc;
  font-size: 0.9rem;
  color: var(--color-slate-600);
}

.objective-list li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   PORTFOLIO OF MEDICAL PROGRAMS
   ========================================================================== */
.programs-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.programs-tabs-list {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-100);
  max-height: 520px;
  overflow-y: auto;
}

.programs-tab-btn {
  width: 100%;
  text-align: start;
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-slate-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
  margin-bottom: 0.5rem;
}

.programs-tab-btn:last-child {
  margin-bottom: 0;
}

.programs-tab-btn svg {
  color: var(--color-slate-400);
  transition: var(--transition-fast);
}

.programs-tab-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.programs-tab-btn.active svg {
  color: var(--color-accent);
}

.programs-tab-btn:hover:not(.active) {
  background-color: var(--color-slate-100);
  color: var(--color-primary);
}

.programs-content-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
  min-height: 400px;
}

.program-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.program-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.program-panel-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 1.5rem;
}

.program-panel-header .icon-wrapper {
  margin-bottom: 0;
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
  background-color: rgba(10, 75, 124, 0.08);
}

.program-panel-header h3 {
  font-size: 1.85rem;
  color: var(--color-primary);
}

.program-panel-body p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.program-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.program-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.program-highlight-item svg {
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.program-highlight-item h4 {
  font-size: 1rem;
  color: var(--color-slate-800);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.program-highlight-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--color-slate-500);
}

/* ==========================================================================
   OPERATIONAL IMPACT & ACHIEVEMENT TIMELINE
   ========================================================================== */
.impact-table-wrapper {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-slate-100);
  overflow-x: auto;
  margin-bottom: 4rem;
}

.impact-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.impact-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
}

.impact-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-slate-100);
  font-size: 0.95rem;
  color: var(--color-slate-700);
}

.impact-table tr:last-child td {
  border-bottom: none;
}

.impact-table tr:hover td {
  background-color: var(--color-slate-50);
}

.impact-date {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.impact-location {
  font-weight: 700;
  color: var(--color-slate-900);
}

.impact-badge-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-slate-100);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-slate-600);
}

/* Model of Comprehensive Care Spotlight */
.spotlight-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(191, 161, 95, 0.15);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.spotlight-content {
  padding: 4rem;
}

.spotlight-title-row {
  margin-bottom: 1.5rem;
}

.spotlight-title-row h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.spotlight-specialties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specialty-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background-color: rgba(10, 75, 124, 0.05);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialty-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-slate-700);
}

.spotlight-image-wrapper {
  height: 100%;
  position: relative;
  min-height: 380px;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* ==========================================================================
   FUTURE STRATEGIC DIRECTION
   ========================================================================== */
.future-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.future-content h3 {
  font-size: 1.85rem;
  margin-bottom: 1.25rem;
}

.future-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.future-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-white);
}

.future-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.future-blueprint-badge {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   GOVERNANCE & LEADERSHIP
   ========================================================================== */
.governance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.governance-card {
  flex: 1 1 220px;
  max-width: 250px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-slate-100);
  transition: var(--transition-normal);
}

.governance-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 75, 124, 0.15);
}

.governance-avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(10, 75, 124, 0.1) 0%, rgba(191, 161, 95, 0.15) 100%);
  color: var(--color-primary);
  font-size: 2.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px dashed rgba(191, 161, 95, 0.5);
  font-family: 'Outfit', 'Cairo', sans-serif;
}

.governance-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  color: var(--color-slate-900);
}

.governance-role {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   DONATE BANNER & CONTACT FORM
   ========================================================================== */
.donate-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.donate-banner::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.donate-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.donate-banner h2 {
  font-size: 2.5rem;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.donate-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.contact-info-panel-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-list-centered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-block: 2rem;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .contact-list-centered {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

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

.contact-item .icon-wrapper {
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  color: var(--color-slate-500);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item-text p {
  font-size: 1.05rem;
  color: var(--color-slate-800);
  font-weight: 600;
}

.contact-item-text a {
  color: inherit;
  transition: var(--transition-fast);
}

.contact-item-text a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-slate-100);
  color: var(--color-slate-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Form inputs styling */
.contact-form {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-slate-100);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group:last-child {
  margin-bottom: 2rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-slate-700);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-slate-800);
  transition: var(--transition-fast);
  background-color: var(--color-slate-50);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(10, 75, 124, 0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   DONATION POPUP MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.donate-modal {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .donate-modal {
  transform: scale(1);
}

.donate-modal-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2.25rem 2.5rem;
  position: relative;
}

.donate-modal-header h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.donate-modal-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1.5rem;
}

.modal-close-btn:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.donate-modal-body {
  padding: 2.5rem;
}

.donation-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  background-color: var(--color-slate-100);
  border: 2px solid transparent;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--color-slate-700);
  cursor: pointer;
  text-align: center;
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

.amount-btn:hover {
  background-color: var(--color-slate-200);
}

.amount-btn.active {
  background-color: rgba(10, 75, 124, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.custom-amount-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.custom-amount-wrapper input {
  padding-inline-start: 2.75rem;
  font-size: 1.1rem;
}

.amount-prefix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 1.15rem;
  font-weight: 700;
  color: var(--color-slate-500);
}

.donate-modal-body h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.payment-method-btn {
  flex: 1;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.payment-method-btn:hover {
  border-color: var(--color-slate-300);
  background-color: var(--color-slate-100);
}

.payment-method-btn.active {
  border-color: var(--color-primary);
  background-color: rgba(10, 75, 124, 0.03);
}

.payment-method-btn svg {
  color: var(--color-slate-600);
}

.payment-method-btn.active svg {
  color: var(--color-primary);
}

.payment-method-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.bank-transfer-details {
  display: none;
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.bank-transfer-details.active {
  display: block;
}

.bank-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed var(--color-slate-200);
  padding-bottom: 0.5rem;
}

.bank-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.bank-label {
  font-weight: 600;
  color: var(--color-slate-500);
}

.bank-value {
  font-weight: 700;
  color: var(--color-slate-800);
  user-select: all; /* Allow easy double click copy */
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
  background-color: var(--color-slate-900);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 4px solid var(--color-accent);
}

.footer h3, .footer h4 {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col-about img {
  height: 4.5rem;
  width: auto;
  margin-bottom: 1.5rem;
  background-color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  display: block;
}

.footer-col-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-col-links h4 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-accent);
}

[dir="rtl"] .footer-col-links h4::after {
  left: auto;
  right: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.footer-links-list a:hover {
  color: var(--color-accent);
  padding-inline-start: 4px;
}



.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image-wrapper {
    max-width: 580px;
    margin: 0 auto;
  }
  
  .stat-bar-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-item:nth-child(2) {
    border-inline-end: none;
  }
  
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .objectives-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .programs-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .programs-tabs-list {
    display: flex;
    overflow-x: auto;
    max-height: none;
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: var(--radius-md);
  }
  
  .programs-tab-btn {
    width: auto;
    white-space: nowrap;
    margin-bottom: 0;
    padding: 0.75rem 1.25rem;
  }
  
  .programs-tab-btn svg {
    display: none;
  }
  
  .spotlight-card {
    grid-template-columns: 1fr;
  }
  
  .spotlight-image-wrapper {
    height: 300px;
    min-height: auto;
  }
  
  .future-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .governance-card {
    max-width: 280px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section {
    padding-block: 4rem;
  }
  
  .header {
    height: 5rem;
  }
  
  .nav-wrapper {
    height: 5rem;
  }
  
  /* Mobile Menu Drawer */
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    inset-inline-end: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 7.5rem 2.5rem 3rem 2.5rem;
    gap: 2rem;
    box-shadow: var(--shadow-xl);
    transition: inset-inline-end 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }
  
  .nav-menu.active {
    inset-inline-end: 0;
  }
  
  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1rem;
  }
  
  .lang-btn {
    justify-content: center;
    padding-block: 0.75rem;
  }
  
  .nav-actions .btn-accent {
    width: 100%;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .framework-grid {
    grid-template-columns: 1fr;
  }
  
  .objectives-grid {
    grid-template-columns: 1fr;
  }
  
  .program-highlights {
    grid-template-columns: 1fr;
  }
  
  .governance-card {
    max-width: 340px;
    width: 100%;
  }
  
  .donate-banner {
    padding: 3rem 2rem;
  }
  
  .donate-banner h2 {
    font-size: 2rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stat-bar-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  
  .stat-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--color-slate-200);
    padding-bottom: 1rem;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .spotlight-content {
    padding: 2rem 1.5rem;
  }
  
  .spotlight-specialties {
    grid-template-columns: 1fr;
  }
  
  .donation-amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .payment-methods {
    flex-direction: column;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ADVANCED PARALLAX & 3D INTERACTIVE CUSTOM STYLES
   ========================================================================== */

/* Morphing Background Blobs */
.blob-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  animation: floatBlob 20s infinite alternate ease-in-out;
  will-change: transform;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 80%);
  top: -10%;
  left: -5%;
  animation-duration: 25s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-secondary-light) 0%, transparent 80%);
  top: 35%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 80%);
  bottom: 5%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(40px, -60px) scale(1.15) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9) rotate(240deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* 3D Scroll-Triggered Reveals */
.reveal-3d {
  opacity: 0;
  transform: perspective(1000px) rotateX(10deg) translateY(50px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-3d.appear {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* 3D Hover tilt cards */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 75, 124, 0.15);
}

.tilt-card-inner {
  transform: translateZ(25px);
  transition: transform 0.3s ease;
}

/* Modern Achievements Timeline */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-block: 2rem;
  z-index: 1;
}

.timeline-line-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background-color: var(--color-slate-200);
  border-radius: var(--radius-full);
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0%; /* Driven by JS on scroll */
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: height 0.15s cubic-bezier(0.1, 0.8, 0.2, 1);
}

[dir="rtl"] .timeline-line-track,
[dir="rtl"] .timeline-line-progress {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-inline-end: 3.5rem;
  margin-bottom: 4rem;
  box-sizing: border-box;
}

.timeline-item:nth-child(even) {
  margin-inline-start: 50%;
  padding-inline-end: 0;
  padding-inline-start: 3.5rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 4px solid var(--color-slate-300);
  z-index: 10;
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -10px;
}

[dir="rtl"] .timeline-dot {
  right: auto;
  left: -10px;
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-dot {
  left: auto;
  right: -10px;
}

.timeline-item.active .timeline-dot {
  border-color: var(--color-accent);
  background-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(191, 161, 95, 0.8);
}

.timeline-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 75, 124, 0.15);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-900);
  font-weight: 700;
}

.timeline-partner {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background-color: rgba(10, 75, 124, 0.06);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-metrics {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .timeline-line-track,
  .timeline-line-progress {
    left: 16px;
    transform: none;
  }
  [dir="rtl"] .timeline-line-track,
  [dir="rtl"] .timeline-line-progress {
     left: 16px;
     right: auto;
     transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-inline-start: 2.5rem;
    padding-inline-end: 0;
    margin-inline-start: 0 !important;
    margin-bottom: 3rem;
  }
  .timeline-dot {
    left: 8px !important;
    right: auto !important;
  }
  [dir="rtl"] .timeline-dot {
    left: 8px !important;
    right: auto !important;
  }
}

/* Interactive Starlight Canvas Backdrop */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   PILLNAV STYLES
   ========================================================================== */
.pill-nav-container {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 1400px;
  padding-inline: 2rem;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-nav-container > * {
  pointer-events: auto;
}

@media (max-width: 768px) {
  .pill-nav-container {
    width: 100%;
    left: 0;
    transform: none;
    top: 0;
    max-width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
  }
}

.pill-nav {
  --nav-h: 52px;
  --logo: 38px;
  --pill-pad-x: 18px;
  --pill-gap: 4px;
  width: max-content;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: var(--base, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  box-shadow: 0 4px 20px -2px rgba(10, 75, 124, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 4px;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  justify-self: center;
}

.pill-nav-container.scrolled .pill-nav {
  box-shadow: 0 10px 30px -5px rgba(10, 75, 124, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  border-color: rgba(10, 75, 124, 0.15);
  transform: scale(0.98);
}

.pill-nav-container.scrolled .site-logo {
  box-shadow: 0 10px 30px -5px rgba(10, 75, 124, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
  border-color: rgba(10, 75, 124, 0.15);
  transform: none; /* Keep logo static, no scale down scroll effect */
}

@media (max-width: 768px) {
  .pill-nav {
    display: flex;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    gap: 0;
  }
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  border-radius: 9999px;
}

.site-logo {
  height: 68px; /* Enlarged for higher visibility */
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--base, rgba(255, 255, 255, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(10, 75, 124, 0.08), 0 2px 8px -1px rgba(0, 0, 0, 0.04);
  padding: 8px 24px; /* More breathing room */
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* No transforms transitioned */
  justify-self: start;
}

.site-logo img {
  height: 48px; /* Enlarged for maximum clarity */
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .site-logo {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    height: 48px;
    justify-self: auto;
  }
  
  .site-logo img {
    height: 42px;
  }

  .pill-nav-container.scrolled .site-logo {
    transform: none;
    box-shadow: none;
  }
}

.pill-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--pill-gap);
  margin: 0;
  padding: 0;
  height: 100%;
}

.pill-list > li {
  display: flex;
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--nav-h) - 8px);
  padding: 0 var(--pill-pad-x);
  background: transparent;
  color: var(--pill-text, #334155);
  text-decoration: none;
  border-radius: 9999px;
  box-sizing: border-box;
  font-weight: 700;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: var(--hover-bg, #0a4b7c);
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  display: inline-block;
  z-index: 2;
  height: 1.25em;
  overflow: hidden;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: block;
  will-change: transform;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hover-text, #fff);
  z-index: 3;
  display: block;
  opacity: 0;
  will-change: transform, opacity;
}

.pill.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--hover-bg, #0a4b7c);
  border-radius: 50%;
  z-index: 4;
}

.pill.is-active {
  color: var(--hover-bg, #0a4b7c);
}

.pill.is-active:hover {
  color: var(--hover-text, #fff);
}

.pill-nav-lang-btn {
  background: var(--pill-bg, rgba(10, 75, 124, 0.05));
  border: 1px solid rgba(226, 232, 240, 0.8);
  height: calc(var(--nav-h) - 8px);
  padding: 0 14px;
  border-radius: var(--radius-full, 9999px);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pill-text, #334155);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.pill-nav-lang-btn:hover {
  background: var(--hover-bg, #0a4b7c);
  color: var(--hover-text, #fff);
  border-color: var(--hover-bg, #0a4b7c);
}

.pill-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

.mobile-menu-button {
  width: calc(var(--nav-h) - 8px);
  height: calc(var(--nav-h) - 8px);
  border-radius: 50%;
  background: var(--hover-bg, #0a4b7c);
  border: none;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: flex;
  }
}

.hamburger-line {
  width: 14px;
  height: 2px;
  background: var(--hover-text, #fff);
  border-radius: 1px;
  transform-origin: center;
}

.mobile-menu-popover {
  position: absolute;
  top: 4.5rem;
  left: 1rem;
  right: 1rem;
  background: var(--base, #ffffff);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 998;
  opacity: 0;
  transform-origin: top center;
  visibility: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  overflow: hidden;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-popover .mobile-menu-link {
  display: block;
  padding: 10px 16px;
  color: var(--pill-text, #334155);
  background-color: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 9999px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-popover .mobile-menu-link:hover,
.mobile-menu-popover .mobile-menu-link.is-active {
  cursor: pointer;
  background-color: var(--pill-bg, rgba(10, 75, 124, 0.05));
  color: var(--hover-bg, #0a4b7c);
}

/* ==========================================================================
   BORDER GLOW CARD COMPONENT (PORTED FROM REACT BITS)
   ========================================================================== */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 20px;
  --glow-padding: 40px;
  --cone-spread: 25;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: grid;
  border: 1px solid rgba(226, 232, 240, 0.5); /* SMR default border color */
  background: var(--card-bg, #ffffff);
  overflow: visible;
  box-shadow: var(--shadow-md);
  transition: transform 0.1s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #ffffff) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity, 0.25) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: -2; /* stays behind everything including card border gradients */

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(206deg 85% 50% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(206deg 85% 50% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(206deg 85% 50% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(206deg 85% 50% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(206deg 85% 50% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(206deg 85% 50% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(206deg 85% 50% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(206deg 85% 50% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(206deg 85% 50% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(206deg 85% 50% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(206deg 85% 50% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(206deg 85% 50% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(206deg 85% 50% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  z-index: 2; /* card contents stay above glows */
}

/* ==========================================================================
   PREMIUM WEBSITE LOADING EXPERIENCE (SPLASH INTRO)
   ========================================================================== */
html.splash-active,
html.splash-active body {
  overflow: hidden !important;
  height: 100% !important;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: auto;
}

#splash-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#splash-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 161, 95, 0.18) 0%, transparent 70%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.splash-logo-wrapper {
  position: relative;
  width: 85%;
  max-width: 500px;
  height: auto;
  z-index: 3;
  transform-origin: center center;
  will-change: transform, opacity;
}

/* Splash states for layout elements on initial load */
html.splash-active #logo-nav {
  opacity: 0 !important;
  pointer-events: none;
}

html.splash-active .pill-nav {
  opacity: 0;
  transform: translateY(-10px);
}

html.splash-active .pill-nav-actions {
  opacity: 0;
  transform: translateY(-10px);
}

html.splash-active .hero-content {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  animation: none !important; /* Override standard CSS animation */
}

html.splash-active .hero-image-wrapper {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  animation: none !important; /* Override standard CSS animation */
}

html.splash-active .stat-bar {
  opacity: 0;
  transform: translateY(20px);
}

