.card {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-image-top {
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    object-fit: cover; /* Ensure the image covers the area */
    max-height: 160px; /* Set a maximum height for the image */
}

.card-body {
    padding: 10px; /* Reduce padding to decrease spacing */
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 4px 0 8px 0;
    line-height: 22px;
}

.card-text {
    font-size: 14px; /* Set text size to exactly 14px */
    margin-bottom: 4px; /* Reduce spacing between text elements */
    white-space: pre-line; /* Preserve line breaks */
}

/* Ensure links in card-text maintain proper styling */
.card-text a {
    font-size: 14px; /* Match the size of regular text */
}

.card-link {
    color: #007bff;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.card-link > a {
    color: #007bff;
    text-decoration: none;
}

.card-link > a:hover {
    text-decoration: underline;
}

.card-link > span {
    color: inherit;
    text-decoration: none;
}

/* Styling for past events */
.event.past-event {
    opacity: 0.6; /* Reduce opacity further */
    background-color: rgba(240, 240, 240, 0.3); /* Lighter background color */
    border: 1px solid #ddd; /* Lighter border */
}

.event.past-event .card-image-top {
    filter: grayscale(80%); /* Less grayscale */
    opacity: 0.7; /* Reduce image opacity */
}

.event.past-event .card-title {
    color: #777; /* Muted title color */
}

.event.past-event .card-text {
    color: #888; /* Muted text color */
}

.event.past-event .card-title::after {
    content: " (Passé)";
    font-size: 0.8em;
    font-style: italic;
    color: #999; /* Even more muted color for the "Passé" text */
}

/* Loading spinner */
.events-loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,128,0,0.2);
  border-radius: 50%;
  border-top-color: #4CAF50;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 10px;
}

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