.error-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  flex-direction: column;
  color: #d41820;
  font-family: Arial, sans-serif;
  text-align: center;
  padding: 20px;
}
.error-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffeaa7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
}
.error-title {
  margin: 0 0 10px 0;
  color: #d41820;
}
.error-message {
  margin: 0;
  color: #666;
  font-size: 14px;
}
.error-retry-btn {
  margin-top: 15px;
  padding: 8px 16px;
  background: #d41820;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  flex-direction: column;
  color: #666;
  font-family: Arial, sans-serif;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #d41820;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.motoverse-top-events {
  padding: 64px 0;
}

.motoverse-top-events h1 {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.8px;
  font-weight: 500;
  color: white;
}

.top-events {
  max-width: 80%;
  margin: 0 auto;
}

.head-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-all-btn {
  font-size: 16px;
  font-weight: 700;
  font-family: Montserrat Bold;
  text-transform: uppercase;
  color: #da291c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0 8px;
}

.tab-primary {
  display: flex;
  justify-content: space-between;
  margin-block: 40px;
  height: 33px;
  position: relative;
  color: white;
}
.motoverse-top-events {
  padding: 64px 0;
}

@media only screen and (min-width: 1300px) {
  .motoverse-top-events {
    padding-top: 0;
  }
}

.motoverse-top-events h1 {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: 0.8px;
  font-weight: 500;
  color: white;
}

.top-events {
  max-width: 80%;
  margin: 0 auto;
}

.head-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-all-btn {
  font-size: 16px;
  font-weight: 700;
  font-family: Montserrat Bold;
  text-transform: uppercase;
  color: #da291c;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0 8px;
}

.tab-primary {
  display: flex;
  justify-content: space-between;
  margin-block: 40px;
  height: 33px;
  position: relative;
  color: white;
}

.tab-primary::before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #373737;
  content: "";
}

.day {
  width: 100%;
  text-align: center;
  cursor: pointer;
  padding-bottom: 8px;
  z-index: 1;
  font-size: 12px;
  line-height: 17px;
  font-family: Montserrat Regular;
  font-weight: 400;
}

.day.active {
  border-bottom: 2px solid #da291c;
  font-weight: 600;
  font-family: Montserrat Semibold;
}

.filter-btn {
  display: flex;
  gap: 15px;
  margin-bottom: 56px;
}

.filter-btn button {
  background-color: #181818;
  padding: 12px 20px;
  color: #ffffff;
  font-size: 14px;
  line-height: 21px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: Montserrat Regular;
  font-weight: 400;
}

.filter-btn button.active {
  background-color: #403b2a;
  border-color: #847543;
  font-weight: 600;
  font-family: Montserrat Semibold;
}

.event-section {
  display: none;
}

.event-section.active {
  display: block;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.event-block {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 30px;
  width: 100%;
}

.event-block.active {
  display: grid;
}

@media only screen and (max-width: 1199px) {
  .event-block {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 767px) {
  .event-block.active {
    display: flex !important;
  }
}

.event-items {
  position: relative;
}

.event-items .img-box {
  height: 442px;
  width: 100%;
}

.event-items .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-items .event-content {
  position: absolute;
  bottom: 0;
  background: linear-gradient(
    360deg,
    rgba(0, 0, 0, 0.8) 70.98%,
    rgba(33, 33, 33, 0) 100%
  );
  padding: 16px;
  height: 348px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.event-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: white;
  margin: 0;
  font-family: Montserrat Semibold;
}

.event-list {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  font-family: Montserrat Semibold;
}

.event-list img {
  margin: 0 5px;
  position: relative;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.event-time {
  color: #a6a6a6;
  font-weight: normal;
  display: flex;
  align-items: center;
  font-weight: 400;
  font-family: Montserrat Regular;
}

.event-location {
  display: flex;
  align-items: center;
}

.event-location img {
  margin-left: 0;
}
.event-description {
  font-size: 14px;
  line-height: 21px;
  color: #a6a6a6;
  font-weight: 400;
  font-family: Montserrat Regular;
}

.socia-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 19px;
}

.btn-section-mobile {
  display: none;
}

/* Add for now only testing */
.view-all-btn.desktop {
  display: none;
}

@media only screen and (max-width: 767px) {
  .top-events {
    max-width: 100%;
    padding: 20px;
    overflow: hidden;
  }

  .motoverse-top-events h1 {
    font-size: 28px;
    line-height: 32px;
  }

  .filter-btn {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 24px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .filter-btn button {
    white-space: nowrap;
    font-size: 12px;
    line-height: 18px;
  }

  .event-items {
    min-width: 85vw;
  }

  .event-list {
    flex-wrap: wrap;
    gap: 10px;
  }

  .event-section.active {
    overflow-x: scroll;
    margin-right: -20px;
    padding-right: 20px;
  }
  .event-section {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .event-section::-webkit-scrollbar,
  .filter-btn::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .event-title {
    font-size: 16px;
    line-height: 24px;
    max-width: 75%;
  }

  .event-list img {
    margin-left: 0;
  }

  .event-description {
    font-size: 12px;
    line-height: 18px;
  }

  .view-all-btn {
    font-size: 14px;
    line-height: 22.4px;
  }

  /* .view-all-btn.desktop {
    display: none;
  } */

  /* .btn-section-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
  } */

  .tab-primary {
    margin-block: 24px;
  }
}
