.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media screen and (min-width: 332px) and (max-width: 766px) {
  .events-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (min-width: 812px) and (max-width: 1023px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-item {
  background: #ff7f001a;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ic-agenda-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.ic-agenda-filter-label {
  position: relative;
  padding: 10px 15px;
  background-color: #f0f0f0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}

.ic-agenda-filter-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.ic-agenda-filter-label span {
  font-size: 16px;
  color: #333;
}

.ic-agenda-filter-label:hover {
  background-color: #e0e0e0;
}

.ic-agenda-filter-label input[type="checkbox"]:checked + span {
  font-weight: 400;
  color: #fff;
}

.event-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: start;
  font-weight: bold;
  font-size: 1rem;
  
}

.event-date .event-year,
.event-date .event-month {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
}

.event-date .event-day {
  font-size: 32px;
  margin: 0;
  text-transform: uppercase;
}

.event-item.event-today {
  background-color: #ff7f00;
  color: #fff; 
  padding: 15px;
  border-radius: 16px;
}

.event-item.event-today h3 {
  color: #fff;
}

.event-item.event-today .event-date {
  color: #fff;
}

.event-image-container img {
  height: 80px !important;
  min-height: 80px;
  max-height: 80px;
  object-fit: cover;
}

.event-image-container-large img {
  height: 150px;
  object-fit: cover;
  width: 100%;
}


/* Modal */

.ic-agenda-modal-header {
  background-color: #ff7f00;
  padding: 48px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: 700;
  color: #fff;
}

h2#ic-agenda-modal-title {
  color: #fff;
}

.modalWrapper {
  display: flex;
  gap: 4rem;
  flex-direction: row;
  padding: 24px;
}

@media screen and (max-width: 992px) {
  .modalWrapper {
    display: flex;
    gap: 4rem;
    flex-direction: column;
  }
}

.ic-agenda-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.ic-agenda-modal-content {
  background-color: #fefefe;
  margin: 0 auto;
  border: 1px solid #888;
  width: 80%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
}

@media screen and (max-width: 992px) {
  .ic-agenda-modal-content {
    width: 100%;
  }
  
}

.ic-agenda-modal-close {
  color: #212121;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 30px;
  font-weight: normal;
  cursor: pointer;
  background-color: #fff;
  border-radius: 100%;
  width: 32px;
  height: 32px;
  text-align: center;
}

.ic-agenda-modal-left,
.ic-agenda-modal-right {
  width: 48%;
  display:flex;
  flex-direction:column;
  padding: 24px;
  border: 1px solid #efefef;
  border-radius: 30px;
}

@media screen and (max-width: 992px) {
.ic-agenda-modal-left,
.ic-agenda-modal-right  {
  width: 100%;
}
}

.ic-agenda-modal-right img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

/* 
#ic-agenda-modal-details {
  padding: 24px;
  border: 1px solid #efefef;
  border-radius: 30px;
} */

.modalInfo {
  padding: 24px;
  border: 1px solid #efefef;
  border-radius: 16px;
}

span.dateEvent {
  font-weight: 700;
  line-height: 46px;
}


/* Buttons */

.ic-agenda-button {
  border: 0;
  background-color: #ff7f00;
  color: #fff;
  border-radius: 16px;
  padding: 16px 32px;
  transition: background-color 0.3s ease-in;
  font-size: 16px;
  font-family: inherit;
}

.ic-agenda-button:hover {
  background-color: #213343;
  color: #fff;
}

a#ic-agenda-pdf-link {
  line-height: 24px;
}

.ic-agenda-modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.modalTime,
.modalDate {
  color: #ff7f00;
}
/* Cards */

.ic-agenda-event-cards {
  display: flex;
  flex-direction: column;
  gap:24px;
  justify-content: start;

}

.event-item-card {
  width: 100%;
  cursor: pointer;
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background-color: #ff7f00;
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.event-image-container {
  width: 15%;
  min-width: 15%;
}

.event-image-container img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.event-date-short {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
  line-height: 1;
  text-align: left;
}

.event-day-short {
  display: block;
}

.event-month-short {
  font-weight: 400;
  font-size: 16px;
}

.event-title {
  font-size: 16px;
  margin: 0;
  text-align: left;
}

/* Stijl voor geselecteerde (checked) labels */
.ic-agenda-filter-label.checked {
  background-color: #ff7f00;
  color: #333;
  cursor: pointer;
  border-radius: 30px;
  padding: 12px 32px;
  color: #fff;
}

/* Stijl voor niet-geselecteerde (unchecked) labels */
.ic-agenda-filter-label.unchecked {
  background-color: #ff7f001a;
  color: #333;
  cursor: pointer;
  border-radius: 30px;
  padding: 12px 32px;
  border: 1px solid #ff7f001a;
}

/* Divider */
.divider {
  display: block;
  width: 100%;
  height: 0px;
  border-top: 1px solid #ff7f001a;
  margin-bottom: 24px;
}

/* Error message filtering */

.no-events-message {
  padding: 20px;
  background-color: #ffefef;
  color: #d9534f;
  border: 1px solid #d9534f;
  border-radius: 16px;
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
}

/* Hide info when not exist */

.hide-event-details {
  display: none;
}
