.events-section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  margin: 0 47.3px;

  .events-section {
    width: 1170px;

    .view-empty {
      padding: 15px 0;
    }

    .events-title {
      font-size: 30px;
      line-height: 40px;
      font-weight: 800;
      margin-bottom: 20px;
      margin-top: 28px;
      padding: 25px 0;
      border-bottom: 1px solid #eeeeee;
      border-top: 3px solid #4a4a4a;
    }

    .upcoming-webinars__no-upcoming-title,
    .upcoming-events__no-upcoming-title {
      border-top: 3px solid #4a4a4a;
      padding: 100px 0 70px;
      text-align: center;
      color: #232E35;
      font-size: 24px;
      line-height: 48px;
      font-weight: 800;
      margin-bottom: 8px;
      border-bottom: 0;
    }
  }

  .upcoming-events__no-upcoming-title {
    border-bottom: 3px solid #4a4a4a;
  }

  .past-events__title {
    padding-top: 25px;
    border-top: 3px solid #4a4a4a;
    margin-bottom: 20px;
    color: #232E35;
    text-transform: inherit;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
  }

  .past-events__event {
    display: flex;
    align-items: center;
    padding: 25px 24px;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;

    .past-events__event-link {
      text-decoration: none;
      color: #333;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }

    .past-events__event-date {
      flex-basis: 20%;

      .past-events__event-start-date,
      .past-events__event-end-date {
        font-size: 15px;
        color: #4a4a4a;
        font-weight: 500;
        line-height: 1.8;
        letter-spacing: 0.02em;
      }

      .past-events__event-end-date {
        display: block;
      }
    }

    .past-events__event-wrapper {
      flex-grow: 1;
      flex-shrink: 80;

      .past-events__event-title {
        color: #313538;
        font-size: 18px;
        line-height: 23px;
        font-weight: 500;
        letter-spacing: 0.02em;
        margin: 5px 0;
      }

      .past-events__event-location {
        text-transform: uppercase;
        font-size: 12px;
        color: #888888;
        font-weight: 500;
        letter-spacing: 0.02em;
      }
    }

    .past-events__event-details {
      flex-basis: 10%;
      color: #888888 !important;
      font-weight: 500;
      font-size: 16px;
      text-align: right;
      padding-right: 48px;
    }
  }

  .past-events__event:hover {
    background-color: #f0f0f0;
  }

  .pager__items {
    text-align: center;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
  }

  .pager__item {
    display: inline-block;

    a span {
      color: #04A973 !important;
      font-weight: 700;
      letter-spacing: 0.02em;
      font-size: 16px;
      line-height: 28px;
      text-decoration: none;
    }
  }

  .disabled {
    a {
      cursor: unset !important;

      span {
        font-family: "din-2014", "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-weight: 400;
        letter-spacing: 0.02em;
        color: #354652 !important;
        font-size: 16px;
        line-height: 28px;
      }
    }
  }
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.past-events {
  position: relative;
}


@media screen and (min-width:768px) and (max-width: 1024px) {
  .events-section-wrapper {
    margin: 0;

    .events-section {
      width: 100%;
    }
  }
}

/* Mobile - 375px and below */
@media screen and (min-width: 360px) and (max-width: 767px) {
  .company-banner-title-center {
    .banner__hero {
      .banner__content--bottom {
        padding-top: 120px;
        justify-content: center;

        .banner__content {
          .banner__title {
            font-size: 48px;
            line-height: 56px;
          }
        }
      }
    }
  }


  .events-section-wrapper {
    padding: 30px 24px;
    margin: 0;

    .events-section {
      width: 100%;

      .past-events__event {
        padding: 25px 15px;

        .past-events__event-wrapper {
          .past-events__event-title {
            margin-top: 10px;
          }
        }

        .past-events__event-link {
          flex-direction: column;
          align-items: start;
        }
      }

      .past-events__event-date {
        display: flex;
        gap: 4px;
        align-items: center;

        .past-events__event-start-date,
        .past-events__event-end-date {
          display: inline;
          white-space: nowrap;
        }
      }

      .past-events__event-details {
        margin-top: 10px;
      }
    }
  }
}