/* front page events styling */
.em-list-widget li {
  list-style: none !important;
}

.em ul {
  margin: 0 !important;
  padding: 0 !important;
}

/* .em.em-list-widget .em-item { */
/* display: flex; */
/* flex-flow: column; */
/* } */

.widget .em-item-info {
  padding: 0 !important;
  margin: 0 !important;
}

.em ul,
.g-wordpress-posts {
  display: flex !important;
  flex-flow: column !important;
  list-style: none !important;
  justify-content: space-between !important;
  /* height: 100% !important; */
}

.em.pixelbones li {
  margin-bottom: 0;
}

.fp-news .g-item-title,
.fp-blog .g-item-title,
.fp-publication .g-item-title,
.fp-events .em-item-name,
.em-item-name,
.em.pixelbones h3 {
  font-size: 1.5rem !important;
  color: var(--clr-third) !important;
  font-weight: var(--fw-600) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.em ul {
  height: 100%;
  justify-content: space-between !important;
  display: flex !important;
  flex-flow: column nowrap;
  margin-bottom: 0 !important;
}

.widget {
  height: 100%;
}

.em-list-widget {
  height: 100%;
}

.em-item-meta {
  color: #666;
  margin: auto 0 auto !important;
  font-size: 80% !important;
}

.event-footer {
  grid-column: span 2 !important;
}

.em-item p,
.em.pixelbones p {
  margin-block-end: 0 !important;
  margin-bottom: 1rem !important;
  padding-top: 1rem !important;
}

.em-item-image {
  height: auto !important;
}

.em-item-read-more {
  display: block;
  float: right;
}

.em-item-read-more a {
  font-size: var(--fs-200) !important;
}

#g-colTwo .em-item.em-event {
  display: grid;
  grid-template-columns: 200px 1fr;
  /* Image takes 200px, content fills rest */
  grid-template-rows: repeat(2, auto) !important;
  /* Two rows for title & details */
  align-items: flex-start;
  gap: 25px !important;
  /* margin-bottom: auto !important */
  border-bottom: 1px solid #ddd;
  /* Light gray bottom border */
  /* padding-bottom: 10px !important; */
}

#g-colTwo .em.pixelbones li {
  /* margin-bottom: 2.3445rem !important; */
  /* height: 100% !important; */
  display: flex;
  align-items: center !important;
  border: 1px solid hsla(197.9, 100%, 43.9%, 0.31);
  padding: 10px 15px !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  height: 100% !important;
  margin: 0 0 1rem !important;
}

#g-colTwo .em-item-image {
  grid-column: 1;
  /* Ensures image stays in the first column */
}

#g-colTwo .em-item-info {
  grid-column: 2;
  /* Ensures text content is in the second column */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#g-colTwo .em-item-image img {
  width: 100%;
  /* Ensures the image fits within its container */
  height: auto;
  display: block;
  border-radius: 8px;
  /* Optional rounded corners */
}

#g-colTwo .g-array-item-date i {
  margin-right: 5px !important;
}

.event-footer {
  grid-column: 1 / span 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.em.pixelbones>h2 {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-weight: 600 !important;
}

.em-item-info h2 {
  font-size: 16px !important;
  margin-bottom: 0.5rem !important;
  font-weight: var(--fw-600) !important;
}

.em-item-image-placeholder div.date {
  padding: 20px !important;
}

.event-thumbnail-wrapper {
  display: inline-block;
  width: 100%;
}

.event-label {
  background-color: var(--clr-third);
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 4px 0;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-top-left-radius: 0.375rem;
  /* match Bootstrap .rounded-start-2 top */
  border-top-right-radius: 0.375rem;
}

.event-thumbnail-wrapper img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}

#front-page-events-container .widget .em-item-image {
  margin: 0 !important;
  /* height: 120px !important; */
  object-fit: cover;
  aspect-ratio: 1/1 !important;
}

.widget .em-item-image img {
  padding: 0 !important;
}

/* EVENTS PAGINATION */

/* Style the pagination container */
.em-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
}

/* Style the page numbers */
.em-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  background: #f5f5f5;
  color: #0073aa;
  border: 1px solid #ddd;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Hover effect */
.em-pagination .page-numbers:hover {
  background: #0073aa;
  color: #fff;
}

/* Style the current page */
.em-pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  border: 1px solid #005b88;
}

/* Style next/previous buttons */
.em-pagination .next,
.em-pagination .prev {
  background: #0073aa;
  color: #fff;
  font-weight: bold;
  padding: 8px 14px;
}

.em-pagination .next:hover,
.em-pagination .prev:hover {
  background: #005b88;
}

.em.em-list .em-item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 200px) 2fr;
  border-top: 1px solid #efefef;
  padding: 30px 4px 3px;
  background-color: var(--meta-bg);
  color: var(--default-color);
}

.em-item-header .em-item-image {
  min-width: 150px;
  width: 100%;
  height: 100%;
  max-width: 400px;
}

@media only screen and (max-width: 480px) {
  .fp-news .g-item-title,
  .fp-blog .g-item-title,
  .fp-publication .g-item-title,
  .fp-events .em-item-name,
  .em-item-name,
  .em.pixelbones h3 {
    font-size: 1.1rem !important;
    color: var(--clr-third) !important;
    font-weight: var(--fw-600) !important;
    line-height: 1.4 !important;
  }

  #g-colTwo .em-item.em-event {
    display: grid;
    grid-template-columns: auto;
    /* Image takes 200px, content fills rest */
    grid-template-rows: repeat(2, auto) !important;
    /* Two rows for title & details */
    align-items: flex-start;
    gap: 25px !important;
    /* margin-bottom: auto !important */
    border-bottom: 1px solid #ddd;
    /* Light gray bottom border */
    /* padding-bottom: 10px !important; */
  }
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
  .fp-news .g-item-title,
  .fp-blog .g-item-title,
  .fp-publication .g-item-title,
  .fp-events .em-item-name,
  .em-item-name,
  .em.pixelbones h3 {
    font-size: 1.2rem !important;
    color: var(--clr-third) !important;
    font-weight: var(--fw-600) !important;
    line-height: 1.4 !important;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .fp-news .g-item-title,
  .fp-blog .g-item-title,
  .fp-publication .g-item-title,
  .fp-events .em-item-name,
  .em-item-name,
  .em.pixelbones h3 {
    font-size: 1.2rem !important;
    color: var(--clr-third) !important;
    font-weight: var(--fw-600) !important;
    line-height: 1.4 !important;
  }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  #g-colTwo .em-item.em-event {
    display: grid;
    grid-template-columns: 120px 1fr;
    /* Image takes 200px, content fills rest */
    grid-template-rows: auto auto;
    /* Two rows for title & details */
    align-items: start;
    gap: 10px !important;
    /* border-bottom: 1px solid #ddd; */
    /* Light gray bottom border */
    /* padding-bottom: 10px !important; */
  }

  #g-colTwo .em-item-image {
    grid-column: 1;
    /* Ensures image stays in the first column */
  }

  #g-colTwo .em-item-info {
    grid-column: 2;
    /* Ensures text content is in the second column */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  #g-colTwo .em-item-image img {
    width: 100%;
    /* Ensures the image fits within its container */
    height: auto;
    display: block;
    border-radius: 8px;
    /* Optional rounded corners */
  }

  .fp-news .g-item-title,
  .fp-blog .g-item-title,
  .fp-publication .g-item-title,
  .fp-events .em-item-name,
  .em-item-name,
  .em.pixelbones h3 {
    font-size: 1.2rem !important;
    color: var(--clr-third) !important;
    font-weight: var(--fw-600) !important;
    line-height: 1.4 !important;
  }
}