:root {
    --navy: #1B3A6B;
    --navy-deep: #0F2347;
    --teal: #1A7A6E;
    --teal-light: #22A090;
    --gold: #C9973A;
    --light: #E8F4F2;
    --off-white: #F7F8FA;
    --white: #ffffff;
    --text: #2C2C2C;
    --text-muted: #6B7280;
    --border: #E2E8F0;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: var(--text);
    background: var(--white);
    direction: rtl;
    overflow-x: hidden;
  }

  /* ── PAGE SYSTEM ── */
  .page { display: none; }
  .page.active { display: block; }

  /* ── NAV ── */
  nav {
    background: var(--navy-deep);
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
  }

  .nav-logo-img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 4px;
    display: block;
    flex-shrink: 0;
  }

  .logo-text { line-height: 1.1; }
  .logo-text .name { font-size: 18px; font-weight: 800; color: var(--white); letter-spacing: 0.5px; font-family: 'Cairo', sans-serif; }
  .logo-text .tagline { font-size: 10px; color: var(--teal-light); letter-spacing: 1px; }

  .nav-links { display: flex; gap: 6px; }
  .nav-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    border: none;
    background: none;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(26,122,110,0.3);
  }
  .nav-link.active {
    color: var(--teal-light);
    background: rgba(26,122,110,0.2);
  }

  /* ── HERO ── */
  .hero {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, #1E4A7A 100%);
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 80% 20%, rgba(26,122,110,0.15) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 20% 80%, rgba(201,151,58,0.08) 0%, transparent 50%);
  }

  .hero-badge {
    display: inline-block;
    background: rgba(26,122,110,0.2);
    border: 1px solid rgba(26,122,110,0.4);
    color: var(--teal-light);
    font-size: 12px;
    letter-spacing: 3px;
    padding: 8px 20px;
    border-radius: 20px;
    margin-bottom: 28px;
    font-family: 'Cairo', sans-serif;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s ease both;
  }

  .hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    font-family: 'Cairo', sans-serif;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  .hero h1 span { color: var(--teal-light); }

  .hero-sub {
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s 0.15s ease both;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
  }

  .hero-tagline {
    font-size: clamp(16px, 2.5vw, 24px);
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s 0.2s ease both;
    font-weight: 300;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 16px 40px;
  }

  .hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s 0.3s ease both;
    flex-wrap: wrap;
  }

  .hero-stat { text-align: center; }
  .hero-stat .num { font-size: 40px; font-weight: 900; color: var(--teal-light); line-height: 1; font-family: 'Cairo', sans-serif; }
  .hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 1px; margin-top: 4px; }

  .hero-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.15); align-self: center; }

  .hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.6s 0.4s ease both;
  }

  .btn-primary {
    background: var(--teal);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.5px;
  }
  .btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,122,110,0.4); }

  .btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Cairo', sans-serif;
  }
  .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

  /* ── SECTIONS ── */
  section { padding: 80px 48px; }
  .section-alt { background: var(--off-white); }
  .section-navy { background: var(--navy-deep); color: var(--white); }
  .section-teal { background: var(--teal); color: var(--white); }

  .section-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--teal);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-family: 'Cairo', sans-serif;
  }
  .section-navy .section-label, .section-teal .section-label { color: var(--teal-light); }

  h2.section-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
  }
  .section-navy h2.section-title, .section-teal h2.section-title { color: var(--white); }

  .section-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.8;
    margin-bottom: 48px;
  }
  .section-navy .section-desc { color: rgba(255,255,255,0.65); }
  .section-teal .section-desc { color: rgba(255,255,255,0.8); }

  .container { max-width: 1200px; margin: 0 auto; }

  /* ── CARDS ── */
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
  .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

  .card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.25s;
  }
  .card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(27,58,107,0.12); border-color: var(--teal); }

  .card-icon {
    width: 48px; height: 48px;
    background: var(--light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
  }
  .card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: 'Cairo', sans-serif; }
  .card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

  /* ── SECTORS ── */
  .sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .sector-card {
    border-radius: 12px;
    padding: 28px 24px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    transition: all 0.2s;
  }
  .sector-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
  .sector-icon { font-size: 32px; margin-bottom: 12px; }
  .sector-card h3 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; font-family: 'Cairo', sans-serif; }
  .sector-card p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }

  /* ── FRAMEWORKS ── */
  .fw-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .fw-pill {
    background: var(--light);
    border: 1px solid rgba(26,122,110,0.25);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: 'Cairo', sans-serif;
  }

  /* ── COURSE CARDS ── */
  .course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
  }
  .course-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,58,107,0.1); }
  .course-header { background: var(--navy); padding: 18px 22px; }
  .course-code { font-size: 10px; color: var(--teal-light); letter-spacing: 2px; margin-bottom: 4px; font-family: 'Cairo', sans-serif; }
  .course-title { font-size: 18px; font-weight: 700; color: var(--white); line-height: 1.3; font-family: 'Cairo', sans-serif; }
  .course-badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 10px; margin-top: 6px; font-weight: 600; }
  .badge-new { background: rgba(26,122,110,0.3); color: #7FE0D0; }
  .badge-updated { background: rgba(201,151,58,0.25); color: #F0C060; }
  .course-body { padding: 18px 22px; }
  .course-meta { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
  .course-meta span { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
  .course-meta strong { color: var(--teal); font-size: 11px; }
  .course-fw { font-size: 12px; color: var(--teal); font-weight: 600; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }

  /* ── TABS ── */
  .tabs { display: flex; gap: 4px; margin-bottom: 36px; background: var(--off-white); padding: 4px; border-radius: 10px; width: fit-content; flex-wrap: wrap; }
  .tab { padding: 10px 22px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--text-muted); transition: all 0.2s; font-family: 'Cairo', sans-serif; }
  .tab.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .tab-panel { display: none; }
  .tab-panel.active { display: block; }

  /* ── FOUNDER CARDS ── */
  .founder-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(27,58,107,0.08);
    border: 1px solid var(--border);
  }
  .founder-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1E4A7A 100%);
    padding: 36px 36px 28px;
    position: relative;
  }
  .founder-initials {
    width: 72px; height: 82px;
    background: var(--teal);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 800; color: var(--white);
    margin-bottom: 16px;
    font-family: 'Cairo', sans-serif;
    border: 3px solid rgba(255,255,255,0.2);
  }
  .founder-name { font-size: 22px; font-weight: 800; color: var(--white); font-family: 'Cairo', sans-serif; margin-bottom: 4px; }
  .founder-role { font-size: 13px; color: var(--teal-light); }
  .founder-body { padding: 32px 36px; }
  .cred-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .cred-item { display: flex; align-items: flex-start; gap: 10px; }
  .cred-dot { width: 8px; height: 8px; background: var(--teal); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
  .cred-text { font-size: 14px; color: var(--text); line-height: 1.5; }
  .founder-bio { font-size: 14px; color: var(--text-muted); line-height: 1.8; border-top: 1px solid var(--border); padding-top: 20px; }

  /* ── VALUES ── */
  .values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
  .value-card { text-align: center; padding: 28px 20px; }
  .value-icon { font-size: 32px; margin-bottom: 12px; }
  .value-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-family: 'Cairo', sans-serif; }
  .value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

  /* ── CONTACT ── */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  @media(max-width:768px) { .contact-grid { grid-template-columns: 1fr; } }

  .contact-form { display: flex; flex-direction: column; gap: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group label { font-size: 13px; font-weight: 600; color: var(--navy); font-family: 'Cairo', sans-serif; }
  .form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Tajawal', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    direction: rtl;
    width: 100%;
  }
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(26,122,110,0.1);
  }
  .form-group textarea { resize: vertical; min-height: 120px; }

  .contact-info { display: flex; flex-direction: column; gap: 24px; }
  .contact-item { display: flex; align-items: flex-start; gap: 16px; }
  .contact-icon { width: 44px; height: 44px; background: var(--light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
  .contact-item h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-family: 'Cairo', sans-serif; }
  .contact-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

  /* ── FOOTER ── */
  footer {
    background: var(--navy-deep);
    padding: 48px;
    text-align: center;
  }
  .footer-logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; font-family: 'Cairo', sans-serif; }
  .footer-tagline { font-size: 13px; color: var(--teal-light); margin-bottom: 24px; }
  .footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
  .footer-link { font-size: 13px; color: rgba(255,255,255,0.5); cursor: pointer; transition: color 0.2s; font-family: 'Cairo', sans-serif; border: none; background: none; }
  .footer-link:hover { color: var(--teal-light); }
  .footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
  .footer-divider { width: 60px; height: 2px; background: var(--teal); margin: 0 auto 24px; }

  /* ── DIVIDER ── */
  .divider { height: 1px; background: var(--border); margin: 0; }

  /* ── BANNER ── */
  .page-banner {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(26,122,110,0.2) 0%, transparent 60%);
  }
  .page-banner h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: var(--white); font-family: 'Cairo', sans-serif; position: relative; z-index: 1; margin-bottom: 12px; }
  .page-banner p { font-size: 16px; color: rgba(255,255,255,0.6); position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

  /* ── HIGHLIGHT BOX ── */
  .highlight-box {
    background: var(--light);
    border-right: 4px solid var(--teal);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
  }
  .highlight-box p { font-size: 14px; color: var(--navy); line-height: 1.7; }

  /* ── APPROACH LIST ── */
  .approach-list { display: flex; flex-direction: column; gap: 16px; }
  .approach-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: var(--white); border-radius: 10px; border: 1px solid var(--border); }
  .approach-num { width: 36px; height: 36px; background: var(--navy); color: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; font-family: 'Cairo', sans-serif; }
  .approach-item p { font-size: 14px; color: var(--text); line-height: 1.6; padding-top: 6px; }

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

  /* ── RESPONSIVE ── */
  @media(max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { gap: 2px; }
    .nav-link { padding: 6px 10px; font-size: 12px; }
    section { padding: 56px 20px; }
    .page-banner { padding: 48px 20px; }
    .hero { padding: 60px 20px; min-height: auto; }
    .hero-stats { gap: 24px; }
    .hero-divider { display: none; }
    footer { padding: 36px 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .tabs { width: 100%; }
  }

  /* notice */
  .update-notice {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(26,122,110,0.12); border: 1px solid rgba(26,122,110,0.3);
    color: var(--teal); border-radius: 6px; padding: 4px 12px; font-size: 12px; font-weight: 600;
    margin-bottom: 8px; font-family: 'Cairo', sans-serif;
  }
/* WordPress admin bar offset */
body.admin-bar nav { top: 32px !important; }
@media(max-width:782px){ body.admin-bar nav { top: 46px !important; } }

/* Language switcher */
.lang-switcher {
  position: fixed; bottom: 20px; right: 20px;
  display: flex; gap: 8px; z-index: 9999;
}
.lang-btn {
  background: var(--navy); color: white;
  padding: 8px 14px; border-radius: 6px;
  font-size: 13px; text-decoration: none;
  border: 2px solid transparent; transition: all 0.2s;
}
.lang-btn:hover { background: var(--teal); }
.lang-btn.active { border-color: var(--teal-light); }

/* WP edit link for admins */
.awj-admin-bar {
  display: none; position: fixed; bottom: 60px; left: 20px;
  background: var(--navy); color: white; padding: 8px 14px;
  border-radius: 6px; font-size: 13px; text-decoration: none;
  z-index: 9999; font-family: Arial, sans-serif;
}
.logged-in .awj-admin-bar { display: block; }
