/* ========================================
   BUSH BAGS EVENTS PAGE
======================================== */

.bb-events-page {
  width: 100%;
}

/* Main section */

.bb-events-section {
  padding: 60px 0;
}

.bb-events-container {
  width: var(--bb-container);
  margin: 0 auto;
}

/* Intro */

.bb-events-intro {
  width: var(--bb-container);
  margin: 0 auto 45px;
  text-align: center;
  font-size: var(--font-body, 18px);
  line-height: 1.7;
}

.bb-events-intro > *:last-child {
  margin-bottom: 0;
}

/* Events grid */

.bb-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Event card */

.bb-event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bb-border, #dedede);
  background: var(--bb-white, #ffffff);
  border-radius: 4px;
}

/* Event image */

.bb-event-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bb-white, #ffffff);
}

.bb-event-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bb-event-card:hover .bb-event-image img {
  transform: scale(1.04);
}

/* Event content */

.bb-event-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
}

.bb-event-title {
  margin: 0 0 15px;
  color: var(--bb-black, #000);
  font-size: 24px;
  line-height: 1.3;
}

.bb-event-description {
  color: var(--bb-black);
  font-size: var(--font-body, 18px);
  line-height: 1.7;
}

.bb-event-description > *:first-child {
  margin-top: 0;
}

.bb-event-description > *:last-child {
  margin-bottom: 0;
}

/* Empty state */

.bb-events-empty {
  margin: 0 auto;
  padding: 50px 25px;
  text-align: center;
  border: 1px solid var(--bb-border, #dedede);
}

.bb-events-empty h2 {
  margin-top: 0;
  color: var(--bb-black, #000);
}

.bb-events-empty p {
  margin-bottom: 0;
  color: var(--bb-black);
}

/* Tablet */

@media (max-width: 1024px) {
  .bb-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }

  .bb-events-section {
    padding: 45px 0;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .bb-events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bb-events-section {
    padding: 35px 0;
  }

  .bb-events-intro {
    margin-bottom: 30px;
    text-align: left;
  }

  .bb-event-content {
    padding: 20px;
  }

  .bb-event-title {
    font-size: 21px;
  }
}

/* Events page sections */

.bb-events-group {
  margin-bottom: 65px;
}

.bb-events-group:last-child {
  margin-bottom: 0;
}

.bb-events-heading {
  margin: 0 0 30px;
  color: var(--bb-black, #000);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.bb-event-meta {
  margin: 0 0 10px;
  color: var(--bb-black);
  font-size: 15px;
  line-height: 1.6;
}

.bb-event-meta strong {
  color: var(--bb-black, #000);
}

/* .bb-events-empty {
  padding: 40px 25px;
  text-align: center;
  border: 1px solid var(--bb-border, #dedede);
} */

.bb-events-empty p {
  width: var(--bb-container);
  margin: 0 auto 25px;
  color: var(--bb-black);
  font-size: var(--font-body, 18px);
  line-height: 1.7;
}

.bb-events-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  background: var(--bb-olive, #62624b);
  color: var(--bb-white, #ffffff);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.bb-events-button:hover,
.bb-events-button:focus {
  background: var(--bb-orange, #b84f26);
  color: var(--bb-white, #ffffff);
}

.bb-past-events {
  padding-top: 45px;
  border-top: 1px solid var(--bb-border, #dedede);
}

@media (max-width: 600px) {
  .bb-events-group {
    margin-bottom: 45px;
  }

  .bb-events-heading {
    margin-bottom: 22px;
  }

  .bb-past-events {
    padding-top: 30px;
  }
}
