/* Events Page Specific Styles */
.event-card .card-img-top {
    height: 200px; /* Fixed height for event images */
    object-fit: cover; /* Ensure images cover the area without distortion */
  }
  
  .event-card .badge {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
  }
  
  .event-card .h5 {
    min-height: 48px; /* Ensure consistent height for titles */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
  }
  
  .event-card .text-muted {
    font-size: 0.9em;
  }
  
  /* Past Events specific styling */
  .past-event-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
  }
  
  /* Event Detail Page */
  .event-detail-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    position: relative;
  }
  
  .event-detail-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  }
  
  .event-detail-hero .container {
    position: relative;
    z-index: 1;
  }
  
  .event-detail-info .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
  }
  
  .event-detail-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
  }
  
  .event-registration-form .form-control {
    border-radius: 0.5rem;
  }
  
  .event-registration-form .btn {
    border-radius: 0.5rem;
  }
  
  .event-content img {
    max-width: 100%; /* Ensure images don't overflow their container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent inline spacing issues and allow margin auto */
    margin: 1rem auto; /* Center images and add vertical spacing */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
  }