/**
 * @file
 * Styles for the events month navigator bar.
 */

.events-month-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  margin: 0 0 50px;
  padding: 15px 20px;
  background: #0046ad; /* Dark blue background */
  border-radius: 50px; /* Fully rounded corners */
  box-sizing: border-box;
}

.events-month-filter__label {
  min-width: 160px;
  color: #fff; /* White text */
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.events-month-filter__prev,
.events-month-filter__next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #fff;
  background-image: url('/themes/custom/i2_theme/images/icon/filter_button.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 9px 16px;
  /* Hide legacy ‹/› text if render cache still serves old markup */
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.events-month-filter__next {
  transform: rotate(180deg);
}

.events-month-filter__prev:hover,
.events-month-filter__next:hover,
.events-month-filter__prev:focus,
.events-month-filter__next:focus {
  background-color: #f0f0f0;
  outline: none;
}

.events-month-filter__prev:focus-visible,
.events-month-filter__next:focus-visible {
  box-shadow: 0 0 0 2px #0046ad, 0 0 0 4px #fff;
}

@media (max-width: 575.98px) {
  .events-month-filter {
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
  }

  .events-month-filter__label {
    min-width: 0;
    font-size: 18px;
  }

  .events-month-filter__prev,
  .events-month-filter__next {
    width: 32px;
    height: 32px;
  }
}
