.rmc-main-content.rmc-events-page-shell {
  width: 100%;
  max-width: none;
  padding: clamp(16px, 4vw, 32px) var(--rmc-page-gutter, 16px) clamp(36px, 7vw, 72px);
  background: #f2f8f7;
  color: #243d40;
}

.rmc-events-page-shell #Content {
  background: transparent;
}

.rmc-events-wrapper {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.rmc-event-filters {
  max-width: none;
  margin: 16px 0 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d4e4e1;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  box-shadow: none;
}

.rmc-event-filters input,
.rmc-event-filters select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d4e4e1;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  background: #fff;
}

.rmc-event-filters button {
  background: #0b6e6b;
  color: #fff;
  border: none;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rmc-event-filters button:hover {
  background: #29AEAE;
}

.rmc-events-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: none;
  margin: 0 auto;
  align-items: start;
}

.rmc-event-card {
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  position: relative;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #d4e4e1;
  box-shadow: none;
  overflow-wrap: anywhere;
  transition: border-color 0.2s ease;
}

.rmc-event-card:hover {
  border-color: #0e8f8b;
}

.rmc-event-img {
  height: 155px;
  overflow: hidden;
  background: #f1f1f1;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.rmc-event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.event-date-badge {
  position: absolute;
  top: -22px;
  left: 18px;
  width: 62px;
  height: 62px;
  background: #133a3a;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 5px 14px rgba(0,0,0,0.25);
  border: 3px solid #29AEAE;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.event-date-badge .month {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-transform: capitalize;
}

.event-date-badge .month::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: #f4c542;
  margin: 4px auto 3px;
}

.event-date-badge .day {
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.rmc-event-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f0f0f0;
}

.rmc-event-info h3 {
  color: #133a3a;
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.3;
}

.rmc-event-organizer {
  font-size: 15px;
  font-weight: 800;
  color: #29AEAE;
  margin: 0 0 10px !important;
  line-height: 1.25;
}

.rmc-event-info p {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.5;
}

.rmc-event-details {
  margin-top: 12px !important;
  display: block;
}

.rmc-event-contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
}

.rmc-event-contact h4 {
  color: #133a3a;
  font-size: 16px;
  margin: 0 0 7px;
}

.rmc-event-contact a:not(.rmc-event-button) {
  color: #167d7c;
  overflow-wrap: anywhere;
}

.rmc-event-button {
  display: inline-block;
  margin-top: 18px;
  background: #29AEAE;
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  font-size: 15px;
}

.rmc-event-button:hover {
  background: #133a3a;
}

.rmc-no-events,
.rmc-no-filter-results {
  grid-column: 1 / -1;
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  text-align: center;
  color: #133a3a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.rmc-no-filter-results {
  display: none;
}

.rmc-no-events h3,
.rmc-no-filter-results h3 {
  color: #29AEAE;
}

.rmc-floating-submit {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.rmc-floating-submit a {
  background: #29AEAE;
  color: #fff !important;
  padding: 14px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  display: inline-block;
  transition: all 0.2s ease;
  opacity: 0.95;
}

.rmc-floating-submit a:hover {
  background: #133a3a;
  transform: translateY(-2px);
  opacity: 1;
}

   
    .rmc-view-toggle {
  max-width: none;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d4e4e1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.rmc-view-toggle button,
.rmc-month-nav button {
  background: #133a3a;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.rmc-view-toggle button.active,
.rmc-view-toggle button:hover,
.rmc-month-nav button:hover {
  background: #29AEAE;
}

.rmc-month-view {
  max-width: 1320px;
  margin: 0 auto 35px;
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.rmc-month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rmc-month-title {
  color: #133a3a;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.rmc-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid #e5e5e5;
  border-left: 1px solid #e5e5e5;
}

.rmc-calendar-weekday,
.rmc-calendar-day {
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.rmc-calendar-weekday {
  background: #133a3a;
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 10px 6px;
  font-size: 13px;
}

.rmc-calendar-day {
  min-height: 105px;
  padding: 8px;
  background: #fff;
}

.rmc-calendar-day.is-empty {
  background: #f7f7f7;
}

.rmc-calendar-date {
  font-weight: 800;
  color: #133a3a;
  margin-bottom: 6px;
}

.rmc-calendar-event {
  display: block;
  background: #e9f8f8;
  color: #133a3a !important;
  border-left: 4px solid #29AEAE;
  padding: 6px 7px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 6px;
  text-decoration: none;
}

.rmc-calendar-event:hover {
  background: #d5f1f1;
}

.rmc-calendar-event-time {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.rmc-calendar-no-events {
  text-align: center;
  padding: 28px;
  color: #133a3a;
}

@media (min-width: 640px) {
  .rmc-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rmc-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .rmc-event-filters {
    grid-template-columns: minmax(0, 1fr) 220px 92px;
  }
}

@media (max-width: 900px) {
  .rmc-event-img {
    height: 170px;
  }
}

    @media (max-width: 768px) {
  .rmc-view-toggle {
    padding-inline: 0;
  }
  .rmc-event-card {
    margin-top: 18px;
  }

  .event-date-badge {
    width: 54px;
    height: 54px;
    top: -18px;
    left: 14px;
    border-width: 2px;
  }

  .event-date-badge .month {
    font-size: 12px;
  }

  .event-date-badge .month::after {
    width: 18px;
    margin: 3px auto 2px;
  }

  .event-date-badge .day {
    font-size: 22px;
  }

  .rmc-event-info {
    padding: 20px;
  }

  .rmc-event-info h3 {
    font-size: 20px;
  }

  .rmc-event-organizer {
    font-size: 16px;
  }

  .rmc-event-info p {
    font-size: 15px;
  }

  .rmc-floating-submit {
    bottom: 20px;
    right: 15px;
    left: 15px;
    text-align: center;
  }

  .rmc-floating-submit a {
    width: 100%;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .rmc-event-img {
    height: 180px;
  }
}


  .rmc-view-toggle button {
    flex: 1;
  }

  .rmc-month-view {
    padding: 14px;
  }

  .rmc-month-title {
    font-size: 20px;
  }

@media (max-width: 640px) {
  .rmc-calendar-grid {
    display: block;
    border: none;
  }

  .rmc-calendar-weekday {
    display: none;
  }

  .rmc-calendar-day {
    min-height: auto;
    border: 1px solid #e5e5e5;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .rmc-calendar-day.is-empty {
    display: none;
  }
}

.rmc-events-page-shell #Subheader.rmc-events-hero {
  position: relative;
  margin: 0;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid #d4e4e1;
  border-radius: clamp(16px, 3vw, 24px);
  background: url('/img/rmc-events-header.jpg') center 80% / cover no-repeat;
  text-align: left;
  box-shadow: none;
}

.rmc-events-page-shell #Subheader.rmc-events-hero::after {
  display: none;
}

.rmc-events-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(17, 49, 61, 0.50);
  content: '';
}

.rmc-events-page-shell #Subheader.rmc-events-hero h1.title {
  position: relative;
  float: none;
  width: auto;
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-align: left;
}

.rmc-events-page-shell #Subheader.rmc-events-hero p {
  position: relative;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}

.rmc-view-toggle button {
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d4e4e1;
  background: #fff;
  color: #17383d;
}

.rmc-view-toggle button.active,
.rmc-view-toggle button:hover {
  border-color: #0b6e6b;
  background: #0b6e6b;
  color: #fff;
}

.rmc-event-filters :is(input, select, button):focus-visible,
.rmc-view-toggle button:focus-visible {
  outline: 2px solid #0b6e6b;
  outline-offset: 3px;
}

