.events-calendar-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #eee;
  border: 1px solid #ddd;
}

.calendar-day {
  background: #fff;
  min-height: 100px;
  padding: 10px;
  position: relative;
}

.calendar-day.has-event {
  background: #f8f8f8;
}

.event-item {
  font-size: 14px;
  margin-bottom: 5px;
  padding: 5px;
  background: #f0f7ff;
  border-radius: 3px;
  max-width: 90%;
  position: relative;
}

.events-list {
  display: none;
}


.calendar-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f8f8;
}

.calendar-navigation a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
}
.calendar-navigation a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #363A5E;
}

.calendar-navigation h2 {
  margin: 0;
}

@media (max-width: 768px) {
  .calendar-grid {
    display: none;
  }

  .events-list {
    display: block;
  }

  .event-list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 3px;
  }
  .calendar-navigation h2 {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
  }
  .calendar-navigation a {
    font-size: 14px;
    color: #fff;
    background-color: #363A5E;
  }

}
.calendar-header {
  background: #f0f0f0;
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

.day-number {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #666;
}

.calendar-day.hover {
  background: #f5f5f5;
}

.event-time {
  color: #666;
  font-size: 12px;
  margin-right: 5px;
}

.event-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2px 4px;
  transition: background-color 0.2s ease;
}
a.event-link{
 border: none;
}
a:hover.event-link{
  border: none;
}

.event-link:hover {
  background-color: #e8f0ff;
  border-radius: 3px;
}

.event-item {
  margin-bottom: 5px;
}

.event-time {
  display: inline-block;
  min-width: 60px;
}

.events-calendar-wrapper.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Add a loading spinner if desired */
.events-calendar-wrapper.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.event-categories-filter {
  margin-bottom: 20px;
}

.event-categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-item {
  margin: 0;
}

.category-item a {
  display: inline-block;
  padding: 5px 15px;
  background: #db7b34;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
  border-bottom: none;
}

.category-item.active a {
  background: #db7b34;
  color: white;
}
.category-item a:visited {
 
  color: white;
}

.category-item a:hover {
  background: #be6c2d;
  border-bottom: none;
  color: #fff;
  filter: brightness(90%);
}

.category-item.active a:hover {
  background: #be6c2d;
}

@media (max-width: 768px) {
  .event-categories {
    gap: 5px;
  }

  .category-item a {
    padding: 3px 10px;
    font-size: 14px;
  }
}

/* Category Colors for both grid and list views */
.category-item[data-category="social"] a,
.event-item[data-category="social"],
.event-list-item[data-category="social"] {
  background-color: #ffb6c1; /* Light pink */
}

.category-item[data-category="health"] a,
.event-item[data-category="health"],
.event-list-item[data-category="health"] {
  background-color: #98fb98; /* Pale green */
}

.category-item[data-category="education"] a,
.event-item[data-category="education"],
.event-list-item[data-category="education"] {
  background-color: #87cefa; /* Light sky blue */
}

.category-item[data-category="community"] a,
.event-item[data-category="community"],
.event-list-item[data-category="community"] {
  background-color: #dda0dd; /* Plum */
}

/* Active state for category buttons */
.category-item.active[data-category="social"] a {
  background-color: #ff69b4; /* Darker pink */
}

.category-item.active[data-category="health"] a {
  background-color: #3cb371; /* Medium sea green */
}

.category-item.active[data-category="education"] a {
  background-color: #4169e1; /* Royal blue */
}

.category-item.active[data-category="community"] a {
  background-color: #9932cc; /* Dark orchid */
}

/* Add these styles for the featured image */
.event-featured-image {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.event-featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .event-featured-image {
    margin-bottom: 1.5rem;
  }
}
.event-title{
  display:block;
}
/* Event item text colors */
.event-item a,
.event-item .event-time,
.event-item .event-title {
  color: #fff;
}

/* Ensure hover state maintains white text */
.event-item .event-link:hover {
  background-color: #363A5E;
  color: #fff;
}

/* Also apply to list view event items */
.event-list-item .event-time,
.event-list-item h3,
.event-list-item h3 a {
  color: #fff;
  border: none;
}
/* No events message */
.no-events {
background-image: url(/wp-content/uploads/no-calendar-events.webp);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
height: 100%;
width: 100%;
padding: 2rem 0;
}
.no-events h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Google Calendar Link Styles */
.gcal-link {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #4285f4;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.gcal-link:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
}

.gcal-link-list {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
    transition: background-color 0.2s ease;
}

.gcal-link-list:hover {
    background: #3367d6;
    color: white;
    text-decoration: none;
}

.gcal-button-container {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  
}
.gcal-button-container img {
  display: inline-block; 
  margin-right: 15px;
}
.gcal-button-container p {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}
.gcal-button-container p:hover {
  text-decoration: underline;
}
