@import url("_variables.css");

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

.navbar {
  background: linear-gradient(180deg, #1e1e1e 0%, rgba(30, 30, 30, 0.8) 100%);
}
.timeline__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 77px;
  padding: 60px 0;
  .timeline__header {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    @media (max-width: 1024px) {
      flex-direction: column;
      gap: 10px;
    }
    .timeline__title {
      color: #1e1e1e;
      text-align: center;
      font-size: 32px;
      font-style: normal;
      font-weight: 500;
      line-height: normal;
    }
    .timeline__header__filter {
      display: flex;
      flex-flow: row;
      gap: 10px;

      button {
        border: none;
        border-radius: 6px;
        border-radius: 8px;
        border: 1px solid rgba(71, 84, 103, 0.16);
        background-color: transparent;
        display: flex;
        /* width: 90px; */
        height: 48px;
        padding: 10px 16px;
        justify-content: center;
        align-items: center;
        gap: 10px;

        border: none;
        text-align: center;
        font-size: 16px;
        font-weight: 500;

        background: var(--primary-color);
        span {
          color: #fff;
        }
        &.active {
          color: #fff;
          border: none;
        }

        @media (max-width: 1024px) {
          /* width: 70px; */
          height: 40px;
          padding: 6px 10px;
        }
      }
    }
  }

  .timeline__events,
  .single__event {
    position: relative;
    padding: 32px 0;
    width: 100%;
    list-style-type: none;
    display: flex;
    flex-flow: column;
    gap: 70px;
    list-style-type: none;
    .full__direction {
      width: 100%;
      .timeline__events__item {
        border-radius: 16px;
        background: #fff;
        box-shadow: 0px 20px 50px 0px rgba(146, 154, 165, 0.2);
        padding: 16px;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
        /* display: none; */

        display: flex;
        &.expired {
          /* opacity: 0.5; */
          filter: grayscale(1);
          * {
            opacity: 0.8;
          }
        }
        @media (max-width: 1024px) {
          padding: 10px;
        }
        .timeline__events__item__date {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          gap: 12px;
          /* padding-left: 16px; */
          /* border-left: 1px solid rgba(146, 154, 165, 0.2); */
          min-height: 100%;
          height: max-content;

          .timeline__events__item__date__month {
            color: #575756;
            text-align: center;
            font-size: 16px;
            font-weight: 500;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
            @media (max-width: 768px) {
              font-size: 13px;
            }
          }

          .timeline__events__item__date__day {
            color: #575756;
            text-align: center;
            font-size: 64px;
            font-weight: 500;
            line-height: 55px;

            @media (max-width: 1024px) {
              font-size: 48px;
              line-height: 35px;
            }
            @media (max-width: 768px) {
              font-size: 32px;
              line-height: 25px;
            }
          }

          .timeline__events__item__date__year {
            color: #575756;
            text-align: center;
            font-size: 16px;
            font-weight: 500;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
            @media (max-width: 768px) {
              font-size: 13px;
            }
          }
        }

        .timeline__events__item__img {
          width: 150px;
          flex-shrink: 0;
          align-self: stretch;
          /* border-radius: 8px; */
          overflow: hidden;
          padding-right: 16px;
          border-right: 1px solid rgba(146, 154, 165, 0.2);
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
          }

          @media (max-width: 1024px) {
            width: 120px;
            padding-right: 12px;
          }
          @media (max-width: 768px) {
            width: 100px;
            padding-right: 8px;
          }
        }

        .timeline__events__item__content {
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 16px;
          flex: 1 0 0;

          &.border-content {
            &:lang(ar) {
              padding-right: 16px;
              border-right: 1px solid rgba(146, 154, 165, 0.2);
            }
            &:lang(en) {
              padding-left: 16px;
              border-left: 1px solid rgba(146, 154, 165, 0.2);
            }
          }
          .timeline__events__item__content__top {
            display: flex;
            flex-direction: column;

            gap: 12px;

            .timeline__events__item__content__top__title {
              color: #1e1e1e;
              font-size: 20px;
              font-weight: 500;
              line-clamp: 1;
              overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 1;
              -webkit-box-orient: vertical;
              &:lang(ar) {
                text-align: right;
              }
              &:lang(en) {
                text-align: left;
              }

              @media (max-width: 1024px) {
                font-size: 16px;
              }
            }

            .timeline__events__item__content__top__location {
              color: var(--primary-color);
              font-size: 16px;
              font-weight: 500;
              span {
                color: var(--primary-color);
              }
              &:lang(ar) {
                text-align: right;
              }
              &:lang(en) {
                text-align: left;
              }

              @media (max-width: 1024px) {
                font-size: 14px;
              }
              @media (max-width: 768px) {
                font-size: 13px;
              }
            }
          }

          .timeline__events__item__content__description {
            color: #575756;
            font-size: 16px;
            font-weight: 500;
            text-align: justify;
            word-spacing: -1px;
            word-wrap: break-word;
            hyphens: auto;
            line-clamp: 3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
          }

          .timeline__events__item__content__bottom {
            button {
              display: flex;
              border: none;
              text-align: center;
              justify-content: center;
              align-items: center;
              border-radius: 6px;
              background: var(--primary-color);
              width: 142px;
              height: 48px;
              padding: 8px 12px;

              color: #fff;
              text-align: center;
              font-size: 16px;
              font-weight: 500;

              @media (max-width: 1024px) {
                font-size: 14px;
                width: 122px;
                height: 40px;
                padding: 6px 10px;
              }
              @media (max-width: 768px) {
                font-size: 13px;
                width: 102px;
                height: 36px;
                padding: 4px 8px;
              }
            }
          }
        }
      }
    }
    .direction-l,
    .direction-r {
      width: calc(50%);
      position: relative;
      z-index: 9;
      @media (max-width: 1024px) {
        width: 100%;
      }
      .timeline__events__item {
        border-radius: 16px;
        background: #fff;
        box-shadow: 0px 20px 50px 0px rgba(146, 154, 165, 0.2);
        padding: 16px;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
        /* display: none; */

        display: flex;
        &.expired {
          /* opacity: 0.5; */
          filter: grayscale(1);
          * {
            opacity: 0.8;
          }
        }
        @media (max-width: 1024px) {
          padding: 10px;
        }
        .timeline__events__item__date {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          gap: 12px;
          padding-left: 16px;
          border-left: 1px solid rgba(146, 154, 165, 0.2);
          min-height: 100%;
          height: max-content;

          .timeline__events__item__date__month {
            color: #575756;
            text-align: center;
            font-size: 16px;
            font-weight: 500;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
            @media (max-width: 768px) {
              font-size: 13px;
            }
          }

          .timeline__events__item__date__day {
            color: #575756;
            text-align: center;
            font-size: 64px;
            font-weight: 500;
            line-height: 55px;

            @media (max-width: 1024px) {
              font-size: 48px;
              line-height: 35px;
            }
            @media (max-width: 768px) {
              font-size: 32px;
              line-height: 25px;
            }
          }

          .timeline__events__item__date__year {
            color: #575756;
            text-align: center;
            font-size: 16px;
            font-weight: 500;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
            @media (max-width: 768px) {
              font-size: 13px;
            }
          }
        }

        .timeline__events__item__img {
          width: 150px;
          flex-shrink: 0;
          align-self: stretch;
          /* border-radius: 8px; */
          overflow: hidden;
          padding-right: 16px;
          border-right: 1px solid rgba(146, 154, 165, 0.2);
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
          }

          @media (max-width: 1024px) {
            width: 120px;
            padding-right: 12px;
          }
          @media (max-width: 768px) {
            width: 100px;
            padding-right: 8px;
          }
        }

        .timeline__events__item__content {
          display: flex;
          flex-direction: column;
          justify-content: center;
          gap: 16px;
          flex: 1 0 0;

          .timeline__events__item__content__top {
            display: flex;
            flex-direction: column;

            gap: 12px;

            .timeline__events__item__content__top__title {
              color: #1e1e1e;
              font-size: 20px;
              font-weight: 500;
              line-clamp: 1;
              overflow: hidden;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 1;
              -webkit-box-orient: vertical;
              &:lang(ar) {
                text-align: right;
              }
              &:lang(en) {
                text-align: left;
              }

              @media (max-width: 1024px) {
                font-size: 16px;
              }
            }

            .timeline__events__item__content__top__location {
              color: var(--primary-color);
              font-size: 16px;
              font-weight: 500;
              span {
                color: var(--primary-color);
              }
              &:lang(ar) {
                text-align: right;
              }
              &:lang(en) {
                text-align: left;
              }

              @media (max-width: 1024px) {
                font-size: 14px;
              }
              @media (max-width: 768px) {
                font-size: 13px;
              }
            }
          }

          .timeline__events__item__content__description {
            color: #575756;
            font-size: 16px;
            font-weight: 500;
            text-align: justify;
            word-spacing: -1px;
            word-wrap: break-word;
            hyphens: auto;
            line-clamp: 3;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;

            @media (max-width: 1024px) {
              font-size: 14px;
            }
          }

          .timeline__events__item__content__bottom {
            button {
              border: none;

              border-radius: 6px;
              background: var(--primary-color);

              display: flex;
              width: 142px;
              height: 48px;
              padding: 8px 12px;
              justify-content: space-between;
              align-items: center;

              color: #fff;
              text-align: center;
              font-size: 16px;
              font-weight: 500;

              @media (max-width: 1024px) {
                font-size: 14px;
                width: 122px;
                height: 40px;
                padding: 6px 10px;
              }
              @media (max-width: 768px) {
                font-size: 13px;
                width: 102px;
                height: 36px;
                padding: 4px 8px;
              }
            }
          }
        }
      }
    }

    .direction-l {
      margin-right: auto;
      padding-right: 66px;
      @media (max-width: 1400px) {
        padding-right: 30px;
      }
      @media (max-width: 768px) {
        padding-right: 0;
      }
      @media (max-width: 1024px) {
        padding-right: 0;
      }
      .timeline__events__point {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translate(50%, -50%);
        z-index: 10;

        @media (max-width: 1024px) {
          top: -10px;
          right: 33px;
          transform: translate(50%, -100%);
        }
        &.expired {
          /* opacity: 0.5; */
          filter: grayscale(1);
        }
      }
    }
    .direction-r {
      margin-left: auto;
      padding-left: 66px;
      @media (max-width: 1400px) {
        padding-left: 30px;
      }
      @media (max-width: 768px) {
        padding-left: 0;
      }
      @media (max-width: 1024px) {
        padding-left: 0;
      }
      .timeline__events__point {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translate(-50%, -50%);
        z-index: 10;

        @media (max-width: 1024px) {
          top: -10px;
          left: calc(100% - 33px);
          transform: translate(-50%, -100%);
        }

        &.expired {
          /* opacity: 0.5; */
          filter: grayscale(1);
        }
      }
    }
  }

  .single__event {
    display: flex;
  }
}

.timeline:before {
  position: absolute;
  left: 50%;
  top: 0;
  content: " ";
  display: block;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgb(213, 213, 213);
  background: -moz-linear-gradient(
    top,
    rgba(213, 213, 213, 0) 0%,
    rgb(213, 213, 213) 8%,
    rgb(213, 213, 213) 92%,
    rgba(213, 213, 213, 0) 100%
  );
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    color-stop(0%, rgba(30, 87, 153, 1)),
    color-stop(100%, rgba(125, 185, 232, 1))
  );
  background: -webkit-linear-gradient(
    top,
    rgba(213, 213, 213, 0) 0%,
    rgb(213, 213, 213) 8%,
    rgb(213, 213, 213) 92%,
    rgba(213, 213, 213, 0) 100%
  );
  background: -o-linear-gradient(
    top,
    rgba(213, 213, 213, 0) 0%,
    rgb(213, 213, 213) 8%,
    rgb(213, 213, 213) 92%,
    rgba(213, 213, 213, 0) 100%
  );
  background: -ms-linear-gradient(
    top,
    rgba(213, 213, 213, 0) 0%,
    rgb(213, 213, 213) 8%,
    rgb(213, 213, 213) 92%,
    rgba(213, 213, 213, 0) 100%
  );
  background: linear-gradient(
    to bottom,
    rgba(213, 213, 213, 0) 0%,
    rgb(213, 213, 213) 8%,
    rgb(213, 213, 213) 92%,
    rgba(213, 213, 213, 0) 100%
  );
  z-index: 5;
}

@media screen and (max-width: 1024px) {
  .timeline:before {
    top: -45px;
    left: calc(100% - 33px);
  }
}

.flatpickr-day.selected {
  background-color: #eeeeee;
  color: #000 !important;
  border: none;
  &:hover {
    background-color: #eeeeee;
    color: #000 !important;
    border: none;
  }
}
.flatpickr-day.disabled {
  background-color: #f3f3f3 !important;
  color: #aaa !important;
  cursor: not-allowed;
}

.flatpickr-day.today {
  background-color: #eeeeee;
  &:hover {
    background: var(--primary-color);
  }

  &.flatpickr-day.selected {
    background: var(--primary-color);
    border: none;
    color: white !important;
  }
}
.event-day {
  background-color: white !important;
  color: #000 !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  border: 1px solid var(--primary-color) !important;

  &:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
  }

  &.flatpickr-day.selected {
    color: #fff !important;
    background: var(--primary-color);
  }
}

#calendarContainer {
  display: flex;
  gap: 5px;
  input {
    /* display: none; */
    /* visibility: hidden; */
    /* margin-top: 15px; */
    /* width: 1px;
    height: 1px; */
  }
}

/* .flatpickr-calendar {
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  }
} */

.flatpickr-current-month {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  select {
    width: fit-content !important;
  }
}

.arrowUp,
.arrowDown {
  display: none !important;
}

.empty__event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  height: calc(70vh - 150px);

  @media screen and (max-width: 768px) {
    height: calc(50vh - 150px);
  }

  img {
    width: 250px;
    height: 250px;

    @media screen and (max-width: 768px) {
      width: 200px;
      height: 200px;
    }

    @media screen and (max-width: 425px) {
      width: 150px;
      height: 150px;
    }
  }
}
.empty__event__text {
  color: #1e1e1e;
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  line-height: normal;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
  gap: 5px;
}
