/* Funding Hub pages. Same design tokens, navbar, buttons and footer as index.html. */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --za-green: #007a4d;
  --sa-green: #006c35;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: 'Noto Kufi Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif; }

/* Navigation */
.navbar { background: white; box-shadow: var(--shadow-sm); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-weight: 700; font-size: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.navbar-brand img { width: 40px; height: 40px; border-radius: 8px; }
.nav-link { color: var(--text-primary); font-weight: 500; padding: 0.5rem 1rem; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none; color: white; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: white; }
.btn-outline-custom {
  border: 2px solid var(--primary); color: var(--primary); background: transparent; padding: 0.75rem 1.5rem;
  border-radius: 50px; font-weight: 600; transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-outline-custom:hover { background: var(--primary); color: white; }

/* Hero */
.hero-section { padding: 4rem 0 3rem; background: linear-gradient(180deg, var(--light) 0%, white 100%); position: relative; overflow: hidden; }
.hero-section::before {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(139,92,246,0.05) 100%);
  z-index: 0; border-radius: 0 0 0 100%;
}
html[dir="rtl"] .hero-section::before { right: auto; left: 0; border-radius: 0 0 100% 0; }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
  color: white; padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 680px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.breadcrumb-lite { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.breadcrumb-lite a { color: var(--primary); text-decoration: none; }

/* Sections */
section { padding: 4rem 0; }
.section-alt { background: var(--light); }
.section-badge { display: inline-block; background: var(--primary); color: white; padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 720px; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Cards */
.hub-card, .info-card {
  background: white; border: 1px solid var(--border); border-radius: 16px; padding: 2rem; height: 100%;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.hub-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}
.hub-card.za::before { background: linear-gradient(90deg, var(--za-green), #ffb612, #de3831); }
.hub-card.sa::before { background: var(--sa-green); }
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: transparent; }
.hub-card .country { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.hub-card h3 { font-size: 1.4rem; font-weight: 700; margin: 0.5rem 0 0.75rem; }
.hub-card p { color: var(--text-secondary); }
.hub-card .facts { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.hub-card .facts li { display: flex; gap: 0.6rem; margin-bottom: 0.5rem; }
.hub-card .facts i { color: var(--success); margin-top: 0.3rem; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  margin-bottom: 1rem;
}
.info-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.info-card p, .info-card li { color: var(--text-secondary); }
.check-list, .cross-list { list-style: none; padding: 0; }
.check-list li, .cross-list li { display: flex; gap: 0.6rem; margin-bottom: 0.55rem; }
.check-list i { color: var(--success); margin-top: 0.3rem; }
.cross-list i { color: var(--danger); margin-top: 0.3rem; }

/* Key figures */
.figure-tile { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; text-align: center; height: 100%; }
.figure-tile .value { font-size: 1.8rem; font-weight: 800; color: var(--primary); display: block; }
.figure-tile .label { font-size: 0.9rem; color: var(--text-secondary); }

/* Process flow */
.flow { position: relative; }
.flow-step { display: flex; gap: 1.25rem; padding-bottom: 1.75rem; position: relative; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%); opacity: 0.35;
}
html[dir="rtl"] .flow-step:not(:last-child)::after { left: auto; right: 23px; }
.flow-num {
  flex: 0 0 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-md);
}
.flow-body h5 { font-weight: 700; margin-bottom: 0.3rem; }
.flow-body p { color: var(--text-secondary); margin: 0; }
.flow-body .tag { display: inline-block; font-size: 0.75rem; font-weight: 600; background: rgba(59,130,246,0.1); color: var(--primary-dark); border-radius: 50px; padding: 0.15rem 0.6rem; margin-top: 0.4rem; }

/* Contacts */
.contact-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; height: 100%; }
.contact-card h5 { font-weight: 700; margin-bottom: 0.75rem; }
.contact-line { display: flex; gap: 0.75rem; margin-bottom: 0.6rem; color: var(--text-secondary); }
.contact-line i { color: var(--primary); width: 18px; margin-top: 0.3rem; }
.contact-line a { color: var(--text-primary); text-decoration: none; font-weight: 500; }
.contact-line a:hover { color: var(--primary); }

/* Statement guide */
.guide-step { margin-bottom: 3.5rem; }
.guide-step .step-label { font-size: 0.85rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.guide-step h3 { font-size: 1.5rem; font-weight: 700; margin: 0.35rem 0 0.75rem; }
.guide-step p { color: var(--text-secondary); }
.shot { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-xl); background: white; }
.trust-tile { background: white; border-radius: 16px; padding: 1.5rem; border: 1px solid var(--border); height: 100%; }
.trust-tile i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem; }
.trust-tile h5 { font-weight: 700; font-size: 1.05rem; }
.trust-tile p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }

/* Notices */
.notice {
  border-radius: 14px; padding: 1rem 1.25rem; display: flex; gap: 0.75rem;
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); color: #92400e;
}
.notice i { margin-top: 0.25rem; }
.source-note { font-size: 0.85rem; color: var(--text-secondary); }
.source-note a { color: var(--primary); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 24px; padding: 3rem 2rem; color: white; text-align: center; box-shadow: var(--shadow-xl);
}
.cta-band h2 { font-weight: 800; margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; max-width: 640px; margin: 0 auto 1.5rem; }
.cta-band .btn-light-custom {
  background: white; color: var(--primary-dark); padding: 0.75rem 1.75rem; border-radius: 50px; font-weight: 700;
  text-decoration: none; display: inline-block; margin: 0.25rem;
}
.cta-band .btn-ghost-custom {
  border: 2px solid rgba(255,255,255,0.7); color: white; padding: 0.65rem 1.6rem; border-radius: 50px; font-weight: 600;
  text-decoration: none; display: inline-block; margin: 0.25rem;
}

/* Footer (as index.html) */
footer { background: linear-gradient(135deg, var(--dark) 0%, #0f172a 100%); color: white; padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo img { width: 40px; height: 40px; border-radius: 8px; }
.footer-logo span { font-size: 1.5rem; font-weight: 700; }
.footer-description { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.6; }
.footer-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1.5rem; color: white; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-light); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.7); }
.contact-item i { color: var(--primary-light); }
.contact-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.contact-item a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 3rem; padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.6); }
.language-selector { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 0.5rem 0.75rem; width: 100%; }
.language-selector option { color: var(--text-primary); }

@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .hero-section { padding: 3rem 0 2rem; }
  .cta-band { padding: 2.25rem 1.25rem; }
}
