.upcoming-events-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.upcoming-events-section h2 {
  font-family: "Azeret Mono", sans-serif;
  /* font-size: clamp(32px, 50vw, 72px); */
  font-weight: 200;
  margin: 0;
  color: hsla(220, 100%, 55%, 1);
  font-size: 52px;

  @media (max-width: 1024px) {
    font-size: 52px;
  }
  @media (max-width: 767px) {
    font-size: 32px;
  }
}

.events-container {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: 10px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.main-upcoming-event {
  padding: 36px 50px;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  min-height: 550px;
  color: #fff;

  @media (max-width: 768px) {
    padding: 26px 22px 30px;
  }
  @media (max-width: 500px) {
    padding: 16px 12px 30px;
    min-height: auto;
    height: 414px;
  }
}

.main-upcoming-event::after {
  position: absolute;
  content: "";
  width: 100% !important;
  height: 100% !important;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 0%,
    hsla(0, 0%, 0%, 0.7) 100%
  );
}

.main-upcoming-event img {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  object-fit: cover;
  inset: 0;
}
.main-upcoming-event .icon-wrapper {
  position: absolute;
  height: 30px;
  width: 72px;
  right: 60px;
  top: 47px;
  z-index: 2;
  @media (max-width: 768px) {
    height: 32px;
    right: 12px;
    top: 12px;
  }
}
.main-upcoming-event .icon-wrapper svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.main-upcoming-event .content-block {
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  position: relative;
}
.main-upcoming-event .content-block .event-tag {
  width: fit-content;
  padding: 10px 15px;
  background-color: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  text-transform: capitalize;
  font-family: "Open Sans", sans-serif;
  border-radius: 6px;

  @media (max-width: 1440px) {
    font-size: 16px;
  }
  @media (max-width: 768px) {
    font-size: 12px;
  }
}
.main-upcoming-event .content-block .date-and-location {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 52px;
  margin-bottom: 23px;

  @media (max-width: 1024px) {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #fff;
  }
}
.main-upcoming-event .content-block .date-and-location .date {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  @media (max-width: 1440px) {
    font-size: 16px;
  }
}
.main-upcoming-event .content-block .date-and-location .location {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  @media (max-width: 1440px) {
    font-size: 16px;
  }
}
.main-upcoming-event .content-block h3 {
  font-size: 42px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  color: #fff;
  margin: 0;

  @media (max-width: 1440px) {
    font-size: 42px;
  }
  @media (max-width: 768px) {
    font-size: 32px;
  }
  @media (max-width: 500px) {
    font-size: 22px;
  }
}

.other-upcoming-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  width: 100%;
  min-height: 550px;
}
.other-upcoming-events .event-block {
  height: 50%;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  padding: 2rem 3rem;
  position: relative;

  @media (max-width: 768px) {
    padding: 26px 22px 30px;
  }
  @media (max-width: 500px) {
    padding: 16px 12px 30px;
  }
}

.other-upcoming-events .event-block::after {
  position: absolute;
  content: "";
  width: 100% !important;
  height: 100% !important;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 0%,
    hsla(0, 0%, 0%, 0.7) 100%
  );
}
.other-upcoming-events .event-block img {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  object-fit: cover;
  inset: 0;
  border-radius: inherit;
}

.other-upcoming-events .event-block .icon-wrapper {
  position: absolute;
  height: 56px;
  width: fit-content;
  right: 60px;
  top: 47px;
  z-index: 2;
  @media (max-width: 768px) {
    height: 50px;
    right: 12px;
    top: 12px;
  }
}
.other-upcoming-events .event-block .icon-wrapper svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.other-upcoming-events .content-block {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.other-upcoming-events .event-block .content-block .event-tag {
  width: fit-content;
  padding: 10px 15px;
  background-color: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  text-transform: capitalize;
  font-family: "Open Sans", sans-serif;
  border-radius: 6px;

  @media (max-width: 768px) {
    font-size: 12px;
  }
}

.other-upcoming-events .event-block .content-block .date-and-location {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 52px;
  margin-bottom: 12px;
  @media (max-width: 1024px) {
    flex-direction: column;
    gap: 10px;
    padding-bottom: 20px;
    align-items: flex-start;
    border-bottom: 1px solid #fff;
  }
}
.other-upcoming-events .event-block .content-block .date-and-location .date {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  @media (max-width: 1440px) {
    font-size: 16px;
  }
}
.other-upcoming-events
  .event-block
  .content-block
  .date-and-location
  .location {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  @media (max-width: 1440px) {
    font-size: 16px;
  }
}

.other-upcoming-events .event-block .content-block h3 {
  font-size: 24px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  @media (max-width: 1440px) {
    font-size: 24px;
  }
}

.other-upcoming-events .event-block:first-of-type {
  /* background-color: hsla(0, 0%, 92%, 1); */
  /* color: hsla(238, 41%, 14%, 1); */
  color: hsla(0, 0%, 100%, 1);
  @media (max-width: 1024px) {
    order: 2;
  }
}
.other-upcoming-events .event-block:last-of-type {
  /* background: linear-gradient(270deg, #1b66ff -6.56%, #151632 114.41%); */
  color: hsla(0, 0%, 100%, 1);
  @media (max-width: 1024px) {
    order: 1;
  }
}

/* On Demand Event Card */

.on-demand-container .on-demand-card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background-color: hsla(0, 0%, 100%, 0);
  width: 100%;
  transition: 0.3s ease-in-out;
}
.on-demand-container .on-demand-card:hover {
  background-color: hsla(0, 0%, 100%, 1);
}
.on-demand-card .img-wrapper {
  width: 100%;
  height: 260px;
  min-height: 260px;
  border-radius: 15px;
  position: relative;

  @media (max-width: 1440px) {
    height: 260px;
    min-height: 260px;
  }
  @media (max-width: 1024px) {
    height: 224px;
    min-height: 224px;
  }
}
.on-demand-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.on-demand-card .img-wrapper .category-block {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.on-demand-card .img-wrapper .category-block .single-category {
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  padding: 10px 40px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;

  @media (max-width: 1024px) {
    font-size: 12px;
    padding: 8px 25px;
    border-radius: 6px;
  }
}

.on-demand-card .img-wrapper .post-link {
  background-color: hsla(0, 0%, 100%, 1);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 15px;
  right: 15px;

  transition: 0.3s ease-in-out;

  @media (max-width: 1024px) {
    width: 30px;
    height: 30px;
  }
}
.on-demand-container .on-demand-card:hover .post-link {
  background-color: hsla(47, 94%, 53%, 1);
}

.on-demand-card .img-wrapper .post-link .icon-wrapper {
  height: 14px;
  width: fit-content;
}
.on-demand-card .img-wrapper .post-link .icon-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.on-demand-card .content-block {
  display: flex;
  flex-direction: column;
  padding: 20px 25px 26px;
  height: fit-content;
}
.on-demand-card .content-block .date-block {
  display: flex;
  margin-bottom: 20px;
}

.on-demand-card .content-block .date-block p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  color: hsla(0, 0%, 40%, 1);
  @media (max-width: 1024px) {
    font-size: 14px;
  }
}

.on-demand-card .content-block h3 {
  font-size: 22px;
  font-weight: 400;
  color: hsla(238, 41%, 14%, 1);
  font-family: "Open Sans", sans-serif;
  margin-bottom: 10px;

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

.on-demand-card .content-block .description {
  font-size: 14px;
  font-weight: 400px;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 28px;
  color: hsla(0, 0%, 40%, 1);
}
.on-demand-card .content-block .description p {
  margin: 0;
  padding: 0;
}

.on-demand-card .content-block .bottom-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.on-demand-card .content-block .bottom-block .author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.on-demand-card .content-block .bottom-block .author-block .img-wrapper {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
}

.on-demand-card .content-block .bottom-block .author-block .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.on-demand-card .content-block .bottom-block .author-block .name-and-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.on-demand-card .content-block .bottom-block .author-block .name-and-date h4 {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

/* On Demand Events Section */

.on-demand-events-section {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.on-demand-events-section h2 {
  font-family: "Azeret Mono", sans-serif;
  /* font-size: clamp(32px, 50vw, 72px); */
  font-weight: 300;
  margin: 0;
  color: hsla(220, 100%, 55%, 1);
  font-size: 52px;

  @media (max-width: 1024px) {
    font-size: 52px;
  }
  @media (max-width: 767px) {
    font-size: 32px;
  }
}

.on-demand-events-section .on-demand-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
}

@media (max-width: 1024px) {
  .on-demand-events-section .on-demand-container {
    grid-template-columns: none;
    display: flex;
    overflow-x: scroll;
    width: 100%;
  }
  .on-demand-container .on-demand-card {
    flex: 0 0 260px;
  }
}

/* MAIN EVENTS PAGE CARDS GRID */
.events-post-section {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 40px 20px;
  border-radius: 15px;
}
.events-post-section h2.title {
  /* font-size: clamp(2rem, 60vw, 4.5rem); */
  color: hsla(220, 100%, 55%, 1);
  font-family: "Azeret Mono", sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  margin-bottom: 50px;
  font-size: 52px;

  @media (max-width: 1024px) {
    font-size: 52px;
  }
  @media (max-width: 767px) {
    font-size: 32px;
  }
}

.events-filter-block {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;

  @media (max-width: 786px) {
    flex-direction: column;
    gap: 20px;
  }
}
.events-filter-block .categories-block {
  display: none;
  flex-wrap: wrap;
  gap: 18px;
  width: 70%;
  overflow-x: scroll;
  padding-bottom: 10px;

  @media (max-width: 1440px) {
    gap: 15px;
  }
  @media (max-width: 786px) {
    width: 100%;
    flex-wrap: nowrap;
  }

  &::-webkit-scrollbar {
    height: 6px;
  }

  &::-webkit-scrollbar-thumb {
    /* background-color: $primary-500; */
    border-radius: 50px;
  }
}
.btn-category {
  padding: 12px 30px;
  border: 1px solid hsla(238, 41%, 14%, 0.5);
  border-radius: 6px;
  white-space: nowrap;
  background-color: transparent;
  font-size: 18px;
  font-weight: 400;
  color: hsla(238, 41%, 14%, 1);
  cursor: pointer;
  /* @include for-laptopL {
      padding: 12px 15px;
      font-size: 12px;
    }
    @include for-laptop {
      padding: 10px 15px;
      margin-bottom: 1px;
    } */
}
.active-category {
  background-color: hsla(47, 94%, 53%, 1);
  color: hsla(238, 41%, 14%, 1);
  border: 1px solid transparent;
}

.events-category {
  display: flex;
  align-items: center;
  gap: 24px;
  @media (max-width: 768px) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
}
.events-category p {
  font-size: 16px;
  color: #000;
}
.events-category .category-dropdown {
  border: 1px solid hsla(238, 41%, 14%, 0.5);
  border-radius: 6px;
  padding-block: 12px;
  padding-inline: 20px;
  padding-right: 6rem;
  background: #fff;
  background-image: linear-gradient(
      45deg,
      transparent 50%,
      hsla(238, 41%, 14%, 1) 50%
    ),
    linear-gradient(135deg, hsla(238, 41%, 14%, 1) 50%, transparent 50%);
  background-position: calc(100% - 26px) calc(1em + 3px),
    calc(100% - 19px) calc(1em + 3px), calc(100% - 2.5em) 0.5em;
  background-size: 7px 7px, 7px 7px, 1px 1.5em;
  background-repeat: no-repeat;
  appearance: none;
  @media (max-width: 768px) {
    width: 100%;
  }
}
.events-category .category-dropdown option {
  /* @extend %p-16; */
  font-size: 16px;
  color: #000;
}

.events-post-section h2 {
  /* @extend %h-3; */
  font-weight: 700;
  /* color: $primary-500; */
  padding-block: 50px;
}

.events-grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;

  /* @media (max-width: 1024px) {
    grid-template-columns: 1fr 1fr 1fr;
  }
  @media (max-width: 768px) {
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 500px) {
    grid-template-columns: 1fr;
  } */
}
.events-grid-container .events-card {
  display: grid;
  grid-template-columns: 50% 40%;
  gap: 10%;
  border-radius: 15px;
  padding: 50px;
  background-color: hsla(0, 0%, 100%, 0);
  width: 100%;
  transition: 0.3s ease-in-out;

  @media (max-width: 1280px) {
    grid-template-columns: 40% 55%;
    gap: 5%;
  }

  @media (max-width: 1024px) {
    align-items: center;
  }
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 15px;
  }
}
.events-grid-container .events-card:hover {
  /* background-color: hsla(0, 0%, 100%, 1); */
  background-color: hsla(220, 100%, 55%, 1);
}
.events-card .img-wrapper {
  width: 100% !important;
  height: 400px;
  border-radius: 15px;
  position: relative;

  @media (max-width: 1280px) {
    height: 500px;
  }

  @media (max-width: 1024px) {
    height: 350px;
  }
}

.events-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.events-card .img-wrapper .category-block {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.events-card .img-wrapper .category-block .single-category {
  background-color: #fff;
  color: #000;
  border-radius: 10px;
  padding: 10px 40px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.events-card .content-block {
  display: flex;
  flex-direction: column;
  padding: 20px 25px 26px;
  height: 100%;

  @media (max-width: 768px) {
    padding: 0;
  }
}
.events-card .content-block .aditional-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.events-card .content-block .ttr-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.events-card .content-block .ttr-block .icon-wrapper {
  width: 20px;
  height: 20px;
}
.events-card .content-block .ttr-block .icon-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.events-card .content-block .ttr-block .icon-wrapper svg path {
  transition: 0.3s ease-in-out;
}
.events-card:hover .content-block .ttr-block .icon-wrapper svg path {
  fill: #fff;
}
.events-card .content-block .ttr-block p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  color: hsla(238, 41%, 14%, 1);
  transition: 0.3s ease-in-out;
}

.events-card:hover .content-block .ttr-block p {
  color: #fff;
}

.events-card .content-block h3 {
  font-size: 32px;
  font-weight: 500;
  color: hsla(238, 41%, 14%, 1);
  font-family: "Open Sans", sans-serif;
  margin-bottom: 10px;
  transition: 0.3s ease-in-out;

  @media (max-width: 768px) {
    /* padding: 10px 0; */
    margin: 10px 0;
  }
}
.events-card:hover .content-block h3 {
  color: #fff;
}

.events-card .content-block .description {
  font-size: 18px;
  font-weight: 400;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 28px;
  color: hsla(238, 41%, 14%, 1);
  transition: 0.3s ease-in-out;

  @media (max-width: 1280px) {
    font-size: 16px;
  }
}
.events-card:hover .content-block .description {
  color: #fff;
}
.events-card:hover .content-block .description p {
  color: #fff;
}
.events-card .content-block .description p {
  margin: 0;
  padding: 0;
}

.events-card .content-block .event-btn {
  text-decoration: underline;
  color: hsla(238, 41%, 14%, 1);
  font-size: 18px;
  font-weight: 700;
  font-family: "Open Sans", sans-serif;
  transition: 0.3s ease-in-out;

  @media (max-width: 1280px) {
    font-size: 16px;
  }
}
.events-card:hover .content-block .event-btn {
  color: #fff;
}

.events-card .content-block .bottom-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.events-card .content-block .bottom-block .author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}
.events-card .content-block .bottom-block .author-block .img-wrapper-author {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}
.events-card
  .content-block
  .bottom-block
  .author-block
  .img-wrapper-author
  img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.events-card .content-block .bottom-block .author-block .name-and-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.events-card .content-block .bottom-block .author-block .name-and-date h4 {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

.events-card .content-block .bottom-block .author-block .name-and-date span {
  font-size: 16px;
  font-weight: 400px;
  font-family: "Open Sans", sans-serif;
  color: hsla(0, 0%, 40%, 1);
}

.events-card .content-block .bottom-block .post-link {
  background-color: hsla(47, 94%, 53%, 0);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsla(0, 0%, 0%, 0.7);
  transition: 0.3s ease-in-out;
}
.events-grid-container .events-card:hover .post-link {
  background-color: hsla(47, 94%, 53%, 1);
  border: 1px solid hsla(47, 94%, 53%, 1);
}

.events-card .content-block .bottom-block .post-link .icon-wrapper {
  height: 14px;
  width: fit-content;
}
.events-card .content-block .bottom-block .post-link .icon-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.events-pagination-block {
  padding-block: 62px;
  display: flex;
}
.events-pagination-block .events-pagination {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}
.events-pagination-block .events-pagination button {
  background-color: transparent;
  border-radius: 6px;
  border: none;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #000;
}
.events-pagination-block .events-pagination .btn-nextPrev {
  height: 42px;
  width: 42px;
  border-radius: 6px;
  transition: 0.3s ease-in-out;
}
.events-pagination-block .events-pagination .btn-nextPrev:hover {
  background-color: hsla(47, 94%, 53%, 1);
}
.events-pagination-block .events-pagination .btn-nextPrev svg {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.events-pagination-block .events-pagination .active-pagination-btn {
  background-color: hsla(47, 94%, 53%, 1);
  color: hsla(0, 0%, 0%, 1);
}

.events-pagination-block .events-pagination .number-btn-group {
  display: flex;
  gap: 22px;
}
