/* Event Card Styles for GP Plugin */
/* 
 * Image Size Requirements:
 * - Current Events: 344px × 490px for desktop/tablet, 260px × 450px for mobile carousel
 * - HH Schedule Events: 135px × 90px for ALL display types (desktop, tablet, mobile)
 * 
 * When both categories are selected for an event, separate images should be provided for each category.
 * 
 * Default Image (default.event.jpg):
 * - Automatically fits to category dimensions using CSS object-fit: cover
 * - Current Events: Background image with cover sizing for 344x490 cards (desktop/tablet) and 260x450 (mobile)
 * - HH Schedule: img tag with object-fit: cover for 135x90 thumbnails
 * 
 * Mobile Carousel: 320px slide width ensures proper 1 slide + 10% preview layout
 */
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');



/* Base Event Card Styles */
.hh-em-card {
  width: auto;
  height: 490px;
  position: relative;
  background: #222;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font-family: 'Lato', Arial, sans-serif;
}

.hh-em-card-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
  z-index: 1;
}

.hh-em-card-gradient {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.6) 100%);
  z-index: 2;
}

.hh-em-card-content {
  position: relative;
  z-index: 3;
  padding: 24px 16px 20px 16px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hh-em-card-date-badge {
  display: inline-block;
  background: #c46b1c;
  color: #fff;
  padding: 3px 12px;
  border-radius: 14px;
  font-size: clamp(9px, 1.3vw, 11px); /* Smaller responsive font size: min 9px, max 11px */
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.8px;
}

.hh-em-card-title {
  font-size: clamp(14px, 2.5vw, 20px); /* Optimized responsive font size: min 14px, max 20px */
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hh-em-card-location {
  font-size: clamp(9px, 1.3vw, 11px); /* Smaller responsive font size: min 9px, max 11px */
  font-weight: 700;
  color: #F5C77A;
  margin-bottom: 0;
}

/* Current Events card: vertical "Ongoing" tag (right side) */
.hh-em-card-new.hh-em-card-has-ongoing-yes {
  padding-right: 0;
}
/* Ongoing tag: shorter height, clear gap above button row */
.hh-em-ongoing-tag {
  position: absolute;
  right: 0;
  top: 300px;              /* below image */
  height: 140px;           /* fixed height — no stretching */
  width: 28px;
  background: #D05E2D;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 8px 5px;
  box-sizing: border-box;
  z-index: 5;
  border-radius: 0 4px 4px 0;
  letter-spacing: 0.5px;
}

.hh-em-card-content-container {
  padding-right: 16px;
}
.hh-em-card-new.hh-em-card-has-ongoing-yes .hh-em-card-content-container {
  padding-right: 44px; /* space for narrower tag + gap */
}
/* Gap between ongoing tag and buttons */
.hh-em-card-new.hh-em-card-has-ongoing-yes .hh-em-card-buttons {
  margin-right: 16px;
}

/* *HH attending tag (below title) */
.hh-em-hh-attending-tag {
  display: inline-block;
  background: #e8e8e8;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

/* From - To date block – left-aligned with title/location */
.hh-em-card-from-to-date {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
}
.hh-em-from-to-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.hh-em-from-to-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  text-align: left;
}
.hh-em-from-to-day {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
  text-align: left;
}
.hh-em-from-to-month {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  text-align: left;
}
.hh-em-from-to-sep {
  width: 1px;
  background: #ccc;
  margin: 0 12px;
  align-self: stretch;
  flex-shrink: 0;
}

/* Single date: day large & bold, month/year below; left-aligned with content */
/* Force date wrapper left-aligned */
.hh-em-card-from-to-date {
  display: flex;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  width: 100%;
  text-align: left;
}

.hh-em-card-from-to-date .hh-em-from-to-block.hh-em-single-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: none;
  width: 100%;
}
.hh-em-card-from-to-date .hh-em-from-to-block.hh-em-single-date .hh-em-from-to-day {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
  display: block;
  text-align: left;
}
.hh-em-card-from-to-date .hh-em-from-to-block.hh-em-single-date .hh-em-from-to-month {
  font-size: 13px;
  font-weight: 400;
  color: #333;
  margin-top: 2px;
  display: block;
  text-align: left;
}

@media (min-width: 768px) {
  .hh-em-card-from-to-date .hh-em-from-to-block.hh-em-single-date .hh-em-from-to-day {
    font-size: 42px;
  }
  .hh-em-card-from-to-date .hh-em-from-to-block.hh-em-single-date .hh-em-from-to-month {
    font-size: 14px;
  }
}

/* Desktop Layout - Center Events - Full width 1600px */
@media (min-width: 1025px) {
  .hh-em-events-desktop {
    display: block;
  }
  
  .hh-em-events-mobile {
    display: none;
  }
  
  .hh-em-calendar-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    justify-items: stretch !important;
  }
  
  .hh-em-current-events-grid {
  max-width: 1600px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px)) !important;
  gap: 16px;
  justify-content: center !important;
  width: 100%;
}


  .hh-em-calendar-date-group {
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
    flex: unset !important;
    margin-bottom: 16px !important;
    display: flex !important;
    justify-content: center !important;
  }
  

  
  /* Desktop Current Events - 4 cards per row */
  .hh-em-current-events {
    justify-items: stretch !important;
  }
}

  
  /* DISABLED – breaks 4-column zoom layout */
/*
  .hh-em-current-events .hh-em-event-item {
    flex: 0 0 calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    min-width: 320px !important;
  }
  */

  /* Desktop Current Events - Single event left alignment */
  .hh-em-current-events-grid:has(.hh-em-event-item:only-child) {
    justify-content: flex-start !important;
  }
  
  .hh-em-current-events-grid:has(.hh-em-event-item:only-child) .hh-em-event-item {
    margin-left: 0 !important;
  }
  @media (max-width: 1024px) {
    .hh-em-current-events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

  /* Current Events alignment by count on desktop: center when 1–3 or 4 events */
  .hh-em-current-events.count-1,
  .hh-em-current-events.count-2,
  .hh-em-current-events.count-3,
  .hh-em-current-events.count-4 {
    justify-content: center !important;
  }



/* Tablet Layout - Responsive Grid - 2x2 */
@media (max-width: 1024px) and (min-width: 769px) {
  .hh-em-calendar-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 1600px !important;
  }
  
  .hh-em-card {
    width: 344px;
    height: 490px;
  }
  
  .hh-em-card-title {
    font-size: clamp(12px, 2.2vw, 18px); /* Optimized responsive font size for tablet: min 12px, max 18px */
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Tablet Current Events - 2 cards per row (2x2 grid) */
  .hh-em-current-events {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    justify-items: left !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  
  .hh-em-current-events .hh-em-event-item {
    width: 100% !important;
    max-width: 320px !important;
    flex: none !important;
  }
  
  .hh-em-card-new {
    width: 100% !important;
    max-width: 320px !important;
    min-height: 541.75px !important;
    box-sizing: border-box !important;
  }

  /* Desktop & Laptop – allow grid to control width */
@media (min-width: 1025px) {
    .hh-em-current-events .hh-em-event-item,
    .hh-em-card-new {
        max-width: 100% !important;
    }
}

  
  .hh-em-card-image-container {
    width: 100% !important;
    height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-content-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  
  /* HH Schedule Tablet Layout - Smaller image, adjusted text sizes */
  .hh-em-schedule-image {
    width: 100px;
    height: 70px;
  }
  
  .hh-em-schedule-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 120px); /* 100px image + 20px gap */
    padding: 0;
    overflow: visible; /* Allow content to be visible */
  }
  
  .hh-em-schedule-content h3 {
    font-size: 16px; /* Tablet font size: 16px */
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato;
    color: #472b20;
    text-align: left;
    display: block;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: visible; /* Allow text to be visible */
  }
  
  .hh-em-schedule-meta {
    max-width: 100%;
    overflow: visible; /* Allow meta content to be visible */
  }
}

/* =============================================================
   Mobile – vertical stack, one card per row
   Only applies at mobile breakpoint (max-width: 768px).
   ============================================================= */

/* Hide mobile block on desktop/tablet */
.hh-em-events-mobile { display: none; }

@media (max-width: 768px) {

  .hh-em-events-desktop { display: none !important; }
  .hh-em-events-mobile  { display: block !important; }

  /* Stack wrapper */
  .hh-em-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  /* Each card wrapper fills full width */
  .hh-em-mobile-card-wrap {
    width: 100%;
  }

  .hh-em-mobile-card-wrap .hh-em-card-new,
  .hh-em-mobile-card-wrap .hh-em-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

}

/* Default Image Styles - Ensure proper sizing for each category */
.hh-em-card-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* HH Schedule default image - 135x90 dimensions */
.hh-em-schedule-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Current Events default image - 344x490 dimensions */
.hh-em-card .hh-em-card-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* HH Schedule Layout Styles */
.hh-em-schedule-events {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

.hh-em-schedule-item {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 0;
  transition: transform 0.2s ease;
  flex-wrap: nowrap;
  align-items: flex-start;
  background: transparent;
  position: relative;
}

/* Add divider after each schedule item except the last one */
.hh-em-schedule-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 135px;
  height: 1px;
  background-color: #E4A840;
}

.hh-em-schedule-item:hover {
  transform: translateY(-2px);
}

.hh-em-schedule-image {
  flex-shrink: 0;
  width: 135px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hh-em-schedule-image img {
  width: 135px !important;
  height: 90px !important;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.hh-em-schedule-item:hover .hh-em-schedule-image img {
  transform: scale(1.05);
}

.hh-em-schedule-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

/* HH Schedule Event Styles - Desktop */
.hh-em-schedule-content h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  letter-spacing: 0.1px;
  line-height: 120%;
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
  color: #472B20;
  text-align: left;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hh-em-schedule-content h3 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.hh-em-schedule-content h3 a:hover {
  color: #c46b1c;
}

.hh-em-schedule-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: auto;
}

/* Date styling - #99563C (18px, 700 bold) */
.hh-em-schedule-date-top {
  margin-bottom: 8px;
}

.hh-em-schedule-date {
  font-size: 18px;
  font-family: Lato, Arial, sans-serif;
  color: #99563C;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  line-height: 1.2;
}

/* "to" word styling - #472B20 (18px, 700 bold) with spacing */
.hh-em-schedule-date-to {
  color: #472B20;
  font-size: 18px;
  font-weight: 700;
  margin: 0 8px;
  white-space: pre;
}

/* Location styling - #7E6252 (16px, 600 bold) */
.hh-em-schedule-location-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7E6252;
  font-size: 16px;
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
}

.hh-em-schedule-location-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7E6252;
  fill: currentColor;
}

.hh-em-schedule-location {
  color: #7E6252;
  font-size: 16px;
  font-weight: 600;
  font-family: Lato, Arial, sans-serif;
}

/* Dot between location and view schedule - #E4A840E5 */
.hh-em-schedule-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #E4A840E5;
  flex-shrink: 0;
  margin: 0 4px;
}

.hh-em-schedule-link {
  font-size: 16px;
  font-family: Lato, Arial, sans-serif;
  color: #99563C;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.hh-em-schedule-link:hover {
  color: #a55a15;
  text-decoration: underline;
}

.hh-em-schedule-separator {
  position: relative;
  border-radius: 50%;
  background-color: rgba(228, 168, 64, 0.9);
  height: 3px;
  width: 3px;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
  margin: 0 3px;
}

/* Mobile HH Schedule Layout - All mobile devices get smaller fonts and inline date/link layout */
/* 
 * Mobile Font Sizing Strategy:
 * - ≤768px: Heading 12px, Date/Link 8px (main mobile)
 * - ≤600px: Heading 11px, Date/Link 7px (small mobile) 
 * - ≤480px: Heading 11px, Date/Link 7px (extra small mobile)
 * 
 * Date and View Schedule are always displayed side by side inline
 * Layout: [Date] • [View Schedule >] - No line breaks
 */
@media (max-width: 768px) {
  .hh-em-schedule-events {
    padding: 0 16px;
  }
  
  .hh-em-schedule-item {
    padding: 8px;
    gap: 10px;
    background: transparent;
    border-radius: 0;
    margin-bottom: 12px;
    flex-wrap: nowrap;
    align-items: flex-start;
    max-width: 100%;
    overflow: visible;
    position: relative;
  }
  
  /* Add divider after each schedule item except the last one - Mobile */
  .hh-em-schedule-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 120px;
    height: 1px;
    background-color: #E4A840;
  }
  
  .hh-em-schedule-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
  }
  
  .hh-em-schedule-image img {
    width: 120px !important;
    height: 80px !important;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-content {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 132px); /* 120px image + 12px gap */
    padding: 0;
    overflow: visible; /* Allow content to be visible */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .hh-em-schedule-content h3 {
    font-size: 14px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #472B20;
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: visible;
  }
  
  .hh-em-schedule-meta {
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 4px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden; /* contain overflow */
    white-space: nowrap; /* keep location and link on one line */
  }
  
  .hh-em-schedule-date {
    font-size: 14px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #99563C;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-date-to {
    color: #472B20;
    font-size: 14px;
    font-weight: 700;
    margin: 0 6px;
    white-space: pre;
  }
  
  .hh-em-schedule-location-wrapper {
    font-size: 13px;
    font-weight: 600;
    color: #7E6252;
    flex: 1;           /* take remaining space */
    min-width: 0;      /* allow shrinking */
    overflow: hidden;  /* enable ellipsis */
  }
  
  .hh-em-schedule-location-icon {
    width: 14px;
    height: 14px;
  }
  
  .hh-em-schedule-location {
    font-size: 13px;
    font-weight: 600;
    color: #7E6252;
    white-space: nowrap;        /* single line */
    overflow: hidden;           /* hide overflow */
    text-overflow: ellipsis;    /* add ellipsis if long */
  }
  
  .hh-em-schedule-dot {
    width: 3px;
    height: 3px;
    margin: 0 3px;
  }
  
  .hh-em-schedule-link {
    font-size: 13px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #99563C;
    font-weight: 600;
    text-align: left;
    padding: 1px 3px;
    background: transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap; /* keep on one line */
    display: inline-block;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-link:hover {
    background: rgba(196, 107, 28, 0.1);
    color: #a55a15;
  }
  
  /* Force inline layout for location and view schedule */
  .hh-em-schedule-meta > * {
    display: inline-block !important;
    vertical-align: middle;
  }
}

/* Small mobile devices */
@media (max-width: 600px) and (min-width: 481px) {
  .hh-em-schedule-content h3 {
    font-size: 14px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #472B20;
    font-weight: 600;
    text-align: left;
    display: block;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: visible;
  }
  
  .hh-em-schedule-meta {
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
    margin-top: 3px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    max-width: 100%;
    overflow: visible;
  }
  
  .hh-em-schedule-date {
    font-size: 13px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #99563C;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-date-to {
    color: #472B20;
    font-size: 13px;
    font-weight: 700;
  }
  
  .hh-em-schedule-location-wrapper {
    font-size: 12px;
    font-weight: 600;
    color: #7E6252;
  }
  
  .hh-em-schedule-location-icon {
    width: 13px;
    height: 13px;
  }
  
  .hh-em-schedule-location {
    font-size: 12px;
    font-weight: 600;
    color: #7E6252;
  }
  
  .hh-em-schedule-dot {
    width: 3px;
    height: 3px;
    margin: 0 3px;
  }
  
  .hh-em-schedule-link {
    font-size: 12px;
    letter-spacing: 0.1px;
    line-height: 120%;
    font-family: Lato, Arial, sans-serif;
    color: #99563C;
    font-weight: 600;
    text-align: left;
    padding: 1px 3px;
    background: transparent;
    border-radius: 3px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .hh-em-schedule-item {
    padding: 8px;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
  }
  
  /* Add divider after each schedule item except the last one - Extra Small Mobile */
  .hh-em-schedule-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 135px;
    height: 1px;
    background-color: #E4A840;
  }
  
  .hh-em-schedule-image {
    width: 135px;
    height: 90px;
    overflow: hidden;
  }
  
  .hh-em-schedule-image img {
    width: 135px !important;
    height: 90px !important;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: #472B20;
    margin-bottom: 6px;
  }
  
  .hh-em-schedule-meta {
    gap: 4px;
    margin-top: 3px;
    flex-wrap: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
  }
  
  .hh-em-schedule-date {
    font-size: 12px;
    font-weight: 700;
    color: #99563C;
    display: inline-block;
    flex-shrink: 0;
  }
  
  .hh-em-schedule-date-to {
    color: #472B20;
    font-size: 12px;
    font-weight: 700;
    margin: 0 4px;
    white-space: pre;
  }
  
  .hh-em-schedule-location-wrapper {
    font-size: 11px;
    font-weight: 600;
    color: #7E6252;
  }
  
  .hh-em-schedule-location-icon {
    width: 12px;
    height: 12px;
  }
  
  .hh-em-schedule-location {
    font-size: 11px;
    font-weight: 600;
    color: #7E6252;
  }
  
  .hh-em-schedule-dot {
    width: 3px;
    height: 3px;
    margin: 0 3px;
  }
  
  .hh-em-schedule-link {
    font-size: 11px;
    font-weight: 600;
    color: #99563C;
    display: inline-block;
    flex-shrink: 0;
  }
}

/* Old carousel slide rules removed - see .hh-mc-carousel */

/* Responsive display: handled in mobile carousel section above */

/* New Current Events Card Layout Styles – equal height, button always inside */
.hh-em-event-item {
  display: flex;
  min-height: 0;
}
.hh-em-card-new {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 541.75px;
  flex: 1;
  box-sizing: border-box;
}

.hh-em-card-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.hh-em-card-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hh-em-card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  box-sizing: border-box;
}

.hh-em-category-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 10;
  white-space: nowrap;
  background-color: rgba(10, 20, 47, 0.5); /* Default background color matching mobile - will be overridden by inline styles */
  max-width: calc(100% - 16px);
  box-sizing: border-box;
}

.hh-em-card-content-container {
  width: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.hh-em-card-buttons {
  flex-shrink: 0;
}

.hh-em-card-title-new {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.3;
}

.hh-em-card-location-new {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.hh-em-card-location-new svg {
  flex-shrink: 0;
  color: #666;
}

.hh-em-card-date-new {
  margin-bottom: 16px;
}

.hh-em-card-date-new > div:first-child {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1;
}

.hh-em-card-date-new > div:last-child {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.hh-em-card-buttons {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.hh-em-register-button,
.hh-em-details-button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.hh-em-register-button {
  background: #ffffff;
  color: #136A4A;
}

.hh-em-register-button:hover {
  background: #b84e25;
  transform: translateY(-1px);
}

.hh-em-details-button {
  background: #ffffff;
  color: #136A4A;
}

.hh-em-details-button:hover {
  background: #b84e25;
  transform: translateY(-1px);
}

/* Mobile adjustments for new card layout */
@media (max-width: 768px) {
  .hh-em-card-new {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 541.75px !important;
    overflow: hidden;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-image-container {
    width: 100% !important;
    height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-category-tag {
    top: 6px;
    right: 6px;
    padding: 3px 8px;
    font-size: 10px;
    z-index: 10;
    max-width: calc(100% - 12px);
    box-sizing: border-box;
  }
  
  .hh-em-card-content-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 14px;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-title-new {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .hh-em-card-location-new {
    font-size: 12px;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .hh-em-card-location-new svg {
    width: 12px;
    height: 12px;
  }
  
  .hh-em-card-date-new {
    margin-bottom: 12px;
  }
  
  .hh-em-card-date-new > div:first-child {
    font-size: 20px;
  }
  
  .hh-em-card-date-new > div:last-child {
    font-size: 11px;
  }
  
  .hh-em-card-buttons {
    gap: 6px;
  }
  
  .hh-em-register-button,
  .hh-em-details-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Additional mobile and tablet fixes for image containers */
@media (max-width: 1024px) {
  .hh-em-card-new {
    box-sizing: border-box !important;
  }
  
  .hh-em-card-image-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-image-container img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .hh-em-card-content-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 1024px) {
  .hh-em-events-desktop .hh-em-event-item {
    flex: 1 1 50% !important;
    max-width: 50% !important;
  }
}
}

