.race-loop {
  margin-bottom: 24px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
}
.race-loop:hover {
  border-radius: 12px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
}
.race-loop.h-100 {
  height: auto !important;
}
.race-loop .event-card {
  height: auto !important;
  border: 1px solid #e9ecef !important;
  background-color: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 0 !important;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.race-loop .event-link {
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  color: inherit !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.race-loop .event-image-wrapper {
  position: relative !important;
  width: 100% !important;
  padding-bottom: 50% !important;
  background-color: #f8f9fa !important;
  overflow: hidden !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}
.race-loop .event-image-wrapper .card-img-top {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
  border-top-left-radius: 12px !important;
  border-top-right-radius: 12px !important;
}
.race-loop .event-content {
  padding: 16px 16px 12px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}
.race-loop .event-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #212529 !important;
  margin: 0 0 10px 0 !important;
  line-height: 20px !important;
  min-height: 40px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.race-loop .event-title:hover {
  color: #1456f0 !important;
}
.race-loop .event-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 12px !important;
}
.race-loop .badge-custom {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.race-loop .badge-custom i {
  font-size: 11px !important;
}
.race-loop .badge-custom.price-badge {
  background-color: #ffe8cc !important;
  color: #d9480f !important;
  border: 1px solid #ffd8a8 !important;
}
.race-loop .badge-custom.free-badge {
  background-color: #ebfbee !important;
  color: #2b8a3e !important;
  border: 1px solid #d3f9d8 !important;
}
.race-loop .badge-custom.community-badge {
  background-color: #e7f5ff !important;
  color: #1864ab !important;
  border: 1px solid #d0ebff !important;
}
.race-loop .badge-custom.enterprise-badge {
  background-color: #f3f0ff !important;
  color: #5f3dc4 !important;
  border: 1px solid #e5dbff !important;
}
.race-loop .badge-custom.upcoming-badge {
  background-color: #fff9db !important;
  color: #f08c00 !important;
  border: 1px solid #fff3bf !important;
}
.race-loop .badge-custom.opening-badge {
  background-color: #e6fcf5 !important;
  color: #087f5b !important;
  border: 1px solid #c3fae8 !important;
}
.race-loop .badge-custom.closed-badge {
  background-color: #f1f3f5 !important;
  color: #495057 !important;
  border: 1px solid #e9ecef !important;
}
.race-loop .badge-custom.closed-reg-badge {
  background-color: #fff5f5 !important;
  color: #c92a2a !important;
  border: 1px solid #ffe3e3 !important;
}
.race-loop .event-info-item {
  font-size: 13px !important;
  color: #6c757d !important;
  display: flex !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}
.race-loop .event-info-item i {
  width: 16px !important;
  margin-right: 6px !important;
  color: #868e96 !important;
  font-size: 14px !important;
}
.race-loop .event-info-item strong {
  color: #212529 !important;
  font-weight: 700 !important;
}
.race-loop .event-info-item.text-danger {
  color: #e03131 !important;
}
.race-loop .event-info-item.text-danger i {
  color: #e03131 !important;
}
.race-loop .event-info-item.text-danger strong {
  color: #e03131 !important;
}
.race-loop .event-info-item:last-of-type {
  margin-bottom: 6px !important;
}
.race-loop .event-action {
  margin-top: 16px !important;
  width: 100% !important;
}
.race-loop .btn-join {
  display: block !important;
  width: 100% !important;
  padding: 8px 12px !important;
  background-color: #1456f0 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center !important;
  transition: background-color 0.2s ease !important;
}
.race-loop .btn-join:hover {
  background-color: #0b45d0 !important;
}
.race-loop .card-img-top {
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media (max-width: 500px) {
  .race-loop .card-img-top {
    max-height: unset;
  }
}
.race-loop .race-title {
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
  margin-bottom: 10px;
}
.race-loop .race-desc {
  height: 64px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(0, 0, 0, 0.7019607843);
}
.race-loop .container-badge {
  position: absolute;
  right: -6px;
  top: -6px;
}
.race-loop .container-badge img {
  max-width: 44px;
}
.race-loop .item-info {
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}
.race-loop .card-footer .text-blue {
  margin-left: 2px;
  font-size: 16px;
  font-weight: bold;
  color: #1456f0;
}
.race-loop .card-footer .btn {
  font-weight: bold;
}
.race-loop .card-footer .btn-hot {
  width: -moz-fit-content;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 4px;
  background: #EF4040 !important;
  border-color: #EF4040 !important;
}
.race-loop .card-footer .btn-hot img {
  max-width: 20px;
}
.race-loop .card.is-loading {
  height: 100% !important;
  border: 1px solid #e9ecef !important;
  background-color: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}
.race-loop .card.is-loading .card-img-top {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 50% !important;
  position: relative !important;
  border-radius: 0 !important;
  background: #eee !important;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%) !important;
  background-size: 200% 100% !important;
  animation: 1.5s shine linear infinite !important;
}
.race-loop .card.is-loading .card-body {
  padding: 16px !important;
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  background: #fff !important;
}
.race-loop .card.is-loading h2 {
  margin: 0 !important;
  height: 20px !important;
  width: 80% !important;
  background: #eee !important;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%) !important;
  background-size: 200% 100% !important;
  animation: 1.5s shine linear infinite !important;
  border-radius: 4px !important;
}
.race-loop .card.is-loading p {
  margin: 0 !important;
  height: 80px !important;
  width: 100% !important;
  background: #eee !important;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%) !important;
  background-size: 200% 100% !important;
  animation: 1.5s shine linear infinite !important;
  border-radius: 4px !important;
}
