/* === Event Grid Container === */
.cep-event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* === Grid Columns === */
.cep-cols-2 .cep-event-item { flex: 1 0 calc(50% - 20px); }
.cep-cols-3 .cep-event-item { flex: 1 0 calc(33.333% - 20px); }
.cep-cols-4 .cep-event-item { flex: 1 0 calc(25% - 20px); }

/* === Event Item Box === */
.cep-event-item {
  border: 1px solid #ddd;
  padding: 15px;
  box-sizing: border-box;
  background-color: #fafafa;
  border-radius: 6px;
  transition: background 0.3s;
}
.cep-event-item:hover {
  background-color: #f0f0f0;
}

/* === Thumbnail Styling === */
.cep-event-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}
.cep-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* === Event Title === */
.cep-event-title {
  font-size: 18px;
  margin: 10px 0 5px;
}
.cep-event-title a {
  text-decoration: none;
  color: #222;
}

/* === Event Date === */
.cep-event-date {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  padding-top:10px;
}

/* (Optional) Remove if not showing relative time */
.cep-event-date .cep-relative {
  display: none; /* Or remove this element in PHP */
}

/* === Pagination === */
.cep-pagination {
  text-align: center;
  margin-top: 20px;
}
.cep-pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  gap: 10px;
  margin: 0;
}
.cep-pagination li a,
.cep-pagination li span {
  padding: 6px 12px;
  background: #eee;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}
.cep-pagination .current {
  background: #333;
  color: #fff;
}

/* === Responsive Fixes (Optional) === */
@media (max-width: 768px) {
  .cep-event-item {
    flex: 1 0 100%;
  }
}

.cep-calendar {
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 20px;
  background: #f9f9f9;
}

.cep-calendar-nav {
  margin-bottom: 10px;
}

.cep-calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.cep-calendar-table th,
.cep-calendar-table td {
  padding: 6px;
  border: 1px solid #ccc;
}

.cep-calendar-table .has-event a {
  font-weight: bold;
  text-decoration: underline;
  color: #d00;
}
