/* Timeline block styles (colocated) */
.jwa-timeline {
  .entries {
    background-image: url('../../assets/images/timeline.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 48px;

    .inner {
      max-width: 1300px;
      margin: 0 auto;
    }

    .era {
      display: flex;
      flex-direction: column;
      position: relative;
      h1 {
        text-align: center;
        color: #C5D1FF;
        padding: 7.795px 10.912px;
        font-size: 92.952px;
        font-weight: normal;
      }
    }

    .era:before {
      content: '';
      border-left: 3px dotted #fff;
      position: absolute;
      top: 102px;
      bottom: 0;
      left: calc(50% - 1px);
    }

    .era:last-child:before {
      display: none;
    }

    .entry .content :last-child {
      margin-bottom: 0;
    }

    .entry {
      background: #fff;
      box-shadow: 0 12.36px 17.657px 0 rgba(0, 0, 0, 0.10);
      padding: 17.657px 26.486px 17.657px 17.657px;
      border-radius: 4.414px;
      width: 45%;
      margin-bottom: 24px;
      display: flex;
      align-items: center;
      position: relative;

      h2.year {
        font-size: 45px;
        font-weight: normal;
        color: #445184;
        margin: 0;
        line-height: 0.8;
      }

      img {
        max-width: 30%;
        margin: 0 14px 0 0;
      }

      svg {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%) translateX(100%);
      }

      .content {
        font-size: 13px;
        line-height: 1.4;
        h2 {
          margin: 0;
          color: #090D25;
          font-size: 20px;
          font-weight: 500;
        }
      }
    }

    .entry.odd {
      align-self: flex-end;

      svg {
        right: auto;
        left: 0;
        transform: translateY(-50%) translateX(-100%) scaleX(-1);
      }
    }
  }
}

@media (max-width: 900px) {
  .jwa-timeline .entries {
    .entry {
      flex-direction: column;

      img {
        max-width: 100%;
        margin-bottom: 12px;
      }
    }
  }
}

@media (max-width: 600px) {
  .jwa-timeline .entries {
    .era h1 {
      margin: 12px auto 24px auto;
    }
    .era:before {
      top: 124px;
    }
    .entry {
      width: 90%;
      margin: 24px auto;
       svg {
         display: none;
       }
    }
  }
}
