/* Container for the entire program block */
.fp-container {
  margin: 1.5rem 0;
  font-family: inherit;
}

/* Instruction text */
.fp-instructions {
  display: block;
  width: 100%;
  margin: auto;
  font-weight: bold;
  text-align: center;
  color: var(--wp--preset--color--primary, #333);
}

/* Flex layout: list + calendar side by side */
.fp-flex {
  display: flex;
  gap: 1.5rem;         /* space between list and calendar */
  align-items: flex-start;
}

/* Week list panel */
.fp-week-list {
  flex: 0 0 45%;            /* fixed width on desktop */
  margin: 0;
  padding: 0.75rem 1rem;
  list-style: none;
  background: #f9f9f9;        /* light gray background */
  border: 1px solid #ddd;     /* subtle border */
  border-radius: 8px;         /* rounded corners */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* soft shadow */
}

/* List items */
.fp-week-list li {
  margin-bottom: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* For hiding long list */
.fp-week-list li.hidden {
    display: none;
}

/* Hover state */
.fp-week-list li:hover {
  background-color: #eee;
}

/* Selected (highlighted) list item */
.fp-week-list li.highlight {
  background-color: var(--wp--preset--color--primary, #5EB363);
  color: #fff;
  font-weight: bold;
}

/* Calendar panel */
#fp-calendar {
  flex: 1;
  min-width: 0;               /* important for flexbox shrink */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.5rem;
}

/* Calendar event styling */
.fc-event {
  font-size: 0.9rem;          /* increase/decrease font size */
  padding: 2px 4px;
  border-radius: 4px;
  background: #596159;
  border: #596159;
}

/* Highlighted event (from list click) */
.fc-event.fp-highlight-event {
  background: var(--wp--preset--color--primary, #5EB363);
  border: var(--wp--preset--color--primary, #5EB363);
  color: white
}

/* Responsive: stack vertically on small screens */
@media (max-width: 795px) {
  .fp-flex {
    flex-direction: column;
  }

  .fp-week-list {
    flex: 1 1 auto;
    width: 100%;
  }
}
