.details-btn {
    padding: 12px 32px;
    border-radius: 40px;
    border: 2px solid #0055a5;
    background: white;
    color: #0055a5;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
      font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05rem !important;
    line-height: normal !important;
    text-align: center !important;
    text-transform: uppercase !important;
    border-width: 0.125rem !important;
    border-style: solid !important;
    border-color: rgb(0, 77, 158) !important;
    border-image: initial !important;
    border-radius: 999px !important;
    padding: 0.5rem 1.5rem !important;
    text-decoration: none !important;
  margin-left:24px;
  margin-bottom:24px;
  }
  .details-btn:hover { background: #0055a5; color: #fff; }

  /* POPUP */
  .custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    padding: 40px 20px;
    overflow-y: auto;
  }
  .popup-content {
    background: #fff;
    max-width: 780px;
    margin: auto;
    border-radius: 12px;
    padding: 0;
    position: relative;
  }
  .popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: white;
    z-index: 2;
  }
  .popup-image {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 20px;
  }
  .popup-text {
    padding: 20px;
  }
  .popup-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
  }
  .popup-text p {
    font-size: 18px;
    line-height: 1.6;
  }

.popup-title-bar {
  padding:20px;
  background-color:#004d9e;
  border-top-left-radius:11px;
  border-top-right-radius:11px;
}

.popup-title-bar h2 {
  color:white;
}

@media (max-width:767px) {
  
  .popup-close {
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    position: absolute;
    right: 14px;
    top: 0px;
    z-index: 2;
  }
  
}

.grid-events h3.component-heading {
  color:white;
  padding-bottom:0px !important;
}

.top-label {
  padding-top:0px !important;
}
.grid-events p {
  color:white;
}

.grid_events__element {
  position: relative; 
  overflow: hidden;   
  border-radius:24px;
  min-height:370px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-start;
}



.grid_events__element::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(54,66,74,.7); 
  z-index: 1; 
}

.grid_events__element > .component-heading,
.grid_events__element > .component-content,
.grid_events__element > .details-btn,
.grid_events__element > .view-details-btn,
.grid_events__element > .top-label {
  position: relative;
  z-index: 2;
}

.grid-events {
  padding-top:50px;
  padding-bottom:50px;
}

button.details-btn.button-view-details {
  background-color: transparent;
    border: none !important;
    color: white;
    font-weight: 300 !important;
  padding:0px !important;
  margin:0px;
}

.popup-image {
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 0px;
    border-bottom-right-radius: 0px;
    margin-bottom: 20px;
  max-height:250px;
  object-fit:cover;
  }

.details-content-popup p {
  color:#36424a;
}

.details-content-popup {
  padding:24px;
}

.top-label {
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  width:100%;
  padding:24px;
}

.grid-event-status.status-open, .grid-event-status.status-date-tbd {
  background-color:#004d9e;
  color: white;
    border-radius: 4px;
    padding: .22rem .44rem;
}

.popup-register {
  z-index:99999999;
}

.details-content-popup button.details-btn {
  margin:0px;
}

.hsfc-Button {
  font-size:.875rem!important;
  text-transform:uppercase !important;
}

select#statusFilter, select#topicFilter, select#locationFilter {
  background-color: #e3e6ec;
    color: #36424a;
    border-radius: 6px;
    font-size: .89rem;
    padding: .64rem .91rem;
    border: none;
  min-height:48px;
}

input#searchInput {
  background-color: white;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    padding-top: .91rem;
    padding-bottom: .91rem;
    padding-inline-end: 48px;
    padding-inline-start: 24px;
    font-size: .89rem;
    color: #36424a;
    box-shadow: 0 8px 16px rgba(54, 66, 74, .05), 0 4px 8px rgba(54, 66, 74, .05);
    line-height: 1.28;
    min-height: 48px;
  width:100%;
}

.filters-and-search-wrapper {
  display:flex;
  justify-content:space-between;
}

.search-wrapper {
  min-width:350px;
}

@media (max-width:767px) {
  
  .filters-and-search-wrapper {
    display:flex;
    flex-direction:column;
  }
  
  .search-wrapper {
    min-width:auto;
    padding-left:0px;
    margin-bottom:25px;
  }
  
  h3.component-heading {
    text-align:left;
  }
  
  .details-content-popup {
    text-align:left;
  }
  
  .columns.is-gapless.is-multiline.columns-3 {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:15px;
  }
  
  .filters-wrapper {
    display:flex;
    flex-direction:column;
    width:100%;
    gap:10px;
  
}

.heading-grid-cards-row p, .heading-grid-cards-row a {
  color:#37424a;
}

@media (min-width:1200px) {
  
  select#statusFilter, select#topicFilter, select#locationFilter {
    min-width:200px;
  }
  
  .filters-wrapper {
    display:flex;
    gap:20px;
  }
  
}
  

.grid-events .columns-3.is-gapless.is-multiline {
  grid-template-columns:repeat(3, 1fr)) !important;
  gap:15px !important;
  display:grid !important;
}

.grid-events .columns.is-gapless.is-multiline {
  display:grid;
}
