/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
*/

/* Reset Events Manager layout on this page */
.page-id-995 .em-events {
  display: block;
}

.page-id-995 .em {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Individual card */
.page-id-995 .em-event.em-item {
  padding: 20px;
  background: linear-gradient(to bottom, #FF0200 15%, #A922FF, #FF00BF 120%);
  border-radius: 25px;
  border: none;
  overflow: hidden;
  box-sizing: border-box;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover lift (desktop only) */
@media (hover: hover) {
  .page-id-995 .em-event.em-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  }
}

.page-id-995 .em-item-image {
  height: 250px;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-id-995 .em-item-image-wrapper {
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-id-995 .em-item-image img {
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center;
}

.page-id-995 .em-item-title {
  font-family: var(--secondary-font, inherit);
  font-size: 1.4rem;
  font-weight: 700;
}

.page-id-995 .em-item-title a {
  color: #140B1B;
  text-decoration: none;
}

.page-id-995 .em-item-title a:hover {
  color: #140B1B;
  font-weight: 800;
  text-decoration: underline;
}

.page-id-995 .em-item-meta-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font: inherit;
  line-height: 1.35;
  color: #140B1B;
  margin-bottom: 0.35rem;
}

/* Emphasise date */
.page-id-995 .em-event-date {
  font-weight: 600;
}

.page-id-995 .em-event-location a {
  color: #140B1B;
  text-decoration: underline;
}

.page-id-995 .em-event-location a:hover {
  color: #140B1B;
  font-weight: 600;
  text-decoration-thickness: 2px;
}

.page-id-995 .em .em-icon {
  filter: brightness(0) saturate(100%) invert(9%) sepia(15%) saturate(2400%) hue-rotate(215deg) brightness(85%) contrast(100%);
}

/* Restore a simple grid on the correct Events Manager wrapper */
.page-id-995 .em-list.em-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Only cards should behave like grid items */
.page-id-995 .em-list.em-events-grid > .em-event {
  display: block;
}

/* Pagination spans full width */
.page-id-995 .em-list.em-events-grid .em-pagination,
.page-id-995 .em-list.em-events-grid .em-pagination-wrapper {
  grid-column: 1 / -1;
}

.page-id-995 .em-event.em-item:not(:has(a:hover)) {
  cursor: pointer;
}

