.grs-events {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 20px 0 40px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Reset back to standard layout alignment */
/*  min-height: 100vh;*/
  box-sizing: border-box;
}

.app-container {
  display: flex;
  width: 100%;
/*  max-width: 1000px;*/
  margin: 0 auto;
  align-items: flex-start;
  box-sizing: border-box;
}

.sidebar-left {
  background: #ffffff;
  border: 1px solid #bcbcbc;
  border-radius: 5px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.content-right {
  background: #ffffff;
  border: 1px solid #bcbcbc;
/*  border-radius: 16px;*/
  border-radius: 5px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  box-sizing: border-box;
/*  min-height: 480px;*/
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.month-year {
  font-size: 16px;
  font-weight: 600;
  color: #1a202c;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-arrows button {
  font-size: 14px;
  cursor: pointer;
  color: #b31a2a;
  font-weight: bold;
  margin-left: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-arrows button:hover {
  color: inherit;
/*  background: #f7fafc;*/
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 12px;
  column-gap: 8px;
  text-align: center;
}

.day-name {
  font-size: 13px;
  font-weight: 500;
  color: #718096;
  padding-bottom: 12px;
}

.calendar-day {
  font-size: 14px;
  color: #4a5568;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
/*  border-radius: 50%;*/
  cursor: pointer;
}

.has-event {
  position: relative;
}

.has-event .day-number {
  font-weight: 700;
  color: #2d3748;
}

/*
.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20%;
  width: 60%;
  height: 2px;
  background-color: #2d3748;
}
*/

.has-event.selected-date {
  background-color: #2d3748;
}
.has-event.selected-date span {
  color: #ffffff;
}

/* changes */

body .has-event {
  --background-position: 0% 0%;
    background-size: 100% 200%;
    font-weight: 600;
    color: #2d3748;
    background-position: var(--background-position);
    background-image: linear-gradient(to top, #2d3748 51%, transparent 51%);
    transition: background-position .2s ease;
}
body .has-event:hover {
      --background-position: 0% 100%;
/*    color: #ffffff;*/
}
body .has-event:hover span {
  color: #ffffff;
}

/* changes end */

.calendar-day.today-highlight {
  border: 2px solid #319795;
  box-sizing: border-box;
  font-weight: 700;
  color: #319795;
}

.panel-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #bcbcbc;
  padding-bottom: 12px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  text-transform: uppercase;
  margin: 0;
}

.clear-filter-btn {
  font-size: 12px;
  color: #b31a2a;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.clear-filter-btn:hover {
  color: inherit;
}

.event-card {
/*  background: #f7fafc;*/
  border: 1px solid #bcbcbc;
/*  border-radius: 12px;*/
  border-radius: 5px;
  padding: 10px;
  border-left: 4px solid #B42D28;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.event-details {
  height: stretch;
  display: flex;
  position: relative;
  flex-direction: column;
  flex-grow: 1;
}

.event-featured-img {
/*  width: 100px;*/
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #e2e8f0;
  border: 1px solid #cbd5e0;
}

.event-title {
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 6px 0;
}

.event-time {
  margin: 10px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 400;
  color: #2d3748;
  margin: 0 0 10px 0;
}

.event-link {
  margin-top: auto;
  font-size: 13px;
  color: #b31a2a;
  text-decoration: none;
  font-weight: 600;
}

/*
.event-link:hover {
  text-decoration: underline;
}
*/

.no-events {
  font-size: 14px;
  color: #a0aec0;
  text-align: center;
  padding: 40px 0;
}

@media (min-width: 1025px) {
  .app-container {
    gap: 24px;
/*    max-width: 1000px;*/
  }
  .sidebar-left {
    width: 400px;
    flex-shrink: 0;
    position: static; /* REMOVED: Sticky styling cleaned up */
  }
  .content-right {
    flex-grow: 1;
  }
}
@media (max-width: 1024px) {
  .sidebar-left {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .app-container {
    gap: 16px;
    max-width: 100%;
    padding: 0 10px;
  }
  .sidebar-left {
    width: 340px;
    flex-shrink: 0;
    position: static; /* REMOVED: Sticky styling cleaned up */
    padding: 16px;
  }
  .content-right {
    flex-grow: 1;
    padding: 16px;
  }
  .calendar-day {
    height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  .app-container {
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
  }
  .sidebar-left, .content-right {
    width: 100%;
    position: static;
    padding: 16px;
  }
  .content-right {
    min-height: auto;
  }
  .calendar-grid {
    column-gap: 4px;
    row-gap: 8px;
  }
  .calendar-day {
    height: 44px;
    font-size: 14px;
  }
  .event-card {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .event-featured-img {
    width: 100%;
    height: 100%;
  }
}