.coursesIntro{
    margin-top: 2em;
    /* padding-right: 10em !important; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.coursesIntro h2{
    border-bottom: 3px solid rgb(161, 37, 47);
    font-size: larger;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-align: center;
    
}
.event-card {
    background-color: #f0ffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: space-between;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .event-image {
    font-size: 40px;
    color: #a1252f; /* Updated icon color to match the theme */
    margin-bottom: 15px;
    background-color: #555555;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333333; /* Updated heading color */
  }
  
  p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
  }
  
  .event-link {
    display: inline-block;
    background-color: #a1252f; /* Updated button color to match the theme */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  
  .event-link:hover {
    background-color: #801d26; /* Darker shade for hover effect */
  }
@media screen and (max-width: 780px){
   .coursesIntro{
    margin: 0;
    padding: .3em !important;

   }
   .coursesIntro h2{
    text-align: start;
    font-size: 14px;
    font-weight: 400;
   }
  }
    .event-content {
        position: relative;
    }

    .event-date {
        position: absolute;
        top: 10px; /* Adjust the top position as needed */
        left: 10px; /* Adjust the left position as needed */
        background-color: rgba(255, 255, 255, 0.517); /* Optional: add a background for better visibility */
        padding: 1px;
        border-radius: 5px;
    }
