/* Pentester Market — خارطة الطريق في صفحات الدبلومات.
   الشكل: مسار من/إلى ← ملخص المراحل ← مراحل مرقّمة على خط زمني ← النتيجة والوظايف.
   باقة VIP بتاخد class="roadmap-section vip" وبتتقلب للدهبي في آخر الملف. */
.roadmap-section {
  --rm: var(--accent);
  --rm-soft: rgba(6, 214, 160, 0.1);
  --rm-line: rgba(6, 214, 160, 0.28);
  margin-top: 44px;
  animation: fadeInUp 0.9s ease-out;
}

/* ===== العنوان والمسار ===== */
.roadmap-header { text-align: center; margin-bottom: 28px; }
.roadmap-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rm-soft); color: var(--rm); border: 1px solid var(--rm-line);
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.roadmap-header h2 { color: var(--text); font-size: 32px; line-height: 1.35; margin: 0 0 12px; }
.roadmap-header p { color: var(--muted); font-size: 16px; max-width: 720px; margin: 0 auto; line-height: 1.85; }

.roadmap-route { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.route-point {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text);
  padding: 9px 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
}
.route-point.end { background: var(--rm-soft); border-color: var(--rm-line); color: var(--rm); }
.route-line { position: relative; width: 90px; height: 2px; background: linear-gradient(270deg, rgba(255, 255, 255, 0.15), var(--rm)); }
.route-line::after {
  content: ''; position: absolute; left: -2px; top: 50%; width: 9px; height: 9px;
  border-left: 2px solid var(--rm); border-bottom: 2px solid var(--rm); transform: translateY(-50%) rotate(45deg);
}

/* ===== الأرقام ===== */
.roadmap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.roadmap-stat { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 18px 14px; text-align: center; }
.roadmap-stat .stat-value { display: block; color: var(--rm); font-size: 28px; font-weight: 800; line-height: 1.2; }
.roadmap-stat .stat-label { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }

/* ===== ملخص المراحل ===== */
.roadmap-steps {
  list-style: none; margin: 0 0 30px; padding: 16px 12px; display: flex; gap: 6px;
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px;
  overflow-x: auto; scrollbar-width: thin;
}
.roadmap-steps li { flex: 1 1 0; min-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; }
/* الخط بيوصل كل رقم بالرقم اللي قبله (على اليمين في العربي) */
.roadmap-steps li + li::before {
  content: ''; position: absolute; top: 17px; left: calc(50% + 18px); width: calc(100% - 30px); height: 2px; background: var(--rm-line);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--rm-soft); border: 1px solid var(--rm-line); color: var(--rm); font-weight: 800; font-size: 13px; position: relative; z-index: 1;
}
.step-name { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.5; }

/* ===== المراحل ===== */
.roadmap-timeline { position: relative; padding-right: 58px; }
.roadmap-timeline::before {
  content: ''; position: absolute; top: 10px; bottom: 10px; right: 21px; width: 2px;
  background: linear-gradient(180deg, var(--rm), rgba(6, 214, 160, 0.08));
}
.roadmap-phase { position: relative; margin-bottom: 20px; animation: fadeInUp 0.7s ease-out both; }
.roadmap-phase:nth-child(2) { animation-delay: 0.08s; }
.roadmap-phase:nth-child(3) { animation-delay: 0.16s; }
.roadmap-phase:nth-child(4) { animation-delay: 0.24s; }
.roadmap-phase:nth-child(5) { animation-delay: 0.32s; }
.roadmap-phase:nth-child(6) { animation-delay: 0.4s; }
.phase-marker {
  position: absolute; top: 18px; right: -58px; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--rm); color: var(--rm); font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(6, 214, 160, 0.3); z-index: 1;
}

.roadmap-phase-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px;
  padding: 22px 24px; transition: border-color 0.3s, box-shadow 0.3s;
}
.roadmap-phase-card:hover { border-color: var(--rm-line); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }

.phase-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.phase-title { color: var(--text); font-size: 20px; font-weight: 700; margin: 0; flex: 1; min-width: 200px; line-height: 1.45; }
.phase-duration {
  display: inline-flex; align-items: center; gap: 6px; background: var(--rm-soft); color: var(--rm);
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.phase-desc { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 16px; }

.phase-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 14px; }
.phase-block { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 14px; }
.phase-label { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.phase-label .ic { color: var(--rm); }
.phase-list { list-style: none; margin: 0; padding: 0; }
.phase-list li { position: relative; padding-right: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 6px; }
.phase-list li:last-child { margin-bottom: 0; }
.phase-list li::before { content: ''; position: absolute; right: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--rm); }

.phase-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.phase-tag {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #cbd5e1;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
}
.phase-tag.cert { background: var(--rm-soft); border-color: var(--rm-line); color: var(--rm); }
.phase-tag.tool { background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.25); color: #93c5fd; }

/* طبّق على: TryHackMe / Hack The Box / Proving Grounds / PortSwigger */
.phase-practice {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px dashed rgba(255, 255, 255, 0.1);
}
.phase-practice .phase-label { margin: 0 0 0 4px; }
.practice-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; color: var(--text); border: 1px solid; }
.practice-chip b { font-weight: 800; }
.practice-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.practice-chip.thm { color: #ff7b7b; background: rgba(193, 17, 17, 0.12); border-color: rgba(255, 123, 123, 0.3); }
.practice-chip.htb { color: #a8f034; background: rgba(159, 239, 0, 0.08); border-color: rgba(159, 239, 0, 0.28); }
.practice-chip.pg { color: #ffb066; background: rgba(255, 140, 0, 0.1); border-color: rgba(255, 176, 102, 0.3); }
.practice-chip.ps { color: #ff9a76; background: rgba(255, 102, 51, 0.1); border-color: rgba(255, 154, 118, 0.3); }

.phase-milestone {
  display: flex; align-items: center; gap: 10px; background: var(--rm-soft);
  border-right: 3px solid var(--rm); padding: 10px 14px; border-radius: 0 10px 10px 0; font-size: 14px; color: var(--text); line-height: 1.7;
}
.phase-milestone span:first-child { font-size: 18px; color: var(--rm); display: inline-flex; flex-shrink: 0; }
.phase-milestone b { color: var(--rm); }

/* ===== النتيجة ===== */
.roadmap-outcome {
  margin-top: 28px; background: linear-gradient(135deg, var(--rm-soft), rgba(6, 214, 160, 0.02));
  border: 1px solid var(--rm-line); border-radius: 18px; padding: 26px 24px; text-align: center;
}
.roadmap-outcome h3 { color: var(--rm); margin: 0 0 12px; font-size: 22px; display: inline-flex; align-items: center; gap: 8px; }
.roadmap-outcome p { color: var(--muted); margin: 0 auto; line-height: 1.9; font-size: 15px; max-width: 760px; }
.roadmap-outcome strong { color: var(--text); }
.outcome-jobs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.outcome-jobs .phase-label { margin: 0 0 0 4px; }
.job-chip { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text); padding: 6px 13px; border-radius: 10px; font-size: 13px; font-weight: 600; }

/* ===== VIP بالدهبي ===== */
.roadmap-section.vip { --rm: #ffd700; --rm-soft: rgba(255, 215, 0, 0.09); --rm-line: rgba(255, 215, 0, 0.3); }
.roadmap-section.vip .roadmap-timeline::before { background: linear-gradient(180deg, #ffd700, rgba(255, 215, 0, 0.08)); }
.roadmap-section.vip .phase-marker { box-shadow: 0 0 0 5px var(--bg), 0 0 18px rgba(255, 215, 0, 0.3); }
.roadmap-section.vip .roadmap-outcome { background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(6, 214, 160, 0.04)); }

@media (max-width: 900px) {
  .phase-body { grid-template-columns: 1fr; }
  .roadmap-header h2 { font-size: 26px; }
}
@media (max-width: 600px) {
  .roadmap-stats { gap: 8px; }
  .roadmap-stat { padding: 14px 6px; }
  .roadmap-stat .stat-value { font-size: 22px; }
  .roadmap-steps li { min-width: 92px; }
  .roadmap-timeline { padding-right: 0; }
  .roadmap-timeline::before { display: none; }
  .phase-marker { position: static; width: 38px; height: 38px; font-size: 14px; margin: 0 0 -19px 0; margin-right: 18px; box-shadow: 0 0 0 4px var(--bg); }
  .roadmap-phase-card { padding: 24px 16px 18px; }
  .route-line { width: 50px; }
}
