.events-container {
  padding: 2rem 0rem 2rem;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 15rem;
  gap: 1rem;
  pointer-events: none;
}

.section-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: left;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
}

.section-title.visible {
  opacity: 1;
}

.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loading-text.visible {
  opacity: 1;
}

.loading-text.error {
  color: rgba(255, 100, 100, 0.8);
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  opacity: 0;
  transform: translateY(10px);
  cursor: pointer;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-left: 30px;
  gap: 0.25rem;
  min-width: 0;
}

.card-image {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  user-select: none;
}

.card-date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-name {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-chevron {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 1rem;
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
  user-select: none;
}

.card:hover .card-image {
  transform: translateX(-4px);
}

.card:hover .card-date {
  transform: translateX(-2px);
}

.card:hover .card-name {
  transform: translateX(-2px);
}

.card:hover .card-chevron {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

@media (max-width: 768px) {

  .events-container {
    padding: 1rem 1rem 1rem 1rem;
  }

  .section-title {
    font-size: 0.7rem;
    padding-left: 0.75rem;
  }

  .card {
    padding: 0.75rem 0.5rem;
  }

  .card-content {
    margin-left: 15px;
  }

  .card-image {
    margin-left: 3px;
  }

  .card-name {
    font-size: 0.9rem;
  }

  .card-date {
    font-size: 0.7rem;
  }

  .card-chevron {
    font-size: 1.75rem;
  }
}
