/* =====================================================
   Agenda - Event listing
   ===================================================== */

.agenda-page {
  padding-bottom: 3rem;
}

/* --- Header row: Month title + Prev/Next --- */
.agenda-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.agenda-month-title {
  color: #0943b5;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.agenda-nav-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.agenda-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.75rem;
  border: 2px solid #0943b5;
  border-radius: 29px;
  background: none;
  color: #0943b5;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.agenda-nav-btn svg {
  width: 10px;
  height: 14px;
}

.agenda-nav-btn:hover {
  background-color: #0943b5;
  color: #fff;
}

/* --- Calendar wrapper (right-aligned) --- */
.agenda-calendar-wrapper {
  display: flex;
  margin-bottom: 1.5rem;
}

.agenda-calendar-mini {
  width: 280px;
  border: 1px solid #0943b5;
  border-radius: 5px;
  padding: 0.75rem;
  background: #fff;
}

.agenda-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.agenda-cal-header-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #4b4b4b;
}

.agenda-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid #0943b5;
  border-radius: 50%;
  background: none;
  color: #0943b5;
  cursor: pointer;
  padding: 0;
  font-size: 0.75rem;
  transition: background-color 0.2s, color 0.2s;
}

.agenda-cal-nav:hover {
  background-color: #0943b5;
  color: #fff;
}

.agenda-cal-date-input {
  font-size: 0.8rem;
  color: #4b4b4b;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
  width: 120px;
}

.agenda-cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  color: #4b4b4b;
  letter-spacing: 0.03em;
}

.agenda-cal-table th {
  font-weight: 400;
  text-align: center;
  padding: 0.2rem 0;
  color: #4b4b4b;
}

.agenda-cal-table td {
  text-align: center;
  padding: 0.25rem 0;
  cursor: default;
}

.agenda-cal-other {
  color: #c8c8c8;
}

.agenda-cal-today {
  background-color: #b5c7e9;
  border-radius: 4px;
  font-weight: 700;
}

/* --- Subtitle --- */
.agenda-subtitle {
  color: #0943b5;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

/* --- Each event item --- */
.agenda-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #707070;
}

.agenda-item:last-child {
  border-bottom: 1px solid #707070;
}

.agenda-item-titulo {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.agenda-item-titulo a {
  color: #0943b5;
  text-decoration: underline;
}

.agenda-item-titulo a:hover {
  color: #063a8c;
}

.agenda-item-desc {
  font-size: 0.95rem;
  color: #4b4b4b;
  margin: 0;
  line-height: 1.6;
}

.agenda-item-desc a {
  color: #0943b5;
  text-decoration: underline;
}

/* --- Empty state --- */
.agenda-empty {
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .agenda-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .agenda-calendar-wrapper {
    justify-content: center;
  }
}
