/* calendar-styles.css */
.calendar-event {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  grid-template-rows: auto auto auto;
  /* Changed to auto to adjust row height */
  grid-column-gap: 10px;
  -moz-column-gap: 100px;
  column-gap: 100px;
  margin: 40px 0;
  height: 100%;
  width: 1070px;
  border-radius: 4px;
  transition: all 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  cursor: pointer; /* Added cursor pointer to indicate clickability */
}

.calendar-event:hover {
  box-shadow: none;
  transition: all 0.5s ease;
}

.calendar-event h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 0px;
  padding: 8px 0;
  text-align: left;
  align-self: start;
}
.calendar-event h3 a {
  transition: all 0.5s ease;
}
  
.calendar-event h3 a:hover {
  color:var(--wp--preset--color--ar-color-secondary-04);
  text-decoration: none;
  transition: all 1s ease;
}

.event-date {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: var(--wp--preset--color--ar-color-primary-04);
  position: relative;
  font-size: large;
  padding: 12px;
}

.start-date {
  font-weight: 700;
  font-size: larger;
  font-family: var(--wp--preset--font-family--ar-trench-slab-variable), sans-serif;
  color: var(--wp--preset--color--ar-color-secondary-04);
  align-self: start;
}

.event-date::after {
  content: '';
  position: absolute;
  left: 120%;
  top: 25%;
  bottom: 0;
  width: 1px;
  border-left: 2px solid var(--wp--preset--color--ar-color-primary-04);
  margin-left: -15px;
  height: 50%;
}

.event-location {
  grid-column: 2;
  grid-row: 2;
  color: var(--wp--preset--color--ar-color-secondary-04);
  padding: 0 0 8px 0;
  align-self: start;
  font-weight: 300 !important;
  font-size: medium;
}


.event-excerpt {
  grid-column: 2;
  grid-row: 3;
  padding: 0 0 1.25rem 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.event-excerpt p {
  color: #333;
  display: block;
  margin-bottom: 0.625rem;
}

/* Remove the inline display and adjust margins */
.event-excerpt .event-details {
  color: var(--wp--preset--color--ar-color-primary-04);
  text-decoration: none;
  font-weight: 500;
  transition: all 1s ease;
  display: inline-block;
  /* margin-top: 5px; */
}

/* Button styles - keep the same but add display block */
.check-out-event,
.learn-about-the-project {
  display: inline-block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.event-featured-image-container {
  grid-column: 3;
  grid-row: 1 / 4;
  overflow: hidden;
}

.calendar-event .event-featured-image-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
}

.calendar-event .event-featured-image-container img {
  width: 100%;
  height: 100%;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  -o-object-fit: cover;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 4px;
}

/* UPDATED: Image becomes colored when hovering over entire card */
.calendar-event:hover .event-featured-image-container img {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
  transition: all 0.3s ease;
}

.calendar-event .event-featured-image-container::after {
  content: "";
  position: absolute;
  width: calc(100%);
  height: calc(100%);
  background-color: #6F8BFF;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 4px;
}

/* UPDATED: Overlay disappears when hovering over entire card */
.calendar-event:hover .event-featured-image-container::after {
  opacity: 0;
}

/* Button centering styles - the button that show ievetn on the Post page */
.event-project-button-container {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* Make sure the Gutenberg event link block aligns center too */
.wp-block-calendar-plugin-event-link {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* Past event styles */
.past-event {
  opacity: 0.7;
}

.past-event h3,
.past-event a,
.past-event .start-date,
.past-event .event-date,
.past-event .event-location,
.past-event .event-excerpt {
  color: var(--wp--preset--color--ar-color-neutral-03);
}

/* PAST learn-about-the-event */
.past-event .learn-about-the-project {
  border: 2px solid var(--wp--preset--color--ar-color-neutral-01);
  opacity: 0.7;
}
.past-event .learn-about-the-project:hover {
  background-color: var(--wp--preset--color--ar-color-neutral-02);
  opacity: 0.7;
}

/* PAST check-out-event */
.past-event .check-out-event {
  border: 2px solid var(--wp--preset--color--ar-color-neutral-01);
  opacity: 0.7;
}
.past-event .check-out-event:hover {
  background-color: var(--wp--preset--color--ar-color-neutral-02);
  opacity: 0.7;
}


/* Button */
.check-out-event {
  color: var(--wp--preset--color--ar-color-primary-04);
  padding: 4px;
  background-color: var(--wp--preset--color--ar-color-neutral-00);
  border: 2px solid var(--wp--preset--color--ar-color-primary-04);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  transition: all 1s ease;
  font-size: small;
}

.check-out-event:hover {
  color: var(--wp--preset--color--ar-color-neutral-00);
  transition: all 1s ease;
  background-color: var(--wp--preset--color--ar-color-primary-04);
}

/* Button */
.learn-about-the-project {
  color: var;
  color: var(--wp--preset--color--ar-color-secondary-05);
  padding: 4px;
  background-color: var(--wp--preset--color--ar-color-neutral-00);
  border: 2px solid var(--wp--preset--color--ar-color-secondary-05);
  border-radius: 3px;
  text-decoration: none;
  font-weight: 500;
  transition: all 1s ease;
  font-size: small;

}

.learn-about-the-project:hover {
  color: var(--wp--preset--color--ar-color-neutral-00);
  background-color: var(--wp--preset--color--ar-color-secondary-05);
  border-radius: 4px;
  text-decoration: none;
  transition: all 1s ease;
  transition: all 1s ease;
}


@media (max-width: 1262px) {
  .calendar-event {
    grid-template-columns: 1fr;
    grid-template-rows: auto 100px auto auto;
    grid-column-gap: 0;
    -moz-column-gap: 0;
    column-gap: 0;
    width: auto;
  }

  .calendar-event h3 {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
  }

  .event-featured-image-container {
    grid-column: 1;
    grid-row: 2;
  }

  .event-featured-image-container img {
    height: 100px;
    border-radius: 0;
  }

  .event-date {
    grid-column: 1;
    grid-row: 3;
  }

  .event-date::after {
    display: none;
  }

  .event-location {
    grid-column: 1;
    grid-row: 4;
    padding: 0 12px;
  }

  .event-excerpt {
    grid-column: 1;
    grid-row: 5;
    padding: 12px;
  }

  .calendar-event .event-featured-image-container img {
    height: 100px;
    border-radius: 0;
    -o-object-fit: cover !important;
       object-fit: cover !important;
    -o-object-position: 100% 25% !important;
    object-position: 100% 25% !important;
  }

  
  .calendar-event .event-featured-image-container::after {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  /* Button styles */
  .check-out-event,
  .learn-about-the-project {
    text-align: center;
    margin: auto;

  }
}