.event-list-group {
  display: inline-block;
  width: 100%;
  border-bottom: 1px solid #BDBDBD;
  padding: 40px 0;
}

.path-events nav.pager {
    margin-top: 5%;
}    

/* Header */
body.path-events {
  background-color: #fff !important;
}
body.path-events main {
  background-color: #fff !important; 
}

.path-events header {
  text-align: center;
  width: 100% !important;
}

.path-events header h1 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 30px;
  line-height: normal;
  color: #2f3941;
  margin-bottom: 28px !important;
  display: inline-block;
}

.path-events header p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: #646F78;
  width: 65%;
  margin: 0 auto;
}

/* Filter + view switch */
.switch-tap-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 30px 0 28px;
}

.switch-tap-main .filter {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap; /* keep on a single line by default */
}
.switch-tap-main .filter .form-item__select {
    margin-right: 20px;
}
.switch-tap-main .filter .form-item__select > div .field-label {
   padding: 0;
 }

.switch-tap-main .filter .form-item__select > div {
   display: inline-flex;
   align-items: center;
   gap: 8px;
 } 

/* Label */
.form-item__select .field-label span {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0%;
    color: #2F3941;
    margin-right: 0;
    padding: 0;
}

/* Select */
.form-item__dropdown select.form-select {
    min-width: 220px;
    padding: 8px 40px 8px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 3px;
    background: #FBFBFC url("/themes/custom/ladc/apps/drupal/images/arrow.svg") no-repeat right 12px center;
    background-size: 16px;
    font-size: 14px;
    font-weight: 400;
    color: #2f3941;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-item__dropdown select.form-select:hover {
    border-color: #94A3B8;
    background-color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-item__dropdown select.form-select:focus {
    outline: none;
    border-color: #0F766E;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.form-item__dropdown select.form-select:disabled {
    background-color: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
    opacity: 0.6;
}


/* Right-side list/calendar switch */
.right-tap {
    display: inline-flex;
    border: 1px solid #8CB7B3;
    border-radius: 4px;
    overflow: hidden;
    margin-left: auto;
    width: 25%;
}


.right-tap a {
    display: inline-flex;
    justify-content: center;
    padding: 10px 22px;
    text-decoration: none;
    color: #2f3941;
    background: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    width: 100%;
}

.right-tap a + a { border-left: 1px solid #8CB7B3; }



/* Active state by path */
.path-events .right-tap a[href="/events"],
.path-event-calendar .right-tap a[href="/event-calendar"],
.right-tap a.is-active {
background: #0F766E;
color: #FFFFFF;
border-color: #0F766E;
}

/* Event listing view styles */
 .event-date,
 .event-info,
 .event-image-wrapper {
   box-sizing: border-box;
 }

 /* Layout: three columns */
 .event-date {
    float: left;
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #EDEEF0;
    border-radius: 1px;
    text-align: center;
    color: #0F172A;
    background: #FBF9FA;
    margin-right: 24px;
 }

 .event-info {
   float: left;
   width: calc(100% - 110px - 24px - 280px);
   padding-right: 24px;
 }

 .event-image-wrapper {
   float: right;
   width: 280px;
 }

 .event-image img {
   display: block;
   width: 100%;
   height: auto;
 }

 /* Clearfix for the row */
 .event-image-wrapper::after {
   content: "";
   display: table;
   clear: both;
 }

 /* Date badge pieces stack nicely */
 .event-date .field_event_date,
 .event-date .field_event_date_month,
 .event-date .field_event_date_1,
 .event-date .field_event_date_day,
 .event-date .field_event_date_2,
 .event-date .field_event_date_year {
   display: block;
   line-height: 1.1;
 }

 /* Month (old and new class) */
 .event-date .field_event_date_month,
 .event-date .field_event_date_year {
   text-transform: uppercase;
   letter-spacing: 0.04em;
   color: #646F78;
   font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0%;
    text-align: center;

 }

 /* Day (old and new class) */
 .event-date .field_event_date_1,
 .event-date .field_event_date_day {
   font-size: 30px;
   font-weight: 700;
   color: #2F3941;
   margin: 4px 0;
 }

 /* Content area */
 .event-info .field_event_type {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: normal;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #646F78;
 }

 .event-info .field-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: normal;
    letter-spacing: -1px;
    color: #2F3941;
    margin: 6px 0;
 }

 .event-info .field_short_description {
   font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: 0%;
    color: #646F78;
    margin-bottom: 0;
 }

 .event-info .field_event_end_date{
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 27px;
    letter-spacing: 0%;
    color: #295E63;
    background: #295E631A;
    /* max-width: 100px; */
    padding: 0 10px;
    font-weight: 600;
    display: inline-block !important;
 }

 .event-info .field_event_time,
 .event-info .field_event_venue {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 30px;
    letter-spacing: 0%;
    color: #2F3941;
   display: inline-block;
   margin-right: 18px;
 }

 .event-info .field_event_time,
 .event-info .field_event_venue {
   position: relative;
   padding-left: 28px;
 }

 .enddate-full {
  margin-top: 8px;
 }

 .event-info .field_event_time::before,
 .event-info .field_event_venue::before {
   content: "";
   position: absolute;
   left: 0;
   top: 50%;
   transform: translateY(-50%);
   width: 22px;
   height: 22px;
   background-repeat: no-repeat;
   background-position: center;
   background-size: contain;
   opacity: 0.95;
 }

 .event-info .field_event_time::before {
   background-image: url("/themes/custom/ladc/apps/drupal/images/clock.svg");
 }

 .event-info .field_event_venue::before {
    background-image: url("/themes/custom/ladc/apps/drupal/images/location.svg");
 }

 .event-info .view-details {
   display: flex;
   gap: 16px;
   margin-top: 30px;
 }

 .event-info .view-details .register,
 .event-info .view-details .details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;    
    color: #fff;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 44px;
    letter-spacing: 0%;
    text-align: center;
    border-radius: 4px;
    width: 168px;
    height: 44px;
    cursor: pointer;
 }
 @media (max-width: 767px) {
  .event-info {
      width: 100%;
  }

  .event-info .view-details .register,
  .event-info .view-details .details {
      width: 50%;
  }
 }

 .event-info .view-details a::after {
    display: none;
 }
 .event-info .view-details .register {
   border: 1px solid #295E63;
   background: #295E63;
 }

 .event-info .view-details .register a {
   color: #FFFFFF;
 }

.event-info .view-details .register:hover,
.event-info .view-details .register:focus {
   background: #FFFFFF;
   border: 1px solid #295E63;
   color: #295E63;
 }

 .event-info .view-details .register:hover a,
 .event-info .view-details .register:focus a {
   color: #295E63;
 }
 .event-info .view-details .details {
   background: #FFFFFF;
   border: 1px solid #295E63;
   color: #295E63;
 }
 .event-info .view-details .details:hover,
 .event-info .view-details .details:focus {
   color: #FFFFFF;
   border: 1px solid #295E63;
   background: #295E63;
 }
 .event-info .view-details .details:hover a,
 .event-info .view-details .details:focus a {
   color: #FFFFFF !important;
 }

 /* Row divider */
 .event-image-wrapper img {
   width: 100%; 
 } 

/* Responsive behavior for the bar */
 @media (max-width: 900px) {
   .event-image-wrapper { width: 220px; }
   .event-info { width: calc(100% - 110px - 24px - 220px); }
   .switch-tap-main { flex-wrap: wrap; }
  .switch-tap-main .filter { flex-wrap: wrap; width: 100%; }
 }

 @media (max-width: 767px) {
  .switch-tap-main .filter .form-item__select > div {
      display: inline-flex;
      align-items: flex-start;
      gap: 0;
      flex-direction: column;
      justify-content: center;
      width: 100%;
  }

  .switch-tap-main .filter .form-item__select > div .form-item__dropdown {
    width: 100%;
  }

  .right-tap {
        margin: 10px auto;
  }

  .event-image-wrapper {
     float: none;
     width: 100%;
   }
   .event-date {
     width: 80px;
     margin-bottom: 12px;
     display: inline-block;
   }
   .event-image-wrapper {
     margin-top: 0;
   }

   .event-info { width: 91%; }
  
    .event-list-group {
      flex-direction: column;
      display: flex;
      border: 1px solid #BDBDBD;
      padding: 0;
      margin-bottom: 5%;
    }

    .event-date {
      order: 2;
      margin: -30px 30px;
      margin-bottom: 0;
    }

    .event-info {
      order: 3;
      margin: 30px;
      margin-top: 30px;
      padding: 0;
    }

    .event-image-wrapper {
       order: 1;
    }
  .switch-tap-main .filter { justify-content: center; }
  .switch-tap-main { 
    gap: 18px; 
    margin: 20px 0; 
    flex-direction: column; 
    align-items: stretch;
  }
  .switch-tap-main .filter { 
    width: 100%; 
    flex-direction: column; 
    align-items: stretch; 
    gap: 16px; 
  }
  .switch-tap-main .filter .form-item__select { 
    margin-right: 0; 
    width: 100%;
    display: inline-block;
    margin-bottom: 20px;
  }
  .switch-tap-main .filter .form-item__select .field-label span { 
    display: block; 
    margin-bottom: 8px; 
    font-size: 16px; 
    line-height: 24px; 
  }
  .form-item__dropdown select.form-select { 
    min-width: 100%; 
    width: 100%; 
  }
  .right-tap { 
    width: 100%; 
    display: flex; 
  }
  .right-tap a { 
    flex: 1; 
    width: 50%; 
    padding: 12px 0; 
  }
  .path-events header p {
    width: 100%;
  }
 }

 @media (max-width: 640px) {
   .event-info { width: 85%; }
 }
 @media (max-width: 380px) {
    .event-info {
        width: 80%;
    }
 }
@media (max-width: 360px) {
  .right-tap {margin: 0;}
}