:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #c8862a;
  --accent-light: #e8a84a;
  --light: #f7f4ef;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #666;
  --border: #e0d9ce;
  --section-alt: #f0ece4;
  --card-shadow: 0 4px 24px rgba(26,58,92,0.10);
  --card-hover-shadow: 0 12px 40px rgba(26,58,92,0.18);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); max-width: 100vw; }
body[dir="rtl"] { font-family: 'Cairo', sans-serif; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; }
body[dir="rtl"] h1, body[dir="rtl"] h2, body[dir="rtl"] h3 { font-family: 'Cairo', sans-serif; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero-content { position: relative; z-index: 2; max-width: 700px; width: 100%; flex: 1 1 100%; }
.nav-logo-text { min-width: 0; }
.nav-logo-text .site-name { max-width: 220px; word-break: break-word; }


/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(15,37,64,0.97); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,134,42,0.2);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1180px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 72px; border-radius: 6px; }
.nav-logo-text { color: white; }
.nav-logo-text strong { font-family: 'Playfair Display', serif; font-size: 1.6rem; display: block; }
.nav-logo-text .site-name { font-size: 1rem; color: rgba(255,255,255,0.9); margin-top: 4px; display: block; }
.nav-logo-text .site-tagline { font-size: 0.75rem; letter-spacing: 2px; opacity: 0.7; text-transform: uppercase; margin-top: 6px; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.5px; transition: color .2s; position: relative; padding-bottom: 3px; }
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:1px; background:var(--accent); transition:width .3s; }
body[dir="rtl"] .nav-links a::after { left: auto; right: 0; }
.nav-links a:hover { color: var(--accent-light); }
.nav-links a:hover::after { width: 100%; }
.nav-btn { background: var(--accent); color: white !important; padding: 8px 20px !important; border-radius: 4px; transition: background .2s !important; }
.nav-btn:hover { background: var(--accent-light) !important; }
.nav-btn::after { display: none !important; }
.lang-switch { background: rgba(255,255,255,0.1); color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; transition: all .2s; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; gap: 6px; }
.lang-switch:hover { background: rgba(255,255,255,0.15); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; transition: all .3s; }
.mobile-menu { display: none; flex-direction: column; background: var(--primary-dark); padding: 16px 24px; gap: 4px; }
.mobile-menu a { color: rgba(255,255,255,0.85); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 0.95rem; }
.mobile-menu.open { display: flex; }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #234f7a 100%);
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding-top: 80px;
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%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");
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(200,134,42,0.15); border: 1px solid rgba(200,134,42,0.3); color: var(--accent-light); padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
#hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); color: white; line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
#hero h1 em { color: var(--accent-light); font-style: normal; }
#hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.8; margin-bottom: 36px; max-width: 560px; }
.hero-stats { display: flex; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.stat-item { }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
body[dir="rtl"] .stat-item .num { font-family: 'Cairo', sans-serif; }
.stat-item .lbl { font-size: 0.78rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: white; padding: 14px 32px; border-radius: 4px; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; transition: all .25s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,134,42,0.35); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: white; padding: 14px 32px; border-radius: 4px; font-weight: 500; font-size: 0.9rem; transition: all .25s; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
.hero-scroll i { font-size: 1.2rem; }

/* ── SECTION COMMONS ── */
section { padding: 96px 0; }
.section-alt { background: var(--section-alt); }
.section-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.section-label::before { content:''; width:24px; height:2px; background:var(--accent); }
body[dir="rtl"] .section-label::before { order: 1; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--primary); line-height: 1.25; margin-bottom: 16px; }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; line-height: 1.8; max-width: 560px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-label { justify-content: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; border-radius: 8px; box-shadow: var(--card-shadow); }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--accent); color: white; padding: 20px 24px; border-radius: 8px; text-align: center; box-shadow: 0 8px 24px rgba(200,134,42,0.3); }
body[dir="rtl"] .about-badge { right: auto; left: -20px; }
.about-badge .num { font-family: 'Playfair Display',serif; font-size: 2.2rem; font-weight: 700; display: block; line-height: 1; }
body[dir="rtl"] .about-badge .num { font-family: 'Cairo',sans-serif; }
.about-badge .txt { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; margin-top: 4px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.value-chip { display: flex; align-items: center; gap: 8px; background: var(--light); border: 1px solid var(--border); padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--primary); }
.value-chip i { color: var(--accent); font-size: 0.85rem; }

/* ── IMPACT NUMBERS ── */
#impact { background: var(--primary); color: white; padding: 72px 0; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px; }
.impact-card { text-align: center; }
.impact-card .ic-num { font-family: 'Playfair Display',serif; font-size: 3rem; font-weight: 700; color: var(--accent-light); line-height: 1; }
body[dir="rtl"] .impact-card .ic-num { font-family: 'Cairo',serif; }
.impact-card .ic-label { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin-top: 8px; line-height: 1.5; }

/* ── PILLARS / THEMATIC AREAS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 36px 28px; transition: all .3s; position: relative; overflow: hidden; }
.pillar-card::before { content:''; position:absolute; top:0; left:0; width:4px; height:100%; background:var(--accent); opacity:0; transition:opacity .3s; }
body[dir="rtl"] .pillar-card::before { left: auto; right: 0; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); border-color: var(--accent); }
.pillar-card:hover::before { opacity: 1; }
.pillar-icon { width: 56px; height: 56px; background: var(--light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); font-size: 1.4rem; }
.pillar-card h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 12px; }
.pillar-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.project-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.project-thumb { height: 200px; background: var(--section-alt); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-thumb img { transform: scale(1.06); }
.project-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary) 0%, #234f7a 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.project-thumb-placeholder i { font-size: 2.5rem; color: rgba(255,255,255,0.3); }
.project-thumb-placeholder span { color: rgba(255,255,255,0.5); font-size: 0.8rem; letter-spacing: 1px; }
.project-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; }
body[dir="rtl"] .project-tag { left: auto; right: 12px; }
.project-body { padding: 24px; }
.project-partner { font-size: 0.78rem; color: var(--accent); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.project-body h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.project-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.team-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); text-align: center; transition: all .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.team-photo { height: 220px; overflow: hidden; background: var(--section-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-info { padding: 20px 16px; }
.team-info h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
body[dir="rtl"] .team-info h4 { font-family: 'Cairo',sans-serif; }
.team-info span { font-size: 0.8rem; color: var(--accent); font-weight: 500; }

/* ── NEWS / EVENTS ── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.news-card { background: white; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.news-card:hover { box-shadow: var(--card-hover-shadow); transform: translateY(-3px); }
.news-thumb { height: 180px; background: var(--section-alt); overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #1a3a5c 0%, #2d5f8a 100%); display: flex; align-items: center; justify-content: center; }
.news-thumb-placeholder i { font-size: 2.5rem; color: rgba(255,255,255,0.2); }
.news-body { padding: 22px; }
.news-date { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; font-family: 'DM Mono', monospace; }
.news-body h3 { font-size: 1.05rem; color: var(--primary); margin-bottom: 10px; line-height: 1.4; }
.news-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

/* ── PARTNERS ── */
.partners-text { max-width: 700px; margin: 0 auto 48px; text-align: center; color: var(--text-light); line-height: 1.8; }
.partners-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.partner-chip { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 14px 28px; font-weight: 600; font-size: 0.9rem; color: var(--primary); transition: all .25s; }
.partner-chip:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--card-shadow); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.testimonial-card { background: white; border-radius: 10px; padding: 32px; border: 1px solid var(--border); position: relative; }
.testimonial-card::before { content:'\201C'; font-family: 'Playfair Display',serif; font-size: 5rem; color: var(--accent); opacity: 0.15; position: absolute; top: 12px; left: 20px; line-height: 1; }
body[dir="rtl"] .testimonial-card::before { left: auto; right: 20px; }
.testimonial-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.8; font-style: italic; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-family: 'Playfair Display',serif; font-size: 1rem; flex-shrink: 0; }
body[dir="rtl"] .author-avatar { font-family: 'Cairo',serif; }
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.author-role { font-size: 0.78rem; color: var(--text-light); }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info { }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.contact-icon { width: 44px; height: 44px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent-light); font-size: 1rem; flex-shrink: 0; }
.contact-detail h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.contact-detail p { color: var(--primary); font-weight: 500; }
.contact-form { background: var(--light); border-radius: 10px; padding: 36px; }
.contact-form h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); background: white; transition: border-color .2s; outline: none; }
body[dir="rtl"] .form-group input, body[dir="rtl"] .form-group textarea, body[dir="rtl"] .form-group select { font-family: 'Cairo', sans-serif; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 14px 32px; border-radius: 6px; font-family: 'DM Sans',sans-serif; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all .25s; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
body[dir="rtl"] .btn-submit { font-family: 'Cairo',sans-serif; }
.btn-submit:hover { background: var(--accent); transform: translateY(-1px); }
#form-success {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 420px;
  width: calc(100% - 40px);
  background: rgba(40, 167, 69, 0.95);
  color: white;
  padding: 16px 20px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  z-index: 9999;
}
#form-success.show {
  display: block;
  animation: formToastIn .35s ease;
}
@keyframes formToastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── FOOTER ── */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 52px; border-radius: 6px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 { color: white; font-family: 'DM Sans',sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 16px; }
body[dir="rtl"] .footer-col h4 { font-family: 'Cairo',sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; transition: all .2s; }
.social-links a:hover { background: var(--accent); border-color: var(--accent); color: white; }
.dev-credit { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.dev-credit a { color: var(--accent-light); transition: color .2s; }
.dev-credit a:hover { color: var(--accent); text-decoration: underline; }

/* ── RESPONSIVE ── */
@media(max-width: 900px) {
  .nav-inner { padding: 12px 16px; flex-wrap: nowrap; gap: 12px; justify-content: space-between; align-items: center; }
  .nav-logo { flex: 1 1 auto; min-width: 0; }
  .nav-logo-text { min-width: 0; overflow-wrap: anywhere; }
  .nav-links { display: none; }
  .hamburger { display: flex; flex: 0 0 auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { order: -1; }
  .about-badge { bottom: 12px; right: 12px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-logo img { height: 64px; }
  .nav-logo-text strong { font-size: 1.4rem; }
}
@media(max-width: 600px) {
  section { padding: 64px 0; }
  .hero-stats { gap: 24px; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  body[dir="rtl"] .about-badge { left: 12px; }
  .hero-content { max-width: 100%; padding-bottom: 64px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .hero-eyebrow { font-size: 0.75rem; gap: 6px; padding: 6px 14px; }
  .hero-scroll { bottom: 18px; }
  .container { padding: 0 16px; }
  .nav-logo img { height: 56px; }
  .nav-logo-text strong { font-size: 1.2rem; }
  .nav-logo-text .site-name { font-size: 0.95rem; }
  #navbar, .nav-inner, .container { width: 100%; }
}

/* ── ANIMATIONS ── */
.fade-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
