   /* ==============================
       CSS VARIABLES & RESET
    ============================== */
    :root {
      --primary:    #1a3c6e;
      --primary-light: #2a5298;
      --accent:     #00b4d8;
      --accent2:    #06d6a0;
      --green:      #4caf50;
      --bg:         #eef2f8;
      --card-bg:    #ffffff;
      --text:       #222f45;
      --muted:      #6b7c93;
      --radius:     14px;
      --shadow:     0 4px 24px rgba(26,60,110,0.10);
      --shadow-hover: 0 8px 36px rgba(26,60,110,0.18);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Cairo', 'Tajawal', sans-serif !important;
      background: var(--bg) !important;
      color: var(--text);
      text-align: start;
      overflow-x: hidden;
    }

    /* ==============================
       GLOBAL UTILITIES
    ============================== */
    .section-title {
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--primary);
      text-align: center;
      position: relative;
    }
    .section-title::after {
      content: '';
      display: block;
      width: 48px;
      height: 3px;
      background: var(--accent);
      border-radius: 2px;
      margin:0.45rem auto 1.5rem;
    }
    .card-box-h4 {
        text-align: center;
        font-size: 1em;
        margin-bottom: 1.5rem;
    }
    .card-box {
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 1.6rem 1.4rem;
      transition: box-shadow 0.25s, transform 0.25s;
    }
    .card-box:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

    /* ==============================
       REVEAL ANIMATIONS
    ============================== */
    .reveal {
      opacity: 0;
      transform: translateY(32px);
      transition: opacity 0.65s cubic-bezier(.22,.68,0,1.2), transform 0.65s cubic-bezier(.22,.68,0,1.2);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }

    .reveal-left {
      opacity: 0;
      transform: translateX(-28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-left.visible { opacity: 1; transform: translateX(0); }

    .reveal-right {
      opacity: 0;
      transform: translateX(28px);
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-right.visible { opacity: 1; transform: translateX(0); }

      /* ==============================
   HERO TEXT CARD (redesigned)
============================== */
.hero-text-card {
  position: relative;
  padding: 0.5rem 0;
}

/* Rank badge (top, pill style) */
.hero-badge-wrap {
  margin-bottom: 0.75rem;
}
.hero-rank-badge {
  display: inline-block;
  background: var(--primary);
  color:#e8f0fb ;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-family: 'Cairo', sans-serif;
}

/* Meta badges row */
.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f4f7fc;
  border: 1px solid #e2e8f4;
  border-radius: 50px;
  padding: 0.4rem 1.1rem 0.4rem 0.75rem;
  font-size: 0.88rem;
  color: var(--primary);
  transition: background 0.2s;
}
.hero-meta-badge:hover {
  background: #e8eef8;
}

.hero-meta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dce4f0;
  flex-shrink: 0;
}
.hero-meta-icon svg {
  width: 14px;
  height: 14px;
  color: var(--primary-light);
}

.hero-meta-text {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Cairo', sans-serif;
}
.hero-meta-link {
  text-decoration: none;
}
.hero-meta-link:hover {
  color: var(--accent);
}
.hero-title-single{
    font-size: .95rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 0.3rem 0 0.15rem;
}
.hero-name-single {
    font-size: 2.4rem;
    font-weight: 800;
    color: #2c455e;
    line-height: 1.2;
}
    /* ==============================
       CONTACT SECTION
    ============================== */
    .contact-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      padding: 0.7rem 1rem;
      border-radius: 10px;
      background: #f4f7fc;
      font-size: 0.87rem;
      font-weight: 600;
      color: var(--text);
      text-decoration: none;
      transition: all 0.22s;
      border: 1.5px solid transparent;
    }
    .contact-item:hover { border-color: var(--accent); background: #e8f4fd; color: var(--primary); text-decoration: none; transform: translateY(-2px); }
    .contact-item .ci-icon {
      width: 34px; height: 34px;
      border-radius: 8px;
      background: var(--primary);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.85rem;
      flex-shrink: 0;
    }

    /* ==============================
       RESEARCH PLATFORMS
    ============================== */
    .platform-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      padding: 1rem 1.2rem;
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      text-decoration: none;
      transition: all 0.25s;
      box-shadow: 0 3px 14px rgba(0,0,0,0.14);
      gap: 0.5rem;
    }
    .platform-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.2); color: #fff; text-decoration: none; }
    .platform-scholar { background: linear-gradient(135deg, #1a73e8, #1558b0); }
    .platform-researchgate { background: linear-gradient(135deg, #00d2ba, #00a896); }
    .platform-orcid { background: linear-gradient(135deg, #a6ce39, #7eb51b); }

    /* ==============================
       STATS COUNTERS
    ============================== */
    .stat-item { text-align: center; padding: 1rem 0.5rem; }
    .stat-number {
      font-size: 2.2rem;
      font-weight: 800;
      color: var(--primary);
      line-height: 1;
      display: block;
    }
    .stat-label {
      font-size: 0.82rem;
      color: var(--muted);
      font-weight: 500;
      margin-top: 0.3rem;
      display: block;
    }
    .stat-divider {
      border-left: 2px solid #dde4f0;
      height: 48px;
      align-self: center;
    }

    /* ==============================
       HONORS / AWARDS TIMELINE
    ============================== */
    .timeline { position: relative;padding-inline-start: 1.2rem; }
    .timeline::before {
      content: '';
      position: absolute;
      inset-inline-start: 31px; top: 0; bottom: 0;
      width: 2px;
      background: linear-gradient(to bottom, var(--accent), var(--primary));
      border-radius: 2px;
    }
    .timeline-item {
      display: flex;
      align-items: flex-start;
      gap: 0.8rem;
      margin-bottom: 1.3rem;
      position: relative;
    }
    .timeline-dot {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: var(--primary);
      display: flex; align-items: center; justify-content: center;
      color: #fff;
      font-size: 0.75rem;
      flex-shrink: 0;
      position: relative;
      z-index: 1;
      box-shadow: 0 2px 8px rgba(26,60,110,0.3);
    }
    .timeline-item:nth-child(2) .timeline-dot { background: var(--accent); }
    .timeline-item:nth-child(3) .timeline-dot { background: var(--accent2); }
    .timeline-text { font-size: 0.9rem; font-weight: 600; color: var(--text); padding-top: 3px; }

    /* ==============================
       LANGUAGE PROGRESS BARS
    ============================== */
    .lang-item { margin-bottom: 1.1rem; }
    .lang-label {
      display: flex;
      justify-content: space-between;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.35rem;
    }
    .lang-bar-bg {
      background: #e0e7f0;
      border-radius: 50px;
      height: 10px;
      overflow: hidden;
    }
    .lang-bar-fill {
      height: 100%;
      border-radius: 50px;
      width: 0;
      transition: width 1.2s cubic-bezier(.4,0,.2,1);
    }
    .bar-en { background: linear-gradient(90deg, var(--primary-light), var(--primary)); }
    .bar-ar { background: linear-gradient(90deg, var(--accent2), #06b88a); }
    .bar-fr { background: linear-gradient(90deg, var(--accent), #0090b0); }

    /* ==============================
       PUBLICATIONS
    ============================== */
    .pub-card {
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: all 0.25s;
      background: var(--card-bg);
      height: 100%;
    }
    .size {
    font-size: 1.2em !important;
    width: auto !important;
    height: auto !important;
}
    .pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
    .pub-card-img {
      height: 110px;
      object-fit: cover;
      width: 100%;
      background: linear-gradient(135deg, #1a3c6e 0%, #2a5298 50%, #00b4d8 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255,255,255,0.25);
      font-size: 2.5rem;
    }
    .pub-card:nth-child(1) .pub-card-img { background: linear-gradient(135deg, #e8eef8, #cddaf0); color: #6b8ab0; }
    .pub-card:nth-child(2) .pub-card-img { background: linear-gradient(135deg, #1a3c6e, #2a5298); }
    .pub-card:nth-child(3) .pub-card-img { background: linear-gradient(135deg, #003459, #007EA7); }
    .pub-card-body { padding: 0.9rem 1rem; }
    .pub-title { font-size: 0.9rem; font-weight: 700; color: var(--text); line-height: 1.4; }
    .pub-year { font-size: 0.78rem; color: var(--muted); margin: 0.2rem 0 0.6rem; }
    .btn-view {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.78rem;
      font-weight: 700;
      color: #fff;
      background: var(--primary);
      border: none;
      border-radius: 6px;
      padding: 0.3rem 0.9rem;
      cursor: pointer;
      transition: background 0.2s;
      text-decoration: none;
    }
    .btn-view:hover { background: var(--accent); color: #fff; text-decoration: none; }
    .pub-card:nth-child(2) .btn-view,
    .pub-card:nth-child(3) .btn-view { background: var(--accent); }
    .pub-card:nth-child(2) .btn-view:hover,
    .pub-card:nth-child(3) .btn-view:hover { background: var(--primary); }

    /* ==============================
       CERTIFICATIONS
    ============================== */
    .cert-item {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.75rem 1rem;
      border-radius: 10px;
      background: #f4f7fc;
      margin-bottom: 0.7rem;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      transition: all 0.22s;
    }
    .cert-item:hover { background: #e6edf8; transform: translateX(-4px); }
    .cert-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--primary);
      flex-shrink: 0;
    }

    /* ==============================
       EDUCATION TABS
    ============================== */
    .edu-tabs { display: flex; gap: 0; margin-bottom: 0;  }
    .edu-tab {
      padding: 0.65rem 1.3rem;
      font-size: 0.88rem;
      font-weight: 700;
      cursor: pointer;
      border: none;
      background: #e4ecf7;
      color: var(--muted);
      border-radius: 10px 10px 0 0;
      margin-left: 4px;
      transition: all 0.2s;
      font-family: 'Cairo', sans-serif;
    }
    .edu-tab.active {
      background: var(--primary);
      color: #fff;
    }
    .edu-tab:hover:not(.active) { background: #d0dcef; color: var(--primary); }

    .edu-panel {
      display: none;
        padding: 1.4rem 1.2rem;
        background: #f4f7fc91;
        border-radius: 0 0 var(--radius) var(--radius);
        border: 1.5px solid #dde4f0;
    }
    .edu-panel.active { display: block; }

    .edu-period {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 1rem;
    }
    .edu-timeline { position: relative; padding-inline-start: 1.5rem; }
    .edu-timeline::before {
      content: '';
      position: absolute;
      inset-inline-start: 19px; top: 8px; bottom: 8px;
      width: 2px;
      background: var(--accent);
      border-radius: 2px;
    }
    .edu-entry {
      position: relative;
      margin-bottom: 1rem;
      padding-inline-start: 1rem;
    }
    .edu-entry::before {
      content: '';
      position: absolute;
       inset-inline-start: -9px; top: 6px;
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--accent);
      border: 2px solid #fff;
      box-shadow: 0 0 0 2px var(--accent);
    }
    .edu-role { font-size: 0.93rem; font-weight: 700; color: var(--text); }
    .edu-desc { font-size: 0.83rem; color: var(--muted); margin-top: 0.15rem; line-height: 1.5; }

    /* ==============================
       SECTION SPACING
    ============================== */
    .cv-section { padding: 2.2rem 0 1.2rem; }

   

    /* ==============================
       RESPONSIVE TWEAKS
    ============================== */
    @media (max-width: 767px) {
      .hero-name { font-size: 1.7rem; }
      .stat-divider { display: none; }
      .stat-item { padding: 0.5rem; }
      .stat-number { font-size: 1.7rem; }
      .edu-tab { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
      .hero-img, .hero-img-placeholder { width: 110px; height: 110px; }
    }