/* Homepage-only layout: preserve the existing desktop styles and behavior. */
@media (max-width: 767px) {
  .hero-section {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
  }

  .hero-content h1 {
    font-size: clamp(19px, 5.2vw, 22px);
    line-height: 1.2;
  }

  .hero-content p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.3;
  }

  .hero-section .event-search {
    flex-direction: row;
    align-items: center;
    gap: 0;
    max-width: none;
    margin-top: 16px !important;
    padding: 4px;
    border-radius: 999px;
  }

  .hero-section .event-search .search-item {
    width: auto;
    height: 44px;
    padding-inline: 8px;
  }

  .hero-section .event-search .event-search__category {
    flex: 0 0 34%;
    padding-inline: 6px;
    border-right: 1px solid #e5e5ec;
    border-bottom: 0;
  }

  .hero-section .event-search__keyword {
    flex: 1 1 0;
    min-width: 0;
    border-bottom: 0;
  }

  .hero-section .event-search .search-item label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero-section .event-search #borwseby-button,
  .hero-section .event-search .search-item input {
    min-width: 0;
    font-size: 14px;
  }

  .hero-section .event-search #borwseby-button {
    font-size: 12px;
  }

  .hero-section .event-search #borwseby-button .ui-selectmenu-text {
    min-width: 0;
    margin-inline-end: 4px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-section .event-search .event-search__submit.theme-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
  }

  .hero-section .event-search__submit span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero-section .event-search__submit i::before {
    content: '\f002';
  }

  .lj-happening-events {
    padding-top: 26px;
  }

  .lj-happening-events .lj-event-section-title {
    margin-bottom: 14px !important;
  }

  .lj-happening-events .lj-event-section-title h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .lj-happening-events .lj-event-section-title h2::after {
    margin-top: 8px;
  }

  .lj-happening-events .events-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px !important;
  }

  .lj-happening-events .events-filter::-webkit-scrollbar {
    display: none;
  }

  .lj-happening-events .events-filter:focus-visible {
    outline: 2px solid #8d2294;
    outline-offset: 3px;
    border-radius: 4px;
  }

  .lj-happening-events .events-filter li {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Homepage happening-events heading only. */
.lj-happening-events {
  padding-top: 28px !important;
}

.lj-happening-events .lj-event-section-title {
  margin-bottom: 18px !important;
}

.lj-happening-events .lj-event-section-title h2 {
  color: #000000;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.lj-happening-events .lj-event-section-title h2 span {
  color: inherit;
}

.lj-happening-events .lj-event-section-title h2::after {
  display: none;
  content: none;
}

@media (max-width: 767px) {
  .lj-happening-events {
    padding-top: 22px !important;
  }

  .lj-happening-events .lj-event-section-title {
    margin-bottom: 12px !important;
  }

  .lj-happening-events .lj-event-section-title h2 {
    font-size: min(20px, calc(clamp(19px, 5.2vw, 22px) - 2px));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lj-happening-events .lj-event-section-title h2 {
    font-size: 24px;
  }
}
