.calendarBlock {
  margin: 0 auto;
}

.calendarBlock__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.calendarBlock__header {
  color: #000;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  margin: 0;
  text-transform: uppercase;
}

/* Filter Sections */
.calendarBlock__filters {
  margin-bottom: 30px;
}

.calendarBlock__dayFilter,
.calendarBlock__categoryFilter {
  margin-bottom: 20px;
}

.calendarBlock__dayFilter {
  background: #007668;
  padding: 40px 0px;
}

.calendarBlock__categoryFilter {
  padding: 40px 0px;
}

.calendarBlock__categoryFilter .calendarBlock__filterTitle {
  color: #000;
  margin-bottom: 20px;
}

.calendarBlock__dayFilter .calendarBlock__filterTitle {
  color: #fff;
  font-family: "Asap", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 20px;
}

.calendarBlock__filterTitle {
  color: var(--Svart, #000);
  font-family: Asap;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0 0 15px 0;
  width: 90%;
  margin: 0 auto;
  max-width: 1280px;
}

/* Filter Buttons */
.calendarBlock__dayButtons,
.calendarBlock__categoryButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 90%;
  margin: 0 auto;
  max-width: 1280px;
}

.calendarBlock__dayButton,
.calendarBlock__categoryButton {
  border-radius: 20px;
  border: 1px solid var(--Orange, #eb5a37);
  background: var(--Hvid, #fffffe);
  color: var(--Orange, #eb5a37);
  font-family: Asap;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.calendarBlock__dayButton:hover,
.calendarBlock__categoryButton:hover {
  background: var(--Orange, #eb5a37);
  border-color: var(--Orange, #eb5a37);
  color: #fff;
  transform: translateY(-2px);
}

.calendarBlock__dayButton.active,
.calendarBlock__categoryButton.active {
  background: #eb5a37;
  border-color: #eb5a37;
  color: #fff;
}

.calendarBlock__dayButton.active:hover,
.calendarBlock__categoryButton.active:hover {
  background: var(--Orange, #eb5a37);
  border-color: var(--Orange, #eb5a37);
}

/* Grid Layout */
.calendarBlock__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  width: 90%;
  margin: 0 auto;
  max-width: 1280px;
}

/* Card Styling (same as smallCalendarBlock) */
.calendarBlock__card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.calendarBlock__card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.calendarBlock__image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}

.calendarBlock__cardContent {
  padding: 15px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendarBlock__dateTime {
  position: absolute;
  top: 5px;
  left: 5px;
  color: #fff;
  font-family: "Asap", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  padding: 13px;
  border-radius: 2px;
  min-width: 85%;
  margin-bottom: 6px;
  background: var(--Grn, #017668);
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

.calendarBlock__dateTime svg {
  margin-right: 10px;
}

.calendarBlock__title {
  color: var(--Grn, #017668);
  font-family: "Asap", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.calendarBlock__location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-family: "Asap", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.calendarBlock__organization {
  color: #000;
  font-family: "Asap", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 5px;
}

.calendarBlock__excerpt {
  color: #000;
  font-family: "Asap", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.calendarBlock__categoryTitle {
  color: var(--Grn, #017668);
  font-family: "Asap", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-top: 21px;
}

.calendarBlock__categories {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.calendarBlock__categoryItem {
  border-radius: 20px;
  background: var(--Orange, #eb5a37);
  padding: 6px 12px;
  color: #fff;
  font-family: "Asap", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* No Results Message */
.calendarBlock__noResults {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-family: "Asap", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .calendarBlock__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .calendarBlock__grid {
    grid-template-columns: 1fr 1fr;
  }

  .calendarBlock__filterTitle {
    font-size: 16px;
  }

  .calendarBlock__dayButton,
  .calendarBlock__categoryButton {
    font-size: 13px;
    padding: 8px 14px;
  }
}

@media (max-width: 600px) {
  .calendarBlock__grid {
    grid-template-columns: 1fr;
  }

  .calendarBlock__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .calendarBlock__filters {
    margin-bottom: 20px;
  }

  .calendarBlock__dayFilter,
  .calendarBlock__categoryFilter {
    margin-bottom: 15px;
  }

  .calendarBlock__filterTitle {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .calendarBlock__dayButton,
  .calendarBlock__categoryButton {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .calendarBlock__dayButtons,
  .calendarBlock__categoryButtons {
    gap: 8px;
  }

  .calendarBlock__dayButton,
  .calendarBlock__categoryButton {
    font-size: 11px;
    padding: 5px 10px;
  }
}

.calendarBlock__recurring {
  font-size: 0.8em;
  color: #f4b743;
  font-style: italic;
  margin-left: 5px;
}

.calendarBlock__recurringFilter {
  margin-top: 1rem;
  text-align: center;
}

.calendarBlock__recurringToggle {
  background: #eb5a37;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.calendarBlock__recurringToggle:hover {
  background: #d44a2a;
}

.calendarBlock__recurringToggle.active {
  background: #2c2c2c;
}

/* Pagination */
.calendarBlock__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 90%;
  max-width: 1280px;
  margin: 2rem auto 0;
}

.calendarBlock__paginationNumbers {
  display: flex;
  gap: 0.5rem;
}

.calendarBlock__paginationButton {
  color: #000;
  font-family: "Asap", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  cursor: pointer;
  border: none;
  background-color: transparent;
  transition: all 0.3s ease;
}

.calendarBlock__paginationButton:hover:not(:disabled) {
  font-weight: 700;
}

.calendarBlock__paginationButton.active {
  font-weight: 700;
}

.calendarBlock__paginationButton[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
  pointer-events: none;
}

@media (max-width: 600px) {
  .calendarBlock__pagination {
    flex-wrap: wrap;
  }

  .calendarBlock__paginationNumbers {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 1rem;
  }
}
