.aw-events,
.aw-calendar {
  --aw-blue: #1f3d70;
  --aw-blue-dark: #17305b;
  --aw-ink: #111827;
  --aw-muted: #80858f;
  --aw-line: rgba(31, 61, 112, 0.22);
  box-sizing: border-box;
  color: var(--aw-ink);
  font-family: inherit;
}

.aw-events *,
.aw-calendar * {
  box-sizing: border-box;
}

.aw-events__header {
  margin: 0 0 46px;
}

.aw-events__title {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--aw-blue);
  font-size: clamp(42px, 5vw, 72px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: uppercase;
}

.aw-events__title::after {
  content: "";
  position: absolute;
  left: 23%;
  bottom: -22px;
  width: 58%;
  height: 12px;
  background: var(--aw-blue);
  border-radius: 50%;
  transform: skewX(-18deg) rotate(-1deg);
}

.aw-events__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.aw-event-card {
  position: relative;
  display: flex;
  min-height: 232px;
  flex-direction: column;
  padding: 28px 30px 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.aw-event-card__top {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.aw-event-date {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding: 6px 4px;
  background: #dce7fa;
  border: 1px solid rgba(31, 61, 112, 0.32);
  border-radius: 6px;
  color: var(--aw-blue);
  line-height: 0.84;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.aw-event-date__day {
  font-size: 34px;
  font-weight: 900;
}

.aw-event-date__month {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}

.aw-event-card__title {
  margin: 0 0 8px;
  font-family: "Source Sans 3" !important;
  font-size: clamp(18px, 1.6vw, 24px);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.03;
}

.aw-event-card__title a {
  color: inherit;
  text-decoration: none;
}

.aw-event-card__title a:hover {
  color: var(--aw-blue);
}

.aw-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px;
  color: var(--aw-muted);
  font-size: 16px;
  line-height: 1.15;
}

.aw-event-card__meta-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.aw-event-card__meta-item::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: currentColor;
  opacity: 0.9;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.aw-event-card__meta-item--time::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.73-4-2.27V7Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.73-4-2.27V7Z'/%3E%3C/svg%3E");
}

.aw-event-card__meta-item--location::before {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.25 8 12 8 12s8-6.75 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a8 8 0 0 0-8 8c0 5.25 8 12 8 12s8-6.75 8-12a8 8 0 0 0-8-8Zm0 11a3 3 0 1 1 0-6 3 3 0 0 1 0 6Z'/%3E%3C/svg%3E");
}

.aw-event-card__excerpt {
  margin: 34px 0 26px;
  font-size: 18px;
  line-height: 1.55;
}

.aw-event-card__button {
  align-self: flex-end;
  margin-top: auto;
  min-width: 150px;
  padding: 8px 15px;
  background: linear-gradient(180deg, #294b82, var(--aw-blue-dark));
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.aw-event-card__button:hover,
.aw-event-card__button:focus {
  background: var(--aw-blue);
  color: #fff;
}

.aw-events__empty {
  margin: 0;
  color: var(--aw-muted);
  font-size: 20px;
}

.aw-calendar {
  width: 100%;
  max-width: 520px;
  height: 100%;
  min-height: 390px;
  padding: 30px;
  background: rgba(245, 248, 255, 0.54);
  background-image: var(--aw-calendar-background-image);
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.wp-block-column:has(.aw-calendar) {
  display: flex;
  flex-direction: column;
}

.wp-block-column:has(.aw-calendar) .aw-calendar {
  flex: 1;
  align-self: stretch;
}

.wp-block-column:has(.aw-calendar) > .wp-block-shortcode,
.wp-block-column:has(.aw-calendar) > *:has(.aw-calendar) {
  display: flex;
  flex: 1;
  width: 100%;
}

.et_pb_row:has(.aw-calendar) {
  align-items: stretch;
}

.et_pb_column:has(.aw-calendar),
.et_pb_code:has(.aw-calendar),
.et_pb_code_inner:has(.aw-calendar) {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.et_pb_code_inner:has(.aw-calendar) .aw-calendar {
  flex: 1;
  align-self: stretch;
}

.aw-calendar__toolbar {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 20px;
  gap: clamp(6px, 2vw, 12px);
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}

.aw-calendar__toolbar > * {
  min-width: 0;
}

.aw-calendar__nav {
  position: relative;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.aw-calendar__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #111827;
  border-left: 3px solid #111827;
  transform: translate(-35%, -50%) rotate(-45deg);
}

.aw-calendar__nav--next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.aw-calendar__nav:hover {
  background: rgba(255, 255, 255, 0.72);
}

.aw-calendar__month,
.aw-calendar__year {
  width: 100%;
  min-width: 0;
  height: 30px;
  box-sizing: border-box;
  padding: 0 38px 0 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 9px;
  color: #111827;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}

.aw-calendar__weekdays,
.aw-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.aw-calendar__weekdays {
  margin-bottom: 12px;
  color: #7a92b8;
  font-size: 12px;
  text-align: center;
}

.aw-calendar__day {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: #111827;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}

.aw-calendar__day:disabled {
  cursor: default;
}

.aw-calendar__day--muted {
  color: rgba(17, 24, 39, 0.22);
}

.aw-calendar__day--today {
  box-shadow: inset 0 0 0 2px rgba(31, 61, 112, 0.28);
}

.aw-calendar__day--event {
  background: #fff;
  color: #111827;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  cursor: pointer;
}

.aw-calendar__day--event:hover,
.aw-calendar__day--event:focus {
  background: var(--aw-blue);
  color: #fff;
  outline: none;
}

.aw-calendar__day--featured {
  background: var(--aw-blue);
  color: #fff;
}
@media (max-width: 980px) {
  .aw-calendar {
    min-height: auto;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .aw-events__grid {
    grid-template-columns: 1fr;
  }

  .aw-events__title {
    font-size: 42px;
  }

  .aw-event-card {
    padding: 22px;
  }

  .aw-event-card__top {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
  }

  .aw-event-date {
    width: 64px;
    height: 64px;
  }

  .aw-event-date__day {
    font-size: 30px;
  }

  .aw-event-date__month {
    font-size: 18px;
  }

  .aw-event-card__title {
    font-size: 28px;
  }

  .aw-event-card__meta,
  .aw-event-card__excerpt {
    font-size: 18px;
  }

  .aw-event-card__button {
    width: 100%;
    font-size: 18px;
  }

  .aw-calendar {
    min-height: 0;
    padding: 28px 18px 24px;
    border-radius: 14px;
  }

  .aw-calendar__toolbar {
    grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr) 20px;
    gap: 6px;
    margin-bottom: 34px;
  }

  .aw-calendar__nav {
    width: 20px;
    height: 20px;
  }

  .aw-calendar__month,
  .aw-calendar__year {
    height: 40px;
    font-size: 18px;
  }

  .aw-calendar__weekdays,
  .aw-calendar__day {
    font-size: 15px;
  }

  .aw-calendar__weekdays,
  .aw-calendar__grid {
    gap: 6px;
  }
}
