.h2bh-events-shortcode {
  --h2bh-green: #0f3f2e;
  --h2bh-green-2: #1f6b4a;
  --h2bh-light-green: #edf6ef;
  --h2bh-beige: #f4ecdf;
  --h2bh-muted: #66746d;
  --h2bh-text: #20332b;
  width: 100%;
  box-sizing: border-box;
  color: var(--h2bh-text);
  font-family: "Quicksand", sans-serif;
}
.single-h2bh_event .iheader.nx-titlebar {
    display: none;
}

.single-h2bh_event .site-main {
    padding-top: 0px !important;
}

.h2bh-events-shortcode *,
.h2bh-events-shortcode *::before,
.h2bh-events-shortcode *::after {
  box-sizing: border-box;
}

.h2bh-events-shortcode a {
  text-decoration: none;
}

.h2bh-events-shortcode .is-hidden {
  display: none !important;
}

.h2bh-events-shortcode .h2bh-title-sm {
  margin: 0;
  color: var(--h2bh-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.h2bh-events-shortcode .ev-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

/* =========================
   FILTERS - PAST EVENTS ONLY
   Mirrors supplied template
   ========================= */
.h2bh-events-shortcode .ev-filters-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
  padding: 18px;
  border: 1px solid rgba(15, 63, 46, 0.10);
  border-radius: 18px;
  background: #fff;
}

.h2bh-events-shortcode .ev-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(15, 63, 46, 0.12);
  border-radius: 16px;
  background: #f4f5f4;
  color: var(--h2bh-muted);
}

.h2bh-events-shortcode .ev-search input {
  width: 100%;
  min-height: 52px;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--h2bh-text);
  font: inherit;
}

.h2bh-events-shortcode .ev-search input::placeholder {
  color: #8a968f;
}

.h2bh-events-shortcode .ev-dropdown-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.h2bh-events-shortcode .ev-select-wrap {
  position: relative;
}

.h2bh-events-shortcode .ev-select-wrap::after {
  content: "\f078";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--h2bh-green);
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.h2bh-events-shortcode .ev-select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(15, 63, 46, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0 42px 0 16px;
  color: var(--h2bh-green);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.h2bh-events-shortcode .ev-clear-row {
  display: flex;
  justify-content: flex-end;
}

.h2bh-events-shortcode .ev-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--h2bh-muted);
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.h2bh-events-shortcode .ev-clear-btn:hover {
  color: var(--h2bh-green);
}

.h2bh-events-shortcode .ev-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.h2bh-events-shortcode .ev-category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid rgba(15, 63, 46, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--h2bh-green);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.h2bh-events-shortcode .ev-category-btn:hover {
  border-color: rgba(15, 63, 46, 0.28);
  transform: translateY(-1px);
}

.h2bh-events-shortcode .ev-category-btn.is-active {
  background: var(--h2bh-green);
  border-color: var(--h2bh-green);
  color: #fff;
}

/* =========================
   NORMAL / PAST CARD GRID
   Mirrors supplied featured cards
   ========================= */
.h2bh-events-shortcode .ev-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.h2bh-events-shortcode .ev-featured-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 63, 46, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 63, 46, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.h2bh-events-shortcode .ev-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 63, 46, 0.10);
}

.h2bh-events-shortcode .ev-featured-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--h2bh-beige);
}

.h2bh-events-shortcode .ev-featured-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .4s ease;
}

.h2bh-events-shortcode .ev-featured-card:hover .ev-featured-media img {
  transform: scale(1.04);
}

.h2bh-events-shortcode .ev-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.h2bh-events-shortcode .ev-badge--h2bh {
  background: var(--h2bh-green);
}

.h2bh-events-shortcode .ev-featured-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 20px;
}

.h2bh-events-shortcode .ev-featured-body h3 {
  margin: 0;
  color: var(--h2bh-green);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.h2bh-events-shortcode .ev-featured-body h3 a {
  color: inherit !important;
}

.h2bh-events-shortcode .ev-meta {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.h2bh-events-shortcode .ev-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--h2bh-muted);
  font-size: 14px;
  font-weight: 600;
}

.h2bh-events-shortcode .ev-meta i {
  width: 16px;
  color: var(--h2bh-green-2);
}

.h2bh-events-shortcode .h2bh-event-short {
  margin: 0;
  color: var(--h2bh-muted);
  font-size: 14px;
  line-height: 1.55;
}

.h2bh-events-shortcode .ev-organizer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--h2bh-muted);
  font-size: 13px;
}

.h2bh-events-shortcode .ev-organizer strong {
  color: var(--h2bh-green);
  font-weight: 800;
}

.h2bh-events-shortcode .h2bh-event-organizer-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--h2bh-light-green);
  color: var(--h2bh-green);
}

.h2bh-events-shortcode .ev-card-btn {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  font-size: 14px;
}

.h2bh-events-shortcode .h2bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 800;
  transition: .2s ease;
}

.h2bh-events-shortcode .h2bh-btn-primary {
  background: var(--h2bh-green);
  color: #fff !important;
}

.h2bh-events-shortcode .h2bh-btn-primary:hover {
  background: var(--h2bh-green-2);
  color: #fff !important;
}

.h2bh-events-shortcode .h2bh-btn-secondary {
  border: 1px solid rgba(15, 63, 46, 0.14);
  background: #fff;
  color: var(--h2bh-green) !important;
}

/* =========================
   UPCOMING LIST
   Exact list structure from supplied template
   No filter bar here
   ========================= */
.h2bh-events-shortcode.ev-upcoming-section {
  padding: 40px 0;
  background: linear-gradient(180deg, #fff 0%, #fafaf8 100%);
}

.h2bh-events-shortcode .ev-upcoming-list {
  display: grid;
  gap: 12px;
}

.h2bh-events-shortcode .ev-upcoming-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1.4fr) 140px 150px 150px auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(15, 63, 46, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 63, 46, 0.035);
  transition: transform .2s ease, box-shadow .2s ease;
}

.h2bh-events-shortcode .ev-upcoming-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 63, 46, 0.08);
}

.h2bh-events-shortcode .ev-upcoming-thumb {
  display: block;
  width: 110px;
  height: 82px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--h2bh-beige);
}

.h2bh-events-shortcode .ev-upcoming-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.h2bh-events-shortcode .ev-upcoming-main h3 {
  margin: 0 0 4px;
  color: var(--h2bh-green);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.h2bh-events-shortcode .ev-upcoming-main h3 a {
  color: inherit !important;
}

.h2bh-events-shortcode .ev-upcoming-type {
  color: var(--h2bh-muted);
  font-size: 13px;
  font-weight: 600;
}

.h2bh-events-shortcode .ev-upcoming-meta {
  display: grid;
  gap: 4px;
}

.h2bh-events-shortcode .ev-upcoming-meta strong {
  color: var(--h2bh-green);
  font-size: 14px;
}

.h2bh-events-shortcode .ev-upcoming-meta span {
  color: var(--h2bh-muted);
  font-size: 13px;
}

.h2bh-events-shortcode .ev-upcoming-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--h2bh-muted);
  font-size: 14px;
  font-weight: 600;
}

.h2bh-events-shortcode .ev-upcoming-location i {
  margin-top: 3px;
  color: var(--h2bh-green-2);
}

.h2bh-events-shortcode .ev-upcoming-organizer span {
  color: var(--h2bh-green);
  font-weight: 700;
}

.h2bh-events-shortcode .ev-details-btn {
  min-height: 44px;
  padding: 10px 18px;
  white-space: nowrap;
  font-size: 13px;
}

/* Empty + Show more */
.h2bh-events-shortcode .ev-empty {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  text-align: center;
  color: var(--h2bh-muted);
  font-weight: 600;
}

.h2bh-events-shortcode .ev-empty[hidden] {
  display: none !important;
}

.h2bh-events-shortcode .ev-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.h2bh-events-shortcode .ev-show-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(420px, 100%);
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid rgba(15, 63, 46, 0.10);
  border-radius: 14px;
  background: #f1f3f1;
  color: var(--h2bh-green);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.h2bh-events-shortcode .ev-show-more:hover {
  background: #e7ebe8;
  transform: translateY(-1px);
}

.h2bh-events-shortcode .ev-show-more[hidden] {
  display: none !important;
}

.h2bh-events-shortcode .h2bh-event-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--h2bh-light-green);
  color: var(--h2bh-green);
  font-size: 34px;
}

/* Responsive - mirrors supplied template */
@media (max-width: 1100px) {
  .h2bh-events-shortcode .ev-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb main details"
      "thumb meta details"
      "thumb location details"
      "thumb organizer details";
  }

  .h2bh-events-shortcode .ev-upcoming-thumb { grid-area: thumb; width: 100px; height: 82px; }
  .h2bh-events-shortcode .ev-upcoming-main { grid-area: main; }
  .h2bh-events-shortcode .ev-upcoming-meta { grid-area: meta; }
  .h2bh-events-shortcode .ev-upcoming-location { grid-area: location; }
  .h2bh-events-shortcode .ev-upcoming-organizer { grid-area: organizer; }
  .h2bh-events-shortcode .ev-details-btn { grid-area: details; align-self: start; }
}

@media (max-width: 900px) {
  .h2bh-events-shortcode .ev-dropdown-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .h2bh-events-shortcode .ev-featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .h2bh-events-shortcode .ev-dropdown-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .h2bh-events-shortcode .ev-category-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .h2bh-events-shortcode .ev-category-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas:
      "thumb main"
      "thumb meta"
      "location location"
      "organizer organizer"
      "details details";
    gap: 10px 14px;
    padding: 13px;
  }

  .h2bh-events-shortcode .ev-upcoming-thumb {
    width: 82px;
    height: 72px;
  }

  .h2bh-events-shortcode .ev-details-btn {
    width: 100%;
    margin-top: 2px;
  }

  .h2bh-events-shortcode .ev-section-head {
    margin-bottom: 20px;
  }
}

.h2bh-events-shortcode .ev-upcoming-actions {
  display: grid;
  gap: 8px;
  align-self: start;
}
.h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 16px;
  white-space: nowrap;
  font-size: 13px;
}
.h2bh-events-shortcode .ev-book-btn {
  background: var(--h2bh-green);
  color: #fff !important;
}
.h2bh-events-shortcode .ev-book-btn:hover {
  background: var(--h2bh-green-2);
  color: #fff !important;
}
@media (max-width: 1100px) {
  .h2bh-events-shortcode .ev-upcoming-actions { grid-area: details; }
}
@media (max-width: 680px) {
  .h2bh-events-shortcode .ev-upcoming-actions { grid-area: details; width: 100%; }
}

/* ===== SINGLE EVENT PAGE ===== */
.h2bh-event-single{--ev-green:var(--h2bh-green,#3d765b);--ev-green-dark:var(--h2bh-green-2,#285844);--ev-light:var(--h2bh-light-green,#edf5f0);--ev-muted:var(--h2bh-muted,#66756d);--ev-cream:var(--h2bh-cream,#f7f4ed);color:#24332c;background:#fff}
.h2bh-event-single *{box-sizing:border-box}
.h2bh-event-single-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.h2bh-event-single-hero{background:linear-gradient(135deg,var(--ev-light),#fff 62%);padding:42px 0 56px;border-bottom:1px solid rgba(61,118,91,.08)}
.h2bh-event-back{display:inline-flex;align-items:center;gap:8px;color:var(--ev-green)!important;font-weight:700;font-size:14px;text-decoration:none;margin-bottom:28px}
.h2bh-event-back:hover{gap:11px}
.h2bh-event-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);gap:54px;align-items:center}
.h2bh-event-single-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.h2bh-event-single-badges span{display:inline-flex;align-items:center;min-height:30px;padding:5px 11px;border-radius:999px;background:#fff;border:1px solid rgba(61,118,91,.13);color:var(--ev-green);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.h2bh-event-hero-copy h1{font-family:Georgia,"Times New Roman",serif;color:var(--ev-green);font-size:clamp(38px,5vw,62px);line-height:1.06;letter-spacing:-.045em;margin:0 0 22px;font-weight:600}
.h2bh-event-intro{font-size:18px;line-height:1.65;color:var(--ev-muted);margin:0 0 28px;max-width:650px}
.h2bh-event-hero-media{position:relative;border-radius:26px;overflow:hidden;aspect-ratio:4/3;background:var(--ev-cream);box-shadow:0 22px 60px rgba(31,75,56,.13)}
.h2bh-event-hero-media img{width:100%;height:100%;object-fit:cover;display:block}
.h2bh-event-date-chip{position:absolute;left:18px;bottom:18px;display:grid;place-items:center;min-width:82px;padding:10px 14px;border-radius:16px;background:rgba(255,255,255,.95);box-shadow:0 8px 24px rgba(0,0,0,.09);color:var(--ev-green);text-align:center}
.h2bh-event-date-chip strong{font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1}.h2bh-event-date-chip span{font-size:11px;font-weight:800;text-transform:uppercase;margin-top:3px}
.h2bh-event-single-main{padding:56px 0 72px}.h2bh-event-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:54px;align-items:start}
.h2bh-event-single-content{font-size:17px;line-height:1.75;color:#425249}.h2bh-event-single-content>:first-child{margin-top:0}.h2bh-event-single-content h2,.h2bh-event-requirements h2{font-family:Georgia,"Times New Roman",serif;color:var(--ev-green);font-size:30px;line-height:1.2;margin:34px 0 14px}.h2bh-event-single-content h3{color:var(--ev-green);font-size:21px;margin:28px 0 10px}.h2bh-event-single-content a{color:var(--ev-green);font-weight:700}.h2bh-event-single-content ul{padding-left:22px}
.h2bh-event-requirements{margin-top:36px;padding:26px 28px;border-radius:20px;background:var(--ev-light)}.h2bh-event-requirements h2{margin-top:0;font-size:25px}.h2bh-event-requirements ul{margin-bottom:0;padding-left:20px}
.h2bh-event-sidebar{position:sticky;top:28px}.h2bh-event-info-card{padding:26px;border:1px solid rgba(61,118,91,.1);border-radius:22px;background:#fff;box-shadow:0 14px 40px rgba(31,75,56,.08)}.h2bh-event-info-card h2{font-family:Georgia,"Times New Roman",serif;color:var(--ev-green);font-size:25px;margin:0 0 20px}
.h2bh-event-info-list{display:grid;gap:0;margin-bottom:24px}.h2bh-event-info-item{display:grid;grid-template-columns:38px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid rgba(61,118,91,.08)}.h2bh-event-info-item:first-child{padding-top:0}.h2bh-event-info-item i{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--ev-light);color:var(--ev-green)}.h2bh-event-info-item strong{display:block;color:var(--ev-green);font-size:12px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:3px}.h2bh-event-info-item span{display:block;color:#4e5d55;font-size:14px;line-height:1.45}
.h2bh-event-button.h2bh-event-single-book{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;padding:12px 18px;border-radius:13px;background:var(--ev-green);color:#fff!important;text-decoration:none;font-weight:800;font-size:14px}.h2bh-event-button.h2bh-event-single-book:hover{background:var(--ev-green-dark);transform:translateY(-1px)}
.h2bh-event-organizer-note{display:flex;align-items:flex-start;gap:10px;margin:20px 0 0;padding-top:18px;border-top:1px solid rgba(61,118,91,.08);color:var(--ev-muted);font-size:13px;line-height:1.5}.h2bh-event-organizer-note i{color:var(--ev-green);margin-top:3px}
.h2bh-event-bottom-cta{margin-top:56px;padding:30px 34px;border-radius:22px;background:var(--ev-light);display:flex;align-items:center;justify-content:space-between;gap:24px}.h2bh-event-bottom-cta h2{font-family:Georgia,"Times New Roman",serif;color:var(--ev-green);font-size:27px;margin:0 0 5px}.h2bh-event-bottom-cta p{margin:0;color:var(--ev-muted);font-size:14px}.h2bh-event-bottom-cta .h2bh-event-button{width:auto;min-width:190px}
@media(max-width:900px){.h2bh-event-hero-grid{grid-template-columns:1fr;gap:32px}.h2bh-event-hero-media{max-width:650px}.h2bh-event-content-grid{grid-template-columns:1fr;gap:36px}.h2bh-event-sidebar{position:static}.h2bh-event-single-hero{padding:30px 0 42px}}
@media(max-width:600px){.h2bh-event-single-container{width:min(100% - 28px,1180px)}.h2bh-event-single-hero{padding-top:22px}.h2bh-event-back{margin-bottom:20px}.h2bh-event-hero-copy h1{font-size:38px}.h2bh-event-intro{font-size:16px}.h2bh-event-hero-grid{gap:25px}.h2bh-event-hero-media{border-radius:19px}.h2bh-event-single-main{padding:38px 0 50px}.h2bh-event-info-card{padding:21px}.h2bh-event-bottom-cta{padding:24px;align-items:stretch;flex-direction:column}.h2bh-event-bottom-cta .h2bh-event-button{width:100%}}


/* v1.7.9 responsive hardening */
.h2bh-events-shortcode .ev-upcoming-main,
.h2bh-events-shortcode .ev-upcoming-meta,
.h2bh-events-shortcode .ev-upcoming-location,
.h2bh-events-shortcode .ev-upcoming-organizer,
.h2bh-events-shortcode .ev-upcoming-actions {
  min-width: 0;
}
.h2bh-events-shortcode .ev-upcoming-main h3,
.h2bh-events-shortcode .ev-upcoming-location span,
.h2bh-events-shortcode .ev-upcoming-organizer span {
  overflow-wrap: anywhere;
}
.h2bh-events-shortcode .ev-featured-body { min-width: 0; }
.h2bh-events-shortcode .ev-featured-body h3,
.h2bh-events-shortcode .h2bh-event-short,
.h2bh-events-shortcode .ev-meta li { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
      "thumb main"
      "thumb meta"
      "location location"
      "organizer organizer"
      "details details";
    gap: 11px 14px;
  }
  .h2bh-events-shortcode .ev-upcoming-thumb { width: 92px; height: 76px; }
  .h2bh-events-shortcode .ev-upcoming-actions { width: 100%; }
  .h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn { width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 480px) {
  .h2bh-events-shortcode .ev-filters-panel { padding: 12px; border-radius: 14px; }
  .h2bh-events-shortcode .ev-search { min-height: 48px; padding: 0 14px; border-radius: 13px; }
  .h2bh-events-shortcode .ev-search input { min-height: 46px; min-width: 0; }
  .h2bh-events-shortcode .ev-featured-body { padding: 15px 15px 17px; }
  .h2bh-events-shortcode .ev-upcoming-row { grid-template-columns: 76px minmax(0, 1fr); padding: 11px; }
  .h2bh-events-shortcode .ev-upcoming-thumb { width: 76px; height: 68px; }
  .h2bh-events-shortcode .ev-upcoming-main h3 { font-size: 16px; }
  .h2bh-events-shortcode .ev-upcoming-meta strong,
  .h2bh-events-shortcode .ev-upcoming-location { font-size: 13px; }
  .h2bh-events-shortcode .ev-show-more { min-width: 100%; }
}


/* =========================================================
   v1.8.0 - Upcoming event card responsive layout
   ========================================================= */
@media (max-width: 900px) {
  .h2bh-events-shortcode .ev-upcoming-row {
    width: 100%; min-width: 0;
    grid-template-columns: 100px minmax(0, 1fr) !important;
    grid-template-areas: "thumb main" "thumb meta" "location location" "organizer organizer" "details details" !important;
    gap: 9px 16px; align-items: start; padding: 14px 16px;
  }
  .h2bh-events-shortcode .ev-upcoming-thumb { grid-area: thumb; width: 100px; height: 82px; }
  .h2bh-events-shortcode .ev-upcoming-main { grid-area: main; align-self: end; }
  .h2bh-events-shortcode .ev-upcoming-meta { grid-area: meta; align-self: start; }
  .h2bh-events-shortcode .ev-upcoming-location { grid-area: location; margin-top: 3px; }
  .h2bh-events-shortcode .ev-upcoming-organizer { grid-area: organizer; }
  .h2bh-events-shortcode .ev-upcoming-actions {
    grid-area: details; display: flex !important; flex-direction: row;
    align-items: stretch; gap: 10px; width: 100% !important; min-width: 0; margin-top: 4px;
  }
  .h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn {
    flex: 1 1 0; width: auto !important; max-width: none !important; min-width: 0 !important;
    min-height: 44px; margin: 0 !important; white-space: normal; text-align: center;
  }
}

@media (max-width: 520px) {
  .h2bh-events-shortcode.ev-upcoming-section { padding: 28px 0; }
  .h2bh-events-shortcode .ev-upcoming-list { gap: 12px; }
  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-areas: "thumb main" "thumb meta" "location location" "organizer organizer" "details details" !important;
    gap: 8px 12px; padding: 12px; border-radius: 15px; overflow: hidden;
  }
  .h2bh-events-shortcode .ev-upcoming-thumb { width: 82px; height: 70px; border-radius: 10px; }
  .h2bh-events-shortcode .ev-upcoming-main { align-self: end; }
  .h2bh-events-shortcode .ev-upcoming-main h3 { margin-bottom: 3px; font-size: 16px; line-height: 1.22; }
  .h2bh-events-shortcode .ev-upcoming-type { font-size: 12px; }
  .h2bh-events-shortcode .ev-upcoming-meta { gap: 2px; }
  .h2bh-events-shortcode .ev-upcoming-meta strong,
  .h2bh-events-shortcode .ev-upcoming-meta span,
  .h2bh-events-shortcode .ev-upcoming-location,
  .h2bh-events-shortcode .ev-upcoming-organizer span { font-size: 13px; }
  .h2bh-events-shortcode .ev-upcoming-location,
  .h2bh-events-shortcode .ev-upcoming-organizer { min-width: 0; }
  .h2bh-events-shortcode .ev-upcoming-actions {
    display: flex !important; flex-direction: column !important; gap: 8px;
    width: 100% !important; min-width: 0 !important;
  }
  .h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn,
  .h2bh-events-shortcode .ev-details-btn,
  .h2bh-events-shortcode .ev-book-btn {
    display: flex !important; flex: none !important; width: 100% !important;
    max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important;
    margin: 0 !important; justify-content: center !important; white-space: normal !important;
  }
}

@media (max-width: 380px) {
  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 74px minmax(0, 1fr) !important; gap: 8px 10px; padding: 10px;
  }
  .h2bh-events-shortcode .ev-upcoming-thumb { width: 74px; height: 66px; }
}


/* =========================================================
   v1.8.1 - Mid-size desktop / landscape tablet fix
   Keep upcoming cards compact between 901px and 1100px.
   ========================================================= */
@media (min-width: 901px) and (max-width: 1100px) {
  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns:
      100px
      minmax(150px, 1.35fr)
      minmax(115px, .8fr)
      minmax(150px, 1fr)
      minmax(90px, .65fr)
      minmax(130px, .8fr) !important;
    grid-template-areas: none !important;
    gap: 12px !important;
    align-items: center !important;
    padding: 14px 16px !important;
  }

  .h2bh-events-shortcode .ev-upcoming-thumb,
  .h2bh-events-shortcode .ev-upcoming-main,
  .h2bh-events-shortcode .ev-upcoming-meta,
  .h2bh-events-shortcode .ev-upcoming-location,
  .h2bh-events-shortcode .ev-upcoming-organizer,
  .h2bh-events-shortcode .ev-upcoming-actions {
    grid-area: auto !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .h2bh-events-shortcode .ev-upcoming-thumb {
    width: 100px !important;
    height: 82px !important;
  }

  .h2bh-events-shortcode .ev-upcoming-actions {
    display: grid !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 42px !important;
    padding: 9px 10px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .h2bh-events-shortcode .ev-upcoming-main h3,
  .h2bh-events-shortcode .ev-upcoming-location,
  .h2bh-events-shortcode .ev-upcoming-organizer span {
    overflow-wrap: anywhere;
  }
}

/* =========================================================
   v1.8.2 - FINAL DESKTOP ACTION BUTTON FIX
   ========================================================= */
@media (min-width: 901px) {
      .h2bh-events-shortcode .ev-upcoming-actions {
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 300px !important;
    }
  .h2bh-events-shortcode .ev-upcoming-actions .h2bh-btn,
  .h2bh-events-shortcode .ev-book-btn,
  .h2bh-events-shortcode .ev-details-btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: none !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 16px !important;
    margin: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .h2bh-events-shortcode .ev-upcoming-row {
    grid-template-columns: 100px minmax(170px, 1.2fr) minmax(125px, .75fr) minmax(150px, 1fr) minmax(100px, .7fr) !important;
    grid-template-areas:
      "thumb main meta location organizer"
      "thumb details details details details" !important;
    gap: 10px 16px !important;
  }
  .h2bh-events-shortcode .ev-upcoming-thumb { grid-area: thumb !important; }
  .h2bh-events-shortcode .ev-upcoming-main { grid-area: main !important; }
  .h2bh-events-shortcode .ev-upcoming-meta { grid-area: meta !important; }
  .h2bh-events-shortcode .ev-upcoming-location { grid-area: location !important; }
  .h2bh-events-shortcode .ev-upcoming-organizer { grid-area: organizer !important; }
  .h2bh-events-shortcode .ev-upcoming-actions {
    grid-area: details !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
  }
	    .h2bh-events-shortcode .ev-upcoming-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        width: 100% !important;
        min-width: 300px !important;
    }
}
