/* =========================
   Calendar wrapper
========================= */
.view-id-full-calendar-view {
  margin-top: 24px;
}

.view-id-full-calendar-view .view-calendar {
  background: #f8fafc;
  padding: 18px;
  border: 1px solid #dbe3ec;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* =========================
   Filter area
========================= */
.view-id-full-calendar-view .view-filters {
  margin-bottom: 18px;
}

.view-id-full-calendar-view .views-exposed-form .form--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.view-id-full-calendar-view .views-exposed-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #1f2937;
}

.view-id-full-calendar-view .form-select,
.view-id-full-calendar-view .form-submit {
  min-height: 44px;
  border-radius: 12px;
}

.view-id-full-calendar-view .form-select {
  padding: 10px 14px;
  border: 1px solid #cfd8e3;
  background: #fff;
}

.view-id-full-calendar-view .form-submit {
  padding: 10px 18px;
  border: 0;
  background: #0e2d85;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.view-id-full-calendar-view .form-submit:hover,
.view-id-full-calendar-view .form-submit:focus {
  background: #0a2368;
}

/* =========================
   Top pager
========================= */
.view-id-full-calendar-view .calendar-view-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
  flex-wrap: wrap;
}

.view-id-full-calendar-view .calendar-view-pager .pager__item {
  margin: 0;
}

.view-id-full-calendar-view .calendar-view-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #0e2d85;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.view-id-full-calendar-view .calendar-view-pager a:hover,
.view-id-full-calendar-view .calendar-view-pager a:focus {
  background: #0a2368;
  transform: translateY(-1px);
}

.view-id-full-calendar-view .pager__current {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.view-id-full-calendar-view .pager-month-year-selects {
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-id-full-calendar-view .pager-month-select,
.view-id-full-calendar-view .pager-year-select {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #cfd8e3;
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
  color: #1f2937;
}

/* =========================
   Calendar table
========================= */
.view-id-full-calendar-view .calendar-view-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #dde5ee;
  border-radius: 18px;
  overflow: hidden;
  table-layout: fixed;
}

.view-id-full-calendar-view .calendar-view-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 14px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
}

.view-id-full-calendar-view .calendar-view-table thead th {
  background: #1f2937;
  color: #fff;
  padding: 16px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 0;
}

.view-id-full-calendar-view .calendar-view-table tbody td {
  /* width: 100%; */
  vertical-align: top;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  padding: 0;
  min-height: 170px;
  height: auto;
}

/* Remove last right border visually */
.view-id-full-calendar-view .calendar-view-table tbody tr td:last-child {
  border-right: 0;
}

/* =========================
   Day cell
========================= */
.view-id-full-calendar-view .calendar-view-day {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-height: 170px;
  height: 100%;
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* Past/other month cells */
.view-id-full-calendar-view td.previous-month .calendar-view-day,
.view-id-full-calendar-view td.next-month .calendar-view-day {
  background: #f3f4f6;
}

/* Today */
.view-id-full-calendar-view td.is-today .calendar-view-day {
  background: #fff8db;
  box-shadow: inset 0 0 0 2px #d4a900;
}

/* Day number */
.view-id-full-calendar-view .calendar-view-day__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  margin-bottom: 2px;
}

.view-id-full-calendar-view td.previous-month .calendar-view-day__number,
.view-id-full-calendar-view td.next-month .calendar-view-day__number {
  background: #9ca3af;
}

.view-id-full-calendar-view td.is-today .calendar-view-day__number {
  background: #b45309;
}

/* =========================
   Event list
========================= */
.view-id-full-calendar-view .calendar-view-day__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.view-id-full-calendar-view .calendar-view-day__rows.empty {
  flex: 1;
}

/* Each event card */
.view-id-full-calendar-view .calendar-view-day__row {
  margin: 0;
  padding: 10px 10px 13px;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-left: 4px solid #0e2d85;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  min-width: 0;
  max-height: 92px;
}

/* Event hover */
.view-id-full-calendar-view .calendar-view-day__row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

/* Event title */
.view-id-full-calendar-view .calendar-view-day__row .views-field-title {
  margin-bottom: 4px;
  min-width: 0;
}

.view-id-full-calendar-view .calendar-view-day__row .views-field-title a {
  color: #111827;
  text-decoration: none;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Event time */
.view-id-full-calendar-view .calendar-view-day__row .views-field-field-date-time {
  font-size: 0.92rem;
  color: #4b5563;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actual time more important */
.view-id-full-calendar-view .calendar-view-day__row .views-field-field-date-time .field-content {
  font-weight: 700;
  color: #0e2d85;
  white-space: nowrap;
}

/* Focus state for accessibility */
.view-id-full-calendar-view .calendar-view-day__row .views-field-title a:focus,
.view-id-full-calendar-view .calendar-view-day__row .views-field-title a:focus-visible,
.view-id-full-calendar-view .calendar-view-pager a:focus,
.view-id-full-calendar-view .calendar-view-pager a:focus-visible,
.view-id-full-calendar-view .form-select:focus,
.view-id-full-calendar-view .form-submit:focus,
.view-id-full-calendar-view .pager-month-select:focus,
.view-id-full-calendar-view .pager-year-select:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* =========================
   Better empty cells
========================= */
.view-id-full-calendar-view td.empty .calendar-view-day {
  justify-content: flex-start;
}

/* =========================
   Responsive
========================= */
@media (max-width: 991px) {
  .view-id-full-calendar-view .calendar-view-pager {
    justify-content: center;
  }

  .view-id-full-calendar-view .pager__current {
    order: -1;
    width: 100%;
  }

  .view-id-full-calendar-view .calendar-view-table thead th {
    font-size: 0.82rem;
    padding: 12px 6px;
  }

  .view-id-full-calendar-view .calendar-view-table tbody td {
    min-height: 150px;
    height: auto;
  }

  .view-id-full-calendar-view .calendar-view-day {
    min-height: 150px;
    padding: 10px;
  }

  .view-id-full-calendar-view .calendar-view-day__row {
    padding: 9px;
    max-height: 84px;
  }

  .view-id-full-calendar-view .calendar-view-day__row .views-field-title a {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .view-id-full-calendar-view .calendar-view-day__row .views-field-field-date-time {
    font-size: 0.84rem;
  }
}

@media (max-width: 767px) {
  .view-id-full-calendar-view .view-calendar {
    padding: 12px;
    border-radius: 16px;
  }

  .view-id-full-calendar-view .calendar-view-table caption {
    font-size: 1.3rem;
  }

  .view-id-full-calendar-view .calendar-view-day__number {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .view-id-full-calendar-view .calendar-view-day {
    padding: 8px;
    min-height: 130px;
  }

  .view-id-full-calendar-view .calendar-view-day__rows {
    gap: 5px;
  }

  .view-id-full-calendar-view .calendar-view-day__row {
    padding: 8px;
    border-radius: 12px;
    max-height: 72px;
  }

  .view-id-full-calendar-view .calendar-view-day__row .views-field-title {
    margin-bottom: 2px;
  }

  .view-id-full-calendar-view .calendar-view-day__row .views-field-title a {
    font-size: 0.82rem;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .view-id-full-calendar-view .calendar-view-day__row .views-field-field-date-time {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-id-full-calendar-view .calendar-view-day__row,
  .view-id-full-calendar-view .calendar-view-pager a {
    transition: none;
  }
}


/* Past days */
.view-id-full-calendar-view td.is-past.current-month .calendar-view-day {
  background: #f3f4f6;
}

/* Day number */
.view-id-full-calendar-view td.is-past.current-month .calendar-view-day__number {
  background: #9ca3af;
  color: #ffffff;
}

/* Event card */
.view-id-full-calendar-view td.is-past.current-month .calendar-view-day__row {
  background: #f8fafc;
  border-left-color: #94a3b8;
}

/* Text */
.view-id-full-calendar-view td.is-past.current-month .views-field-title a,
.view-id-full-calendar-view td.is-past.current-month .views-field-field-date-time .field-content {
  color: #64748b;
}
