/* 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: 344px;
  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;
}

/* Desktop Layout - Center Events - Full width 1600px */
@media (min-width: 769px) {
  .hh-em-events-desktop {
    display: block;
  }
  
  .hh-em-events-mobile {
    display: none;
  }
  
  .hh-em-calendar-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    justify-items: center !important;
  }
  
  .hh-em-current-events-grid {
    max-width: 1600px !important;
    margin: 0 auto !important;
  }
  
  .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;
  }
  
  .hh-em-carousel-slide {
    width: 344px !important;
    min-width: 344px !important;
    max-width: 344px !important;
    flex: 0 0 344px !important;
    margin: 0 !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;
  }
  
  /* Current Events alignment by count on desktop */
  .hh-em-current-events.count-1,
  .hh-em-current-events.count-2,
  .hh-em-current-events.count-3 {
    justify-content: flex-start !important; /* keep left when 1-3 events */
  }
  .hh-em-current-events.count-4 {
    justify-content: center !important; /* keep centered when 4 events */
  }
}

/* Small Laptop Layout - Prevent wrapping */
@media (max-width: 1200px) and (min-width: 769px) {
  .hh-em-current-events {
    flex-wrap: nowrap !important;
  }
  
  .hh-em-event-item {
    flex: 0 0 calc(25% - 12px) !important;
    max-width: calc(25% - 12px) !important;
    min-width: 280px !important;
  }
}

/* Tablet Layout - Responsive Grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .hh-em-calendar-list {
    grid-template-columns: repeat(4, 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;
  }
  
  /* 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 Layout - Carousel with 1 slide + 10% of next slide visible */
/* Mobile carousel uses 260px × 450px cards with 320px slide width for proper preview */
/* Carousel is centered to show proper slide positioning */
/* Track width dynamically calculated to show all slides */
@media (max-width: 768px) {
  .hh-em-events-desktop {
    display: none !important;
  }
  
  .hh-em-events-mobile {
    display: block !important;
  }
  
  .hh-em-calendar-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    justify-content: center !important;
  }
  
  .hh-em-calendar-date-group {
    min-width: 344px !important;
    max-width: 344px !important;
    flex: 0 0 344px !important;
    margin-bottom: 24px !important;
  }
  
  /* Mobile Carousel Container - Full width 1600px */
  /* Shows 1 slide + 10% of next slide for better UX */
  /* Container has no padding, track handles centering and spacing */
  .hh-em-carousel-container {
    max-width: 1600px !important;
    width: 100% !important;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0;
    /* Ensure proper slide visibility with 1 slide + 10% of next */
    box-sizing: border-box;
    /* Center the carousel content */
    display: flex;
    justify-content: center;
  }
  
  .hh-em-carousel-track {
    display: flex;
    gap: 0;
    width: 100%;
    transition: transform 0.3s ease;
    padding: 0 16px;
    justify-content: flex-start;
    /* Centers slides and provides left/right spacing */
    /* Ensure track can accommodate all slides */
    min-width: calc(320px * var(--total-slides, 3));
    /* Center the track when there are fewer slides than container width */
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Additional centering for mobile carousel when fewer slides */
  @media (max-width: 768px) {
    .hh-em-carousel-container {
      /* Ensure container is centered */
      text-align: center;
    }
    
    .hh-em-carousel-track {
      /* Center the track when there are fewer slides */
      margin: 0 auto;
      /* Ensure proper alignment */
      justify-content: flex-start;
    }
    
    /* When there are very few slides, center them better */
    .hh-em-carousel-track[style*="--total-slides: 1"],
    .hh-em-carousel-track[style*="--total-slides: 2"] {
      justify-content: center;
    }
  }
  
  .hh-em-carousel-slide {
    margin: 0;
    flex-shrink: 0;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 20px;
  }
  
  /* Current Events Mobile Carousel - 2 cards per slide with proper sizing */
  .hh-em-current-events-mobile {
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-container {
    max-width: 1600px !important;
    width: 100% !important;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 0;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-track {
    display: flex;
    gap: 1px;
    width: 100%;
    transition: transform 0.3s ease;
    padding: 0 16px;
    justify-content: flex-start;
    /* Ensure track can accommodate all slides */
    min-width: calc(320px * var(--total-slides, 3));
    /* Center the track when there are fewer slides than container width */
    margin-left: auto;
    margin-right: auto;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide {
    margin: 0;
    flex-shrink: 0;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 0;
    /* Center each event card within its slide */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card {
    width: 260px !important;
    height: 450px !important;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-content {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-height: 0;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-title {
    font-size: clamp(12px, 2vw, 14px) !important;
    line-height: 1.3;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Ensure image and content are equal/aligned */
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-bg {
    flex: 0 0 auto;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-gradient {
    flex: 0 0 auto;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-date-badge {
    font-size: clamp(7px, 1.5vw, 9px) !important; /* Smaller responsive font size for mobile carousel */
    padding: 2px 10px;
    margin-bottom: 10px;
  }
  
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card-location {
    font-size: clamp(12px, 1.8vw, 14px) !important; /* Increased by another 2px for mobile carousel */
  }
  
  /* Carousel Dots */
  .hh-em-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    z-index: 10;
  }
  
  .hh-em-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #F5C77A;
    transition: background-color 0.3s ease;
  }
  
  .hh-em-carousel-dot.active {
    background: #c46b1c;
  }
  
  .hh-em-carousel-dot:hover {
    background: #c46b1c;
  }
  
  /* Current Events Mobile Layout */
  .hh-em-current-events-mobile {
    max-width: 1600px !important;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .hh-em-current-event-mobile-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8f4f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    align-items: center;
  }
  
  .hh-em-current-event-mobile-item:last-child {
    margin-bottom: 0;
  }
  
  .hh-em-current-event-mobile-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  
  .hh-em-current-event-mobile-image {
    flex-shrink: 0;
  }
  
  .hh-em-current-event-mobile-image img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
  }
  
  .hh-em-current-event-mobile-item:hover .hh-em-current-event-mobile-image img {
    transform: scale(1.05);
  }
  
  .hh-em-current-event-mobile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  
  .hh-em-current-event-mobile-content h3 {
    margin: 0 0 10px 0;
    font-size: clamp(13px, 3vw, 15px); /* Smaller responsive font size for mobile current events */
    color: #2c2c2c;
    line-height: 1.4;
  }
  
  .hh-em-current-event-mobile-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
  }
  
  .hh-em-current-event-mobile-content h3 a:hover {
    color: #c46b1c;
  }
  
  .hh-em-current-event-mobile-date {
    color: #555;
    font-size: clamp(10px, 2.3vw, 12px); /* Smaller responsive font size for mobile current events */
    font-weight: 500;
    margin-bottom: 6px;
  }
  
  .hh-em-current-event-mobile-location {
    color: #666;
    font-size: clamp(9px, 2vw, 11px); /* Smaller responsive font size for mobile current events */
    font-weight: 400;
    margin-bottom: 10px;
  }
  
  .hh-em-current-event-mobile-link {
    color: #c46b1c;
    font-size: clamp(10px, 2.3vw, 12px); /* Smaller responsive font size for mobile current events */
    font-weight: 600;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(196, 107, 28, 0.1);
    border-radius: 5px;
    transition: all 0.2s ease;
    align-self: flex-start;
    white-space: nowrap;
  }
  
  .hh-em-current-event-mobile-link:hover {
    background: rgba(196, 107, 28, 0.2);
    color: #a55a15;
  }
}

/* Small Mobile - Ensure cards don't get cut off */
@media (max-width: 600px) {
  .hh-em-card {
    width: 260px;
    height: 450px;
  }
  
  .hh-em-card-title {
    font-size: clamp(14px, 3vw, 20px); /* Smaller responsive font size for small mobile */
  }
  
  .hh-em-carousel-container {
    max-width: calc(100vw - 32px) !important;
    padding: 0;
  }
  
  .hh-em-carousel-track {
    justify-content: center;
  }
  
  .hh-em-carousel-slide {
    margin: 0;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 20px;
  }
  
  /* Ensure current events mobile carousel works properly */
  .hh-em-current-events-mobile .hh-em-carousel-slide {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 20px;
  }
  
  /* Ensure current events mobile carousel cards have correct height */
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card {
    width: 260px !important;
    height: 450px !important;
    min-height: 450px;
  }
}

/* Extra Small Mobile - Prevent card cutoff */
@media (max-width: 400px) {
  .hh-em-card {
    width: 260px;
    height: 450px;
    min-height: 450px;
  }
  
  .hh-em-card-content {
    padding: 16px;
  }
  
  .hh-em-card-title {
    font-size: clamp(12px, 2.5vw, 18px); /* Smaller responsive font size for extra small mobile */
  }
  
  .hh-em-carousel-track {
    justify-content: center;
  }
  
  .hh-em-carousel-slide {
    margin: 0;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 20px;
  }
  
  /* Ensure current events mobile carousel works properly on very small screens */
  .hh-em-current-events-mobile .hh-em-carousel-slide {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    flex: 0 0 320px !important;
    padding-right: 20px;
  }
  
  /* Ensure current events mobile carousel cards have correct height */
  .hh-em-current-events-mobile .hh-em-carousel-slide .hh-em-card {
    width: 260px !important;
    height: 450px !important;
    min-height: 450px;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .hh-em-carousel-dot {
    min-width: 16px;
    min-height: 16px;
  }
}

/* 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;
  }
}

/* Universal Carousel Styles for All Display Types */
.hh-em-carousel-container,
.hh-em-schedule-carousel-container,
.hh-em-current-carousel-container {
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.hh-em-carousel-track,
.hh-em-schedule-carousel-track,
.hh-em-current-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  gap: 16px;
  padding: 0 16px;
}

/* Current Events Carousel - 1 event per slide */
.hh-em-current-carousel-track {
  gap: 1px;
  padding: 0;
}

.hh-em-carousel-slide,
.hh-em-schedule-slide,
.hh-em-current-slide {
  display: flex;
  gap: 16px;
  min-width: 100%;
  flex: 0 0 100%;
}

/* Current Events Carousel - 1 event per slide */
.hh-em-current-slide {
  gap: 0;
  justify-content: center;
  width: 100%;
}

/* Navigation Dots for All Carousel Types */
.hh-em-carousel-dots,
.hh-em-schedule-carousel-dots,
.hh-em-current-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.hh-em-carousel-dot,
.hh-em-schedule-carousel-dot,
.hh-em-current-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #F5C77A;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
}

.hh-em-carousel-dot:hover,
.hh-em-schedule-carousel-dot:hover,
.hh-em-current-carousel-dot:hover {
  background: #e6b85a;
  transform: scale(1.1);
}

.hh-em-carousel-dot.active,
.hh-em-schedule-carousel-dot.active,
.hh-em-current-carousel-dot.active {
  background: #c46b1c;
  transform: scale(1.2);
}

/* Current Events Carousel Dots - Ensure visibility */
.hh-em-current-carousel-dots {
  display: flex !important;
  z-index: 10;
  position: relative;
}

.hh-em-current-carousel-dot {
  display: block !important;
}

/* Responsive Carousel Adjustments */
@media (max-width: 1200px) {
  .hh-em-carousel-container,
  .hh-em-schedule-carousel-container,
  .hh-em-current-carousel-container {
    max-width: 100%;
    padding: 0 16px;
  }
  
  .hh-em-carousel-track,
  .hh-em-schedule-carousel-track,
  .hh-em-current-carousel-track {
    gap: 10px;
    padding: 0 8px;
  }
}

@media (max-width: 768px) {
  .hh-em-carousel-container,
  .hh-em-schedule-carousel-container,
  .hh-em-current-carousel-container {
    padding: 0 8px;
  }
  
  .hh-em-carousel-track,
  .hh-em-schedule-carousel-track,
  .hh-em-current-carousel-track {
    gap: 8px;
    padding: 0 4px;
  }
  
  .hh-em-carousel-dots,
  .hh-em-schedule-carousel-dots,
  .hh-em-current-carousel-dots {
    margin-top: 16px;
    margin-bottom: 16px;
    gap: 6px;
  }
  
  .hh-em-carousel-dot,
  .hh-em-schedule-carousel-dot,
  .hh-em-current-carousel-dot {
    width: 10px;
    height: 10px;
  }
  
  /* Current Events Carousel Mobile */
  .hh-em-current-carousel-track {
    gap: 1px;
    padding: 0;
  }
  
  .hh-em-current-carousel-dots {
    display: flex !important;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Touch and Swipe Enhancements */
.hh-em-carousel-track,
.hh-em-schedule-carousel-track,
.hh-em-current-carousel-track {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Smooth Transitions */
.hh-em-carousel-slide,
.hh-em-schedule-slide,
.hh-em-current-slide {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Focus States for Accessibility */
.hh-em-carousel-dot:focus,
.hh-em-schedule-carousel-dot:focus,
.hh-em-current-carousel-dot:focus {
  outline: 2px solid #c46b1c;
  outline-offset: 2px;
}

/* Loading States */
.hh-em-carousel-container.loading,
.hh-em-schedule-carousel-container.loading,
.hh-em-current-carousel-container.loading {
  opacity: 0.7;
  pointer-events: none;
}

.hh-em-carousel-container.loading::after,
.hh-em-schedule-carousel-container.loading::after,
.hh-em-current-carousel-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #c46b1c;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Event Card Grid Layout for Carousel */
.hh-em-carousel-slide .hh-em-card,
.hh-em-schedule-slide .hh-em-schedule-item,
.hh-em-current-slide .hh-em-event-item {
  flex: 1;
  min-width: 0;
  max-width: calc(25% - 12px);
}

/* Current Events Carousel - Event Item Sizing */
.hh-em-current-slide .hh-em-event-item {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Ensure proper spacing in carousel slides */
.hh-em-carousel-slide .hh-em-card:not(:last-child),
.hh-em-schedule-slide .hh-em-schedule-item:not(:last-child),
.hh-em-current-slide .hh-em-event-item:not(:last-child) {
  margin-right: 16px;
}

/* Mobile Optimization */
@media (max-width: 480px) {
  .hh-em-carousel-slide .hh-em-card,
  .hh-em-schedule-slide .hh-em-schedule-item,
  .hh-em-current-slide .hh-em-event-item {
    max-width: 100%;
    margin-right: 0;
    width: 100%;
  }
  
  .hh-em-carousel-track,
  .hh-em-schedule-carousel-track,
  .hh-em-current-carousel-track {
    gap: 0;
    padding: 0;
  }
  
  .hh-em-current-slide .hh-em-event-item {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  
  .hh-em-current-slide .hh-em-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* Responsive display logic */
@media (min-width: 769px) {
  .hh-em-events-desktop {
    display: block !important;
  }
  
  .hh-em-events-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hh-em-events-desktop {
    display: none !important;
  }
  
  .hh-em-events-mobile {
    display: block !important;
  }
}
