/* ═══════════════════════════════════════════════════════════════════════════
   QuranComputing Platform — Global Design System
   Brand: #0D7377 (teal) · #14213D (navy) · #32E0C4 (accent) · #C9A84C (gold)
   Fonts: Amiri + Noto Sans Arabic (AR) · Inter (EN)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Google Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --qc-teal:          #0D7377;
  --qc-teal-light:    #1a9499;
  --qc-teal-dark:     #095c60;
  --qc-teal-muted:    rgba(13,115,119,0.12);
  --qc-navy:          #14213D;
  --qc-navy-light:    #1e3053;
  --qc-navy-deep:     #0b1628;
  --qc-accent:        #32E0C4;
  --qc-accent-dark:   #22b8a0;
  --qc-gold:          #C9A84C;
  --qc-gold-light:    #e2c06a;
  --qc-gold-dark:     #a88530;

  /* Semantic Colors */
  --color-success:    #10b981;
  --color-danger:     #ef4444;
  --color-warning:    #f59e0b;
  --color-info:       #3b82f6;

  /* Neutrals */
  --color-bg:         #f8fafc;
  --color-bg-card:    #ffffff;
  --color-border:     #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text:       #1a202c;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.12);
  --shadow-teal:0 8px 32px rgba(13,115,119,.25);

  /* Border Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;

  /* Typography Scale */
  --font-xs:    0.75rem;
  --font-sm:    0.875rem;
  --font-base:  1rem;
  --font-lg:    1.125rem;
  --font-xl:    1.25rem;
  --font-2xl:   1.5rem;
  --font-3xl:   1.875rem;
  --font-4xl:   2.25rem;
  --font-5xl:   3rem;

  /* Sidebar */
  --sidebar-width: 260px;
  --topbar-height: 64px;
}

/* ─── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* LTR (English) */
html[lang="en"] {
  direction: ltr;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RTL (Arabic) */
html[lang="ar"] {
  direction: rtl;
  font-family: 'Noto Sans Arabic', 'Arial', sans-serif;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Arabic Headings (Amiri) ─────────────────────────────────────────────── */
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] .display-heading, html[lang="ar"] .hero-title {
  font-family: 'Amiri', 'Georgia', serif;
  line-height: 1.5;
}

/* ─── Links ──────────────────────────────────────────────────────────────── */
a { color: var(--qc-teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--qc-teal-light); }

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--qc-navy); }
.text-muted  { color: var(--color-text-muted) !important; }
.text-teal   { color: var(--qc-teal) !important; }
.text-gold   { color: var(--qc-gold) !important; }
.text-navy   { color: var(--qc-navy) !important; }
.text-accent { color: var(--qc-accent) !important; }

/* ─── Hero / Dark-Background Heading Contrast Fix ─────────────────────────────
   The global h1-h6 rule sets color: navy, which overrides inherited color:white
   from dark gradient hero sections. This block explicitly resets heading colors
   to white inside every dark hero/gradient section across ALL pages.
   ────────────────────────────────────────────────────────────────────────── */

/* Main QC hero (homepage, members list, etc.) */
.qc-hero h1, .qc-hero h2, .qc-hero h3,
.qc-hero h4, .qc-hero h5, .qc-hero h6 {
  color: #ffffff !important;
}

/* Project opportunity detail hero */
.opp-hero-detail h1, .opp-hero-detail h2,
.opp-hero-detail h3, .opp-hero-detail h4,
.opp-hero-detail h5, .opp-hero-detail h6 {
  color: #ffffff !important;
}

/* Topics listing hero */
.topics-hero h1, .topics-hero h2,
.topics-hero h3, .topics-hero h4,
.topics-hero h5, .topics-hero h6 {
  color: #ffffff !important;
}

/* Topic detail hero */
.topic-hero h1, .topic-hero h2,
.topic-hero h3, .topic-hero h4,
.topic-hero h5, .topic-hero h6 {
  color: #ffffff !important;
}

/* Certificate verification hero */
.verify-hero h1, .verify-hero h2,
.verify-hero h3, .verify-hero h4,
.verify-hero h5, .verify-hero h6 {
  color: #ffffff !important;
}

/* Member profile public hero */
.profile-hero h1, .profile-hero h2,
.profile-hero h3, .profile-hero h4,
.profile-hero h5, .profile-hero h6 {
  color: #ffffff !important;
}

/* Projects list / discovery hero */
.projects-hero h1, .projects-hero h2,
.projects-hero h3, .projects-hero h4,
.projects-hero h5, .projects-hero h6 {
  color: #ffffff !important;
}

/* Projects opportunity discovery hero (.opp-hero) */
.opp-hero h1, .opp-hero h2, .opp-hero h3,
.opp-hero h4, .opp-hero h5, .opp-hero h6 {
  color: #ffffff !important;
}

/* Catch-all: any inline dark gradient section with color:white */
/* These use inline styles — we target them by a utility class we'll add */
.dark-hero h1, .dark-hero h2, .dark-hero h3,
.dark-hero h4, .dark-hero h5, .dark-hero h6,
.dark-section h1, .dark-section h2, .dark-section h3,
.dark-section h4, .dark-section h5, .dark-section h6 {
  color: #ffffff !important;
}

/* Bootstrap display-* classes inside dark sections */
.opp-hero-detail .display-1, .opp-hero-detail .display-2,
.opp-hero-detail .display-3, .opp-hero-detail .display-4,
.opp-hero-detail .display-5, .opp-hero-detail .display-6,
.topics-hero .display-1, .topics-hero .display-2,
.topics-hero .display-3, .topics-hero .display-4,
.topics-hero .display-5, .topics-hero .display-6,
.topic-hero .display-1, .topic-hero .display-2,
.topic-hero .display-3, .topic-hero .display-4,
.topic-hero .display-5, .topic-hero .display-6,
.verify-hero .display-1, .verify-hero .display-2,
.verify-hero .display-3, .verify-hero .display-4,
.verify-hero .display-5, .verify-hero .display-6,
.profile-hero .display-1, .profile-hero .display-5,
.projects-hero .display-5, .qc-hero .display-5,
.dark-hero .display-1, .dark-hero .display-2,
.dark-hero .display-3, .dark-hero .display-4,
.dark-hero .display-5, .dark-hero .display-6 {
  color: #ffffff !important;
}

/* fw-bold text-white enforcement for any section that sets color:#fff inline */
/* This ensures strong, p, span inside hero sections don't inherit navy */
.opp-hero-detail *, .topics-hero *, .topic-hero *,
.verify-hero *, .profile-hero *, .projects-hero *,
.qc-hero .hero-title, .qc-hero .hero-subtitle {
  /* Only reset heading elements, not all children */
}
/* Targeted heading fix for the above containers */
.opp-hero-detail h1 { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.opp-hero h1        { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.opp-hero h2        { color: #ffffff !important; }
.topics-hero h1     { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.topic-hero h1      { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.verify-hero h1     { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.profile-hero h1    { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.projects-hero h1   { color: #ffffff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.35); }


/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-border-light); }
::-webkit-scrollbar-thumb { background: var(--qc-teal); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--qc-teal-light); }

/* ══════════════════════════════════════════════════════════════════════════
   PUBLIC HEADER / NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */
.qc-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(20,33,61,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
  padding: 0;
  min-height: 70px;
}

.qc-navbar .navbar-brand { display: flex; align-items: center; gap: 12px; }
.qc-navbar .brand-logo { width: 44px; height: 44px; }
.qc-navbar .brand-name {
  display: flex; flex-direction: column;
  line-height: 1.2;
  max-width: 320px;
  white-space: normal;
}
.qc-navbar .brand-name-main {
  font-size: var(--font-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
html[lang="ar"] .qc-navbar .brand-name-main {
  font-family: 'Amiri', serif;
  font-size: var(--font-lg);
}
.qc-navbar .brand-name-sub {
  font-size: 10px;
  color: var(--qc-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.qc-navbar .nav-link {
  color: rgba(255,255,255,.8) !important;
  font-weight: 500;
  font-size: var(--font-sm);
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}
.qc-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--qc-accent);
  border-radius: 2px;
  transition: all var(--transition);
}
.qc-navbar .nav-link:hover,
.qc-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.06);
}
.qc-navbar .nav-link:hover::after,
.qc-navbar .nav-link.active::after {
  left: 14px; right: 14px;
}

.qc-navbar .btn-login {
  background: var(--qc-teal);
  color: #fff !important;
  border-radius: var(--radius-full);
  padding: 8px 22px !important;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(13,115,119,.3);
}
.qc-navbar .btn-login:hover {
  background: var(--qc-teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,115,119,.4);
}
.qc-navbar .btn-login::after { display: none; }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  color: rgba(255,255,255,.8);
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.lang-toggle:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.qc-hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(50,224,196,.18) 0%, transparent 60%),
    linear-gradient(160deg, var(--qc-navy-deep) 0%, var(--qc-navy) 50%, var(--qc-teal-dark) 100%);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Arabesque / Geometric watermark */
.qc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13,115,119,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,.08) 0%, transparent 40%);
  pointer-events: none;
}
.qc-hero .hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.qc-hero .hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
}
html[lang="ar"] .qc-hero .hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
.qc-hero .hero-title .text-gradient {
  background: linear-gradient(135deg, var(--qc-accent), var(--qc-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.qc-hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}
.hero-stat-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.hero-stat-card .stat-number {
  font-size: 2rem; font-weight: 800; color: var(--qc-accent);
  display: block;
}
.hero-stat-card .stat-label {
  font-size: var(--font-sm); color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* Floating Quran verse badge */
.quran-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  margin-bottom: 28px;
}
.quran-badge .badge-icon { font-size: 1.2rem; }
.quran-badge .badge-text {
  font-family: 'Amiri', serif;
  color: var(--qc-gold-light);
  font-size: var(--font-lg);
}
html[lang="en"] .quran-badge .badge-text {
  font-family: 'Amiri', serif;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION STYLES
   ══════════════════════════════════════════════════════════════════════════ */
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--font-sm); font-weight: 700;
  color: var(--qc-teal); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-label::before, .section-label::after {
  content: ''; flex: 1; height: 1px; width: 30px; background: var(--qc-teal); opacity: .4;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--qc-navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
html[lang="ar"] .section-title { font-family: 'Amiri', serif; }
.section-subtitle {
  color: var(--color-text-muted); font-size: var(--font-lg);
  max-width: 600px; line-height: 1.7;
}

.section-dark {
  background: var(--qc-navy);
  color: rgba(255,255,255,.9);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,.65); }

.section-teal {
  background: var(--qc-teal);
  color: #fff;
}

.section-light { background: #fff; }

/* Divider */
.ornament-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 16px 0;
}
.ornament-divider::before, .ornament-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--qc-teal), transparent);
}
.ornament-divider span {
  color: var(--qc-gold);
  font-family: 'Amiri', serif;
  font-size: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.qc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}
.qc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(13,115,119,.2);
}
.qc-card-body { padding: 24px; }
.qc-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: var(--font-base);
  display: flex; align-items: center; justify-content: space-between;
}

/* Stat Card */
.stat-card {
  background: linear-gradient(135deg, var(--color-bg-card), #f8fafc);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 20px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; /* switches in RTL */
  width: 4px; height: 100%;
  background: var(--card-accent, var(--qc-teal));
}
html[lang="ar"] .stat-card::before { left: auto; right: 0; }
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card .stat-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--card-accent-bg, var(--qc-teal-muted));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
  color: var(--card-accent, var(--qc-teal));
}
.stat-card .stat-value {
  font-size: 2rem; font-weight: 800; color: var(--qc-navy); line-height: 1;
}
.stat-card .stat-label {
  font-size: var(--font-sm); color: var(--color-text-muted); font-weight: 500; margin-top: 4px;
}

/* Glass Card */
.glass-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
  transition: all var(--transition);
}
.glass-card:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

/* Project / Member Card */
.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card .card-cover {
  height: 160px;
  background: linear-gradient(135deg, var(--qc-teal-dark), var(--qc-navy));
  position: relative; overflow: hidden;
}
.project-card .card-cover .cover-pattern {
  position: absolute; inset: 0;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='1'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.project-card .card-body { padding: 20px; }
.project-card .card-title {
  font-size: var(--font-base); font-weight: 700;
  color: var(--qc-navy); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.project-card .card-desc {
  font-size: var(--font-sm); color: var(--color-text-muted);
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn-qc {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--font-sm);
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-qc-primary {
  background: var(--qc-teal);
  color: #fff;
  box-shadow: 0 4px 15px rgba(13,115,119,.3);
}
.btn-qc-primary:hover {
  background: var(--qc-teal-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(13,115,119,.4);
  text-decoration: none;
}
.btn-qc-secondary {
  background: transparent;
  color: var(--qc-teal);
  border: 2px solid var(--qc-teal);
}
.btn-qc-secondary:hover {
  background: var(--qc-teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn-qc-dark {
  background: var(--qc-navy);
  color: #fff;
  box-shadow: 0 4px 15px rgba(20,33,61,.25);
}
.btn-qc-dark:hover {
  background: var(--qc-navy-light);
  color: #fff;
  transform: translateY(-2px);
}
.btn-qc-gold {
  background: var(--qc-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(201,168,76,.3);
}
.btn-qc-gold:hover {
  background: var(--qc-gold-light);
  color: #fff;
  transform: translateY(-2px);
}
.btn-qc-white {
  background: #fff;
  color: var(--qc-teal);
  box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.btn-qc-white:hover {
  background: var(--qc-teal);
  color: #fff;
  transform: translateY(-2px);
}
.btn-qc-sm {
  padding: 7px 18px;
  font-size: var(--font-xs);
}
.btn-qc-lg {
  padding: 16px 40px;
  font-size: var(--font-base);
}

/* Icon Button */
.btn-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: none; cursor: pointer; transition: all var(--transition);
  font-size: 0.9rem;
}
.btn-icon-teal { background: var(--qc-teal-muted); color: var(--qc-teal); }
.btn-icon-teal:hover { background: var(--qc-teal); color: #fff; }
.btn-icon-danger { background: rgba(239,68,68,.1); color: var(--color-danger); }
.btn-icon-danger:hover { background: var(--color-danger); color: #fff; }
.btn-icon-warning { background: rgba(245,158,11,.1); color: var(--color-warning); }
.btn-icon-warning:hover { background: var(--color-warning); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   BADGES / STATUS
   ══════════════════════════════════════════════════════════════════════════ */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: var(--font-xs); font-weight: 600;
}
.badge-status::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.status-active    { background: rgba(16,185,129,.12); color: #059669; }
.status-pending   { background: rgba(245,158,11,.12); color: #d97706; }
.status-draft     { background: rgba(148,163,184,.15); color: #64748b; }
.status-rejected  { background: rgba(239,68,68,.12); color: #dc2626; }
.status-completed { background: rgba(59,130,246,.12); color: #2563eb; }
.status-cancelled { background: rgba(100,116,139,.12); color: #475569; }
.status-on-hold   { background: rgba(168,85,247,.12); color: #7c3aed; }

/* Priority Badges */
.priority-low    { background: rgba(148,163,184,.15); color: #64748b; }
.priority-medium { background: rgba(59,130,246,.12); color: #2563eb; }
.priority-high   { background: rgba(245,158,11,.12); color: #d97706; }
.priority-urgent { background: rgba(239,68,68,.12); color: #dc2626; }

/* ══════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.qc-form-control {
  width: 100%;
  padding: 11px 16px;
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  color: var(--color-text);
  transition: all var(--transition);
  font-family: inherit;
}
html[lang="ar"] .qc-form-control { text-align: right; }
.qc-form-control:focus {
  outline: none;
  border-color: var(--qc-teal);
  box-shadow: 0 0 0 3px var(--qc-teal-muted);
}
.qc-form-control::placeholder { color: var(--color-text-light); }
.qc-form-control.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.qc-form-label {
  display: block;
  font-size: var(--font-sm); font-weight: 600;
  color: var(--qc-navy); margin-bottom: 6px;
}
.form-text { font-size: var(--font-xs); color: var(--color-text-muted); margin-top: 4px; }
.invalid-feedback { font-size: var(--font-xs); color: var(--color-danger); margin-top: 4px; }

/* Form sections in auth pages */
.form-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
}
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(13,115,119,.12) 0%, transparent 60%),
    linear-gradient(160deg, var(--qc-navy-deep), var(--qc-navy));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
}
.auth-logo {
  text-align: center; margin-bottom: 32px;
}
.auth-title {
  font-size: var(--font-2xl); font-weight: 800;
  color: #ffffff; margin-bottom: 8px;
}
html[lang="ar"] .auth-title { font-family: 'Amiri', serif; }
.auth-subtitle { font-size: var(--font-sm); color: rgba(255, 255, 255, 0.7); }

/* ══════════════════════════════════════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════════════════════════════════════ */
.qc-table-wrap {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qc-table {
  width: 100%; border-collapse: collapse; font-size: var(--font-sm);
}
.qc-table th {
  background: var(--color-bg); color: var(--color-text-muted);
  font-weight: 600; font-size: var(--font-xs); text-transform: uppercase;
  letter-spacing: 0.05em; padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  text-align: start;
}
.qc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
  text-align: start;
}
.qc-table tr:last-child td { border-bottom: none; }
.qc-table tr:hover td { background: var(--color-bg); }
.qc-table .user-cell { display: flex; align-items: center; gap: 10px; }
.qc-table .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.qc-table .avatar-placeholder {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--qc-teal-muted);
  color: var(--qc-teal); font-weight: 700; font-size: var(--font-sm);
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROGRESS / KANBAN
   ══════════════════════════════════════════════════════════════════════════ */
.progress-ring {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
}
.progress-ring-text {
  position: absolute;
  font-size: var(--font-xs); font-weight: 700;
  color: var(--qc-teal);
}

.qc-progress {
  height: 8px; border-radius: var(--radius-full);
  background: var(--color-border); overflow: hidden;
}
.qc-progress-bar {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--qc-teal), var(--qc-accent));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* Kanban Board */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.kanban-col {
  min-width: 280px; max-width: 320px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px; flex-shrink: 0;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--kanban-color, var(--qc-teal));
  font-weight: 700; font-size: var(--font-sm);
}
.kanban-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 10px;
  cursor: grab; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.kanban-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.qc-footer {
  background: var(--qc-navy-deep);
  color: rgba(255,255,255,.7);
  padding: 60px 0 24px;
}
.qc-footer .footer-brand .brand-title {
  font-size: var(--font-xl); font-weight: 800; color: #fff;
  margin-bottom: 6px;
}
html[lang="ar"] .qc-footer .footer-brand .brand-title {
  font-family: 'Amiri', serif; font-size: var(--font-2xl);
}
.qc-footer .footer-brand .brand-subtitle {
  color: var(--qc-accent); font-size: var(--font-xs);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600;
}
.qc-footer .footer-section-title {
  font-size: var(--font-sm); font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.qc-footer .footer-links { list-style: none; padding: 0; }
.qc-footer .footer-links li { margin-bottom: 10px; }
.qc-footer .footer-links a {
  color: rgba(255,255,255,.6); font-size: var(--font-sm);
  transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.qc-footer .footer-links a:hover {
  color: var(--qc-accent); transform: translateX(4px);
}
html[lang="ar"] .qc-footer .footer-links a:hover {
  transform: translateX(-4px);
}
.qc-footer .footer-divider {
  border-color: rgba(255,255,255,.06); margin: 40px 0 20px;
}
.qc-footer .footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.qc-footer .footer-bottom p { font-size: var(--font-xs); color: rgba(255,255,255,.4); margin: 0; }

/* Social Icons */
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--qc-teal); border-color: var(--qc-teal);
  color: #fff; transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════════════════
   NOTIFICATION BELL
   ══════════════════════════════════════════════════════════════════════════ */
.notif-bell {
  position: relative; cursor: pointer;
  color: rgba(255,255,255,.7);
  font-size: 1.2rem;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.notif-bell:hover { background: rgba(255,255,255,.08); color: #fff; }
.notif-badge {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-danger);
  color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--qc-navy);
  animation: pulse-badge 2s infinite;
}
html[lang="ar"] .notif-badge { right: auto; left: 3px; }
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════════════════ */
.toast-container-qc {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
html[lang="ar"] .toast-container-qc { right: auto; left: 24px; }
.toast-qc {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  min-width: 280px; max-width: 400px;
  animation: slideInToast 0.3s ease;
}
html[lang="ar"] .toast-qc { animation-name: slideInToastRTL; }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInToastRTL { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-qc .toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-qc .toast-msg { font-size: var(--font-sm); font-weight: 500; flex: 1; }
.toast-qc .toast-close { cursor: pointer; color: var(--color-text-muted); padding: 0 4px; }
.toast-qc.toast-success { border-left: 3px solid var(--color-success); }
.toast-qc.toast-error   { border-left: 3px solid var(--color-danger); }
.toast-qc.toast-warning { border-left: 3px solid var(--color-warning); }
.toast-qc.toast-info    { border-left: 3px solid var(--color-info); }
html[lang="ar"] .toast-qc.toast-success { border-left: none; border-right: 3px solid var(--color-success); }
html[lang="ar"] .toast-qc.toast-error   { border-left: none; border-right: 3px solid var(--color-danger); }
html[lang="ar"] .toast-qc.toast-warning { border-left: none; border-right: 3px solid var(--color-warning); }
html[lang="ar"] .toast-qc.toast-info    { border-left: none; border-right: 3px solid var(--color-info); }

/* ══════════════════════════════════════════════════════════════════════════
   MEMBER CARD
   ══════════════════════════════════════════════════════════════════════════ */
.member-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.member-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(135deg, var(--qc-teal-dark), var(--qc-navy));
}
.member-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.member-avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
  position: relative; z-index: 1; margin-bottom: 16px;
}
.member-avatar-placeholder {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--qc-teal); color: #fff;
  font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff; box-shadow: var(--shadow-md);
  position: relative; z-index: 1; margin: 0 auto 16px;
}
.member-name { font-size: var(--font-base); font-weight: 700; color: var(--qc-navy); margin-bottom: 4px; }
.member-title { font-size: var(--font-xs); color: var(--qc-teal); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.qc-pagination {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.qc-pagination a, .qc-pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: var(--font-sm); font-weight: 500;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  text-decoration: none; transition: all var(--transition);
}
.qc-pagination a:hover { border-color: var(--qc-teal); color: var(--qc-teal); }
.qc-pagination .active { background: var(--qc-teal); border-color: var(--qc-teal); color: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTION: MISSION / ABOUT
   ══════════════════════════════════════════════════════════════════════════ */
.mission-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  position: relative; overflow: hidden;
}
.mission-card-teal {
  background: linear-gradient(135deg, var(--qc-teal), var(--qc-teal-light));
  color: #fff;
}
.mission-card-navy {
  background: var(--qc-navy);
  color: #fff;
}
.mission-card-light {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--qc-navy);
}
.mission-card .mission-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.mission-card-light .mission-icon {
  background: var(--qc-teal-muted); color: var(--qc-teal);
}
.mission-card .mission-title {
  font-size: var(--font-xl); font-weight: 700; margin-bottom: 12px;
}
html[lang="ar"] .mission-card .mission-title { font-family: 'Amiri', serif; }
.mission-card-teal .mission-title,
.mission-card-navy .mission-title { color: #fff; }
.mission-card .mission-text {
  font-size: var(--font-sm); line-height: 1.8; opacity: .9;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION: PROJECTS (PUBLIC LIST)
   ══════════════════════════════════════════════════════════════════════════ */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--qc-teal-muted); color: var(--qc-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item .contact-label {
  font-size: var(--font-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--qc-teal); margin-bottom: 4px;
}
.contact-info-item .contact-value {
  font-size: var(--font-sm); color: var(--qc-navy);
}

/* ══════════════════════════════════════════════════════════════════════════
   VOLUNTEER QUESTIONNAIRE STEPS
   ══════════════════════════════════════════════════════════════════════════ */
.step-indicator {
  display: flex; align-items: center; gap: 0; margin-bottom: 40px;
}
.step-item {
  flex: 1; text-align: center; position: relative;
}
.step-item::after {
  content: '';
  position: absolute; top: 20px; left: 50%; right: -50%;
  height: 2px; background: var(--color-border);
  z-index: 0;
}
.step-item:last-child::after { display: none; }
.step-item.completed::after { background: var(--qc-teal); }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-border); color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--font-sm);
  margin: 0 auto 8px; position: relative; z-index: 1;
  transition: all var(--transition);
}
.step-item.active .step-circle {
  background: var(--qc-teal); color: #fff;
  box-shadow: 0 0 0 4px var(--qc-teal-muted);
}
.step-item.completed .step-circle { background: var(--color-success); color: #fff; }
.step-label { font-size: var(--font-xs); color: var(--color-text-muted); font-weight: 500; }
.step-item.active .step-label { color: var(--qc-teal); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.qc-timeline { position: relative; padding-left: 32px; }
html[lang="ar"] .qc-timeline { padding-left: 0; padding-right: 32px; }
.qc-timeline::before {
  content: ''; position: absolute;
  top: 0; bottom: 0; left: 12px; width: 2px;
  background: var(--color-border);
}
html[lang="ar"] .qc-timeline::before { left: auto; right: 12px; }
.timeline-item {
  position: relative; padding-bottom: 24px;
}
.timeline-dot {
  position: absolute; left: -26px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--qc-teal); border: 2px solid var(--color-bg-card);
  box-shadow: 0 0 0 3px var(--qc-teal-muted);
}
html[lang="ar"] .timeline-dot { left: auto; right: -26px; }
.timeline-time {
  font-size: var(--font-xs); color: var(--color-text-muted);
  font-weight: 500; margin-bottom: 4px;
}
.timeline-content { font-size: var(--font-sm); }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .qc-hero { padding: 80px 0 40px; min-height: auto; }
  .qc-hero .hero-title { font-size: 2rem; }
  .section-pad { padding: 48px 0; }
  .form-card { padding: 24px; }
  .kanban-board { flex-wrap: nowrap; }
}

/* ══════════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════════════ */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hover-lift { transition: transform var(--transition); }
.hover-lift:hover { transform: translateY(-4px); }
.bg-teal-muted { background: var(--qc-teal-muted); }
.bg-navy-deep { background: var(--qc-navy-deep); }
.rounded-qc { border-radius: var(--radius-lg); }
.shadow-qc { box-shadow: var(--shadow-md); }
.border-teal { border-color: var(--qc-teal) !important; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.gap-4 { gap: 24px; }
.w-fit { width: fit-content; }
.text-truncate-2 { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Animation helpers */
.fade-in { animation: fadeIn 0.4s ease both; }
.slide-up { animation: slideUp 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Print */
@media print {
  .qc-navbar, .qc-footer, .sidebar-wrap, .no-print { display: none !important; }
}
