  

/* Container for the component */
.comp-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 90%;
  max-width: 1200px;
  /* gap: 10px; */
}

.comp-container > div {
  border-radius: 5px;
  padding: 8px;
  box-sizing: border-box;
}

/* Image Element */
.img-element {
  flex-basis: 40%;
}

.img-element img {
  width: 100%;
  border-radius: 8px;
}

/* Schedule Box */
.container {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container h1 {
  text-align: center;
  color: #333;
}

.container p{
	text-align:center;
}


/* Event List */
#eventList {
  list-style: none;
  padding: 0;
  height: 500px;
  overflow: auto;
  
}

.event-item {
  padding: 5px 15px;
  margin-bottom: 10px;
  background: rgba(219, 240, 244);
  border-radius: 4px;
  transition: background 0.3s;
}

.event-item:hover {
  background: rgb(212, 233, 237);
}

.event-item.student {
  border-left: 10px solid #26b6a2;
}
.event-item.alumni {
  border-left: 10px solid #c1a875;
}
.event-item.public {
  border-left: 10px solid #592c88;
}

.event-item h2 {
  text-align: left;
  margin-top: 5px;
  margin-bottom:5px;
  padding-right: 40px;
  font-size: 24px;
  font-weight: lighter;
	color: #333;
}

.event-item a {
  text-decoration: none;
  color: #333;
}

.event-item p {
	margin: 0;
	text-align: left;
}


/* Flex Container */
.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  /* gap: 10px; */
}

.flex-container > div {
  padding: 8px;
}

.event-date {
  border-right: 1px solid #d4d4d4;
}

.event-title {
  flex-grow: 2;
  flex-shrink: 0;
  margin-left: 15px;
}

.event-title em{
	font-weight:bolder;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .img-element {
    flex-basis: 100%;
  }

  .schedule-box {
    flex-basis: 100%;
  }

  .flex-container {
    flex-wrap: wrap;
  }

  .event-item h2 {
    font-size: 20px;
    padding-right: 20px;
  }
}
