/* ================= Project Journey Timeline (scoped) ================= */
    .project-trip {
      background: var(--surface-2);
    }

    .pj-timeline-embed {
      --timelinePointSize: 5px;
      --timelineBubbleSize: 150px;
      --timelineBubbleWidth: 90px;
      --timelineHeight: 150px;
      --timelineTriangleSize: 300px;
      --navy: #071d49;
      --red: #c51528;
      --red-dark: #9d101f;
      --muted: #5b687c;
      --paper: #ffffff;
      --surface-2: #f3f5f7;
      --line: #d8dee7;

      position: relative;
      width: 100%;
      height: 460px;
      overflow: hidden;
      background: var(--red);
      display: flex;
      font-family: 'Cairo', Arial, Helvetica, sans-serif;
      /* direction: rtl; */
      border-radius: 12px;
      box-shadow: 0 4px 20px rgba(197, 21, 40, 0.15);
    }

    .pj-timeline-embed .page {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      flex-direction: column;
      width: 100%;
      height: 100%;
    }

    /* ===== Views (slides) ===== */
    .pj-timeline-embed .views,
    .pj-timeline-embed .view {
      width: 100%;
      height: 100%;
    }

    .pj-timeline-embed .views {
      background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    }

    .pj-timeline-embed .view__inner {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      padding: 0 8%;
      box-sizing: border-box;
    }

    @keyframes pj-view-in {
      from {
        opacity: 0;
        transform: translateY(14px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== Timeline wrapper ===== */
    .pj-timeline-embed .timeline__wrapper {
      position: absolute;
      bottom: 0;
      z-index: 2;
      /* width: calc(100% - 60px); */
      width: 100%;
      /* padding: 0 30px; */
      /* height: var(--timelineHeight); */
      height: 100%;
      display: flex;
    }

    .pj-timeline-embed .timeline {
      display: flex;
      flex: 1;
      align-items: center;
      position: relative;
    }

    .pj-timeline-embed .timeline__list {
      flex: 1;
      display: flex;
      list-style-type: none;
      /* margin: 0 30px; */
      /* padding: 0 0 22px 0; */
      justify-content: space-between;
      align-items: center;
      align-self: stretch;
      position: relative;
    }

    .pj-timeline-embed .timeline__item {
      flex: 1;
      position: relative;
      /* border: 1px dashed rgba(0,0,0,.1); */
    }

    .pj-timeline-embed .timeline__item::after {
      content: '';
      width: calc(100% - var(--timelinePointSize) * 3);
      height: 2px;
      position: absolute;
      top: 50%;
      left: calc(50% + var(--timelinePointSize) - 1px);
      background: rgba(255, 255, 255, 0.3);
      z-index: 5;
      pointer-events: none;
      border-radius: 2px;
    }

    /* .pj-timeline-embed .timeline__item:last-child::after { display: none; } */

    .pj-timeline-embed .timeline__item--active .timeline__item__point {
      /* border-color: var(--red); */
      color: var(--red) !important;
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__point::after {
      opacity: 1;
      transform: scale(1);
    }

    .pj-timeline-embed .timeline__item__point {
      width: 70px;
      height: 70px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      border: 3px solid rgb(255, 255, 255);
      border-radius: 50%;
      z-index: 6;
      cursor: pointer;
      pointer-events: auto;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      /* color: rgb(255, 255, 255); */
      background: white;

      i {
        z-index: 1;
      }
    }

    .pj-timeline-embed .timeline__item__point:hover {
      border-color: var(--paper);
      /* color: var(--paper); */
      transform: translate(-50%, -50%) scale(1.2);
    }

    .pj-timeline-embed .timeline__item__point::after {
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      background: var(--paper);
      position: absolute;
      top: 0;
      left: 0;
      transform-origin: 50% 50%;
      opacity: 0;
      transform: scale(0);
      transition: all .5s;
      border-radius: 50%;
    }

    .pj-timeline-embed .timeline__item__content {
      width: var(--timelineBubbleSize);
      height: var(--timelineBubbleSize);
      position: absolute;
      left: 50%;
      bottom: 100%;
      transform: translate(-50%, -20px);
      opacity: 0;
      transition: all .75s ease-out;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
      pointer-events: none;
      padding: 14px;
      box-sizing: border-box;
    }

    .pj-timeline-embed .timeline__item__content::before,
    .pj-timeline-embed .timeline__item__content::after {
      pointer-events: none;
      content: '';
      border: solid var(--timelineBubbleWidth) transparent;
      position: absolute;
      width: 0;
      height: 0;
      top: 50%;
      left: 50%;
      transition: all .45s ease-out;
      opacity: .75;
    }

    .pj-timeline-embed .timeline__item__content::before {
      border-bottom-color: #ffffff;
      transform: translate(-50%, -100%) scale(.6);
      transform-origin: 50% 100%;
    }

    .pj-timeline-embed .timeline__item__content::after {
      border-top-color: white;
      transform: translate(-50%, 0%) scale(.8);
      transform-origin: 50% 0%;
    }

    .pj-timeline-embed.clippath .timeline__item__content::after {
      /* box-shadow: 0 -2px 5px 0 rgba(0,0,0,.1); */
      clip-path: polygon(-2px -2px, calc(100% + 2px) -2px, 50% 100%);
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__content,
    .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content,
    .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content {
      opacity: 1;
      transform: translate(-50%, -55px);
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__content::before,
    .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content::before,
    .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content::before {
      transform: translate(-50%, -100%) scale(1);
      opacity: 1;
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__content::after,
    .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content::after,
    .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content::after {
      transform: translate(-50%, 0%) scale(1);
      opacity: 1;
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__shadow,
    .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content .timeline__item__shadow,
    .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content .timeline__item__shadow {
      transform: scale(1);
      opacity: 1;
    }

    .pj-timeline-embed .timeline__item__year {
      position: absolute;
      top: 80px;
      left: 50%;
      transform: translate(-50%, 0);
      z-index: 2;
      transition: all .4s ease-in;
      opacity: 1;
      font-size: 16px;
      font-weight: 600;
      color: #ffffff;
      /* nowrap كان بيخلي "Support and maintenance" تطلع برا العنصر
         وتتقص على الشاشات المتوسطة */
      width: 100%;
      max-width: 140px;
      padding-inline: 4px;
      box-sizing: border-box;
      white-space: normal;
      line-height: 1.45;
      cursor: pointer;
      pointer-events: auto;
      text-wrap: pretty;
      text-align: center;
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__year {
      color: #ffffff;
      font-size: 18px;
      font-weight: bold;
      max-width: 150px;
      white-space: normal;
    }

    .pj-timeline-embed .timeline__item__thumb {
      position: relative;
      z-index: 5;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.3;
      color: #333;
    }

    .pj-timeline-embed .timeline__item__shadow {
      position: absolute;
      top: calc(50% - 20 / 130 * 100%);
      left: 50%;
      z-index: -1;
      width: 0;
      height: 0;
      border-style: solid;
      border-width: var(--timelineBubbleSize) var(--timelineBubbleSize) 0 0;
      border-color: rgba(0, 0, 0, .25) transparent transparent transparent;
      transform-origin: 0 0;
      transform: scale(.5);
      opacity: 0.6;
      transition: all .3s;
      transition-delay: .15s;
    }

    .pj-timeline-embed .timeline__item--active .timeline__item__shadow,
    .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content .timeline__item__shadow,
    .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content .timeline__item__shadow {
      transform: scale(1);
      opacity: 1;
    }

    .pj-timeline-embed .timeline__path {
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 100%;
      overflow: hidden;
      pointer-events: none;
      z-index: -1;
      background: rgba(0, 0, 0, .2);

      /* clip-path: polygon(var(--timelineHeight) 0, 100% 0, 100% 100%, 0 100%); */
      [dir="rtl"] & {
        right: unset;
        left: 0;
      }
    }

    .pj-timeline-embed .timeline__path__triangle {
      display: block;
      position: absolute;
      border-style: solid;
      width: 0;
      height: 0;
      backface-visibility: hidden;
    }

    .pj-timeline-embed .timeline__path__triangle--static-1,
    .pj-timeline-embed .timeline__path__triangle--static-2 {
      top: 0;
    }

    .pj-timeline-embed .timeline__path__triangle--static-1 {
      border-width: var(--timelineTriangleSize) var(--timelineTriangleSize) 0 var(--timelineTriangleSize);
      border-color: rgba(0, 0, 0, .2) transparent transparent transparent;
      left: 0;
    }

    .pj-timeline-embed .timeline__path__triangle--static-2 {
      border-width: var(--timelineTriangleSize) var(--timelineTriangleSize) 0 var(--timelineTriangleSize);
      border-color: rgba(255, 255, 255, .4) transparent transparent transparent;
      right: 0;
    }

    .pj-timeline-embed .timeline__path__triangle--static-3 {
      border-width: 0 var(--timelineTriangleSize) var(--timelineTriangleSize) var(--timelineTriangleSize);
      border-color: transparent transparent rgba(255, 255, 255, .4) transparent;
      left: 30%;
      bottom: 0;
    }

    .pj-timeline-embed .timeline__path__triangle--moving {
      position: absolute;
      border-width: var(--timelineTriangleSize) var(--timelineTriangleSize) 0 var(--timelineTriangleSize);
      border-color: rgba(255, 255, 255, .2) transparent transparent transparent;
      left: 0;
      top: 0;
      transition: transform 3s ease-out;
    }

    /* ===== Responsive: Vertical timeline (tablet + mobile) ===== */
    @media (max-width: 992px) {
      .pj-timeline-embed {
        height: auto;
        min-height: 0;
        overflow: visible;
        display: block;
      }

      .pj-timeline-embed .page {
        display: block;
        height: auto;
      }

      /* الشرائح الفارغة والمثلثات الزخرفية غير مفيدة في الوضع العمودي */
      .pj-timeline-embed .views,
      .pj-timeline-embed .timeline__path,
      .pj-timeline-embed .timeline__item__shadow {
        display: none;
      }

      .pj-timeline-embed .timeline__wrapper {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        padding: 34px 22px;
        box-sizing: border-box;
      }

      .pj-timeline-embed .timeline {
        display: block;
        flex: none;
      }

      .pj-timeline-embed .timeline__list {
        display: block;
        margin: 0;
        padding: 0;
      }

      /* كل مرحلة صف مستقل بارتفاع تلقائي */
      .pj-timeline-embed .timeline__item {
        flex: none;
        display: block;
        width: 100%;
        /* logical عشان الدائرة والخط ييجوا على جهة البداية في
           العربي والإنجليزي، بدل right ثابت كان بيبوّظ الـEN */
        padding: 0 0 24px 0;
        padding-inline-start: 62px;
        box-sizing: border-box;
      }

      .pj-timeline-embed .timeline__item:last-child {
        padding-bottom: 0;
      }

      /* الخط الواصل يصبح عموديًا خلف الدوائر */
      .pj-timeline-embed .timeline__item::after {
        width: 2px;
        height: 100%;
        top: 22px;
        left: auto;
        right: auto;
        inset-inline-start: 21px;
        z-index: 1;
      }

      .pj-timeline-embed .timeline__item:last-child::after {
        display: none;
      }

      /* الدائرة تثبت أعلى الصف بمحاذاة العنوان */
      .pj-timeline-embed .timeline__item__point {
        top: 0;
        left: auto;
        right: auto;
        inset-inline-start: 0;
        transform: none;
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-width: 2px;
      }

      .pj-timeline-embed .timeline__item__point:hover {
        transform: scale(1.08);
      }

      /* العنوان بجانب الدائرة على نفس السطر */
      .pj-timeline-embed .timeline__item__year,
      .pj-timeline-embed .timeline__item--active .timeline__item__year {
        position: static;
        transform: none;
        display: flex;
        align-items: center;
        min-height: 44px;
        margin: 0;
        max-width: none;
        white-space: normal;
        text-align: start;
        font-size: 15.5px;
        font-weight: 700;
        line-height: 1.4;
      }

      /* الوصف ينسدل أسفل العنوان بدل الفقاعة العائمة */
      .pj-timeline-embed .timeline__item__content,
      .pj-timeline-embed .timeline__item--active .timeline__item__content,
      .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content,
      .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content {
        position: static;
        display: block;
        width: auto;
        height: auto;
        transform: none;
        padding: 0;
        margin: 0;
        text-align: start;
        overflow: hidden;
        pointer-events: none;
        transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
      }

      .pj-timeline-embed .timeline__item__content {
        max-height: 0;
        opacity: 0;
        margin-top: 0;
      }

      .pj-timeline-embed .timeline__item--active .timeline__item__content,
      .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content,
      .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content {
        max-height: 160px;
        opacity: 1;
        margin-top: 6px;
      }

      .pj-timeline-embed .timeline__item__content::before,
      .pj-timeline-embed .timeline__item__content::after,
      .pj-timeline-embed .timeline__item--active .timeline__item__content::before,
      .pj-timeline-embed .timeline__item--active .timeline__item__content::after,
      .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content::before,
      .pj-timeline-embed .timeline__item__point:hover~.timeline__item__content::after,
      .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content::before,
      .pj-timeline-embed .timeline__item__year:hover~.timeline__item__content::after {
        display: none;
      }

      .pj-timeline-embed .timeline__item__thumb {
        color: #ffffff;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.7;
      }
    }

    @media (max-width: 480px) {
      .pj-timeline-embed .timeline__wrapper {
        padding: 26px 14px;
      }

      .pj-timeline-embed .timeline__item {
        padding: 0 0 20px 0;
        padding-inline-start: 52px;
      }

      .pj-timeline-embed .timeline__item::after {
        top: 18px;
        inset-inline-start: 17px;
      }

      .pj-timeline-embed .timeline__item__point {
        width: 36px;
        height: 36px;
        font-size: 14px;
      }

      .pj-timeline-embed .timeline__item__year,
      .pj-timeline-embed .timeline__item--active .timeline__item__year {
        min-height: 36px;
        font-size: 14px;
      }

      .pj-timeline-embed .timeline__item__thumb {
        font-size: 12px;
        line-height: 1.65;
      }
    }
