.timeline {
  border-left: 3px dashed #e5e7eb;
  margin-left: 2.5rem;
  padding-left: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  .timeline {
    margin-left: 0.5rem;
  }
}

.timeline-item {
  position: relative;
  background: white;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin: 0.7em 0;
}

.date-label {
  position: relative;
  line-height: 1;
  display: inline-block;
}

.date-label::before {
  content: "";
  position: absolute;
  left: -3.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #0033ad;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #e5e7eb;
}

/* Animation for today's events */
.date-label.today::before {
  animation: pulse 3s infinite;
  background-color: #0033ad;
}

@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(0, 51, 173, 1);
    box-shadow: 0 0 0 rgba(0, 51, 173, 1);
  }
  50% {
    -moz-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    -moz-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

.error-message {
  color: #dc2626;
  padding: 1rem;
  border: 1px solid #dc2626;
  border-radius: 0.5rem;
  background-color: #fee2e2;
  margin-bottom: 1rem;
}

/* Make the filter container sticky */
@media (min-width: 768px) {
  #filter-container-wrapper {
    position: relative;
  }

  .filter-container {
    position: sticky;
    top: 20px;
  }
}

.filter-section h3 {
  position: relative;
  padding-right: 20px;
}

/* Company logos styling */
.company-logos {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 0.75rem;
}

.company-logos a {
  width: 120px;
  height: 40px;
  display: block;
}

.company-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* On mobile, center the logo grid */
@media (max-width: 767px) {
  .company-logos {
    margin-top: 1rem;
    justify-content: center;
  }
}

/* On desktop, align logos to the right */
@media (min-width: 768px) {
  .company-logos {
    justify-content: end;
  }
}

/* Logo Carousel Styles - Updated with fade effects */
.logo-carousel-container {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  margin: 1em auto 3em auto;
}

.logo-carousel {
  display: flex;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
  cursor: grab;
}

.logo-carousel:active {
  cursor: grabbing;
}

.logo-carousel:hover {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  margin: 0 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Fade overlays for left and right sides */
.logo-carousel-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none; /* Allow clicks to pass through */
}

.left-fade {
  left: 0;
  background: linear-gradient(
    to right,
    #f8f9fa 0%,
    rgba(248, 249, 250, 0) 100%
  );
}

.right-fade {
  right: 0;
  background: linear-gradient(to left, #f8f9fa 0%, rgba(248, 249, 250, 0) 100%);
}

.left-fade {
  left: 0;
  background: linear-gradient(
    to right,
    #f9fafb 0%,
    rgba(249, 250, 251, 0) 100%
  );
}

.right-fade {
  right: 0;
  background: linear-gradient(to left, #f9fafb 0%, rgba(249, 250, 251, 0) 100%);
}

/* Animation for infinite scrolling */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* For smaller screens */
@media (max-width: 768px) {
  .logo-item {
    margin: 0 10px;
  }

  .logo-item img {
    height: 30px;
  }

  .logo-carousel-fade {
    width: 50px;
  }
}

/* Event tags container - updated styling */
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Default styling for all tags */
.event-tags > span {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  line-height: 1;
}

/* Event type tag styling */
.event-type {
  background-color: #e0e7ff;
  color: #0033ad;
}

/* Multi-day badge styling */
.multi-day-badge {
  background-color: #fef3c7;
  color: #92400e;
}

/* logo */

.logo-container {
  display: inline-block;
  text-align: center;
  margin-bottom: 3rem;
}

.site-title {
  display: inline-block;
  position: relative;
}

/* the line matches the width of the title block */
.horizontal-line {
  position: relative;
  width: 100%;
  height: 5px;
  background: #e5e7eb;
  margin: 0.3rem auto 0;
}

/* Absolute positioning gives full control */
.horizontal-line .dot {
  position: absolute;
  top: -7px;
  width: 18px;
  height: 18px;
  background: #0033ad;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 2px #e5e7eb;
}

/* Positions — tweak percentages as you like */
.horizontal-line .dot:nth-child(1) {
  left: 0%;
}
.horizontal-line .dot:nth-child(2) {
  left: 66%;
} /* ~two-thirds */
.horizontal-line .dot:nth-child(3) {
  left: 100%;
  transform: translateX(-100%);
}

/* Pulse */
.horizontal-line .dot.pulse {
  animation: pulse 3s infinite;
}

/* Desktop default */
.feedback-button {
  position: absolute;
  top: 2rem;
  right: 2rem;
}

@media (max-width: 768px) {
  .feedback-button {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1000; /* ensure above header */
    margin: 0;
  }

  .feedback-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #0033ad;
    color: white;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .feedback-button a:hover {
    background-color: #0044d6;
  }

  /* Push the rest of the page down so header isn't hidden */
  header {
    margin-top: 64px; /* matches height of the button bar */
  }
}

/* Mobile filter toggle styles */
.mobile-filter-toggle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-content {
  transition: height 0.3s ease, opacity 0.3s ease;
}

/* Animation for the toggle icon */
.mobile-filter-toggle svg {
  transition: transform 0.3s ease;
}

/* Hide toggle button on desktop */
@media (min-width: 768px) {
  #toggle-filters-button {
    display: none;
  }
}

/* Make sure the checkbox group has proper spacing */
.checkbox-group {
  max-height: 300px;
  overflow-y: auto;
}

/* Show/hide transitions for the remaining options */
.remaining-options {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.remaining-options.hidden {
  max-height: 0;
  opacity: 0;
}

.remaining-options:not(.hidden) {
  max-height: 500px;
  opacity: 1;
}
