.rootsta-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 20px 0;
}

.rootsta-event {
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 5px;
  box-shadow: 0 5px 18px rgba(27, 51, 99, .08);
}

.rootsta-event-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.rootsta-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rootsta-event-body { padding: 18px; }

.rootsta-event-title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 18px;
  line-height: 1.35;
}

.rootsta-event-title a { color: #000; }
.rootsta-event-title a:hover { color: #1b3363; }

.rootsta-event-meta {
  color: #1b3363;
  font-size: 14px;
  line-height: 1.55;
}

.rootsta-event-date { font-weight: 700; }
.rootsta-event-location, .rootsta-event-venue { margin-top: 5px; }
.rootsta-event-excerpt { margin: 12px 0 0; }

.rootsta-event-description {
  margin: 28px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.75;
}

.rootsta-event-description p { margin-bottom: 1em; }

.rootsta-event-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 18px 0;
  color: #1b3363;
}

.rootsta-event-detail {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.rootsta-event-detail dt { font-weight: 700; }
.rootsta-event-detail dd { margin: 0; }

.rootsta-event-sidebar {
  margin: 0 0 22px;
  padding: 24px;
  border: 1px solid rgba(37, 72, 117, .16);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff 0%, #f3f6fa 100%);
  box-shadow: 0 8px 26px rgba(27, 51, 99, .1);
  color: #1b3363;
}

.rootsta-event-sidebar h2 {
  margin: 0 0 17px;
  padding: 0;
  color: #1b3363;
  font-size: 21px;
  line-height: 1.25;
}

.rootsta-event-sidebar dl { margin: 0; }

.rootsta-event-sidebar dl > div {
  padding: 12px 0;
  border-top: 1px solid rgba(37, 72, 117, .12);
}

.rootsta-event-sidebar dt {
  margin-bottom: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.rootsta-event-sidebar dd {
  margin: 0;
  color: #1b3363;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.rootsta-event-sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 18px;
  box-sizing: border-box;
  border: 2px solid #254875;
  border-radius: 7px;
  background: #254875;
  box-shadow: 0 5px 14px rgba(37, 72, 117, .22);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rootsta-event-sidebar-button:hover {
  border-color: #1b3363;
  background: #1b3363;
  box-shadow: 0 7px 18px rgba(27, 51, 99, .28);
  color: #fff !important;
  transform: translateY(-1px);
}

.rootsta-location-card {
  overflow: hidden;
  margin: 18px 0 30px;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(27, 51, 99, .11);
}

.rootsta-location-copy {
  display: flex;
  gap: 14px;
  padding: 22px 24px;
  color: #1b3363;
}

.rootsta-location-pin {
  flex: 0 0 auto;
  color: #254875;
  font-size: 20px;
  line-height: 1.2;
}

.rootsta-location-copy h3 {
  margin: 0 0 6px;
  padding: 0;
  color: #1b3363;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.rootsta-location-copy address {
  margin: 0 0 12px;
  color: #4c566a;
  font-style: normal;
}

.rootsta-location-route {
  color: #254875;
  font-weight: 700;
}

.rootsta-location-route:hover { color: #1b3363; }

.rootsta-location-map {
  height: 320px;
  background: #eef1f5;
}

.rootsta-location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rootsta-event-rsvp {
  width: 100%;
  margin: 35px 0;
  box-sizing: border-box;
  scroll-margin-top: 100px;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-wrapper {
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  box-sizing: border-box;
  border: 1px solid rgba(37, 72, 117, .18) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff 0%, #f5f7fb 100%) !important;
  box-shadow: 0 12px 36px rgba(27, 51, 99, .13);
}

.rootsta-event-rsvp .tribe-tickets__rsvp {
  align-items: stretch;
  padding: 0 !important;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-details-wrapper {
  padding: 34px 42px !important;
  box-sizing: border-box;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-title {
  margin: 0 0 20px !important;
  color: #1b3363 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-title,
.rootsta-event-rsvp .tribe-tickets__rsvp-description {
  flex: 0 0 100%;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-description {
  display: none;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-attendance,
.rootsta-event-rsvp .tribe-tickets__rsvp-availability {
  display: inline-flex !important;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0 !important;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e9eef6;
  color: #254875 !important;
  font-size: 13px !important;
  line-height: 1.2;
  white-space: nowrap;
}

.rootsta-reservation-progress {
  flex: 0 0 100%;
  margin-top: 2px;
}

.rootsta-reservation-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: #4c566a;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.rootsta-reservation-labels strong {
  color: #1b3363;
  font-size: 15px;
}

.rootsta-reservation-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 14px;
  border: 1px solid rgba(37, 72, 117, .13);
  border-radius: 999px;
  background: #dfe6f0;
  box-shadow: inset 0 1px 3px rgba(27, 51, 99, .12);
}

.rootsta-reservation-fill {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #254875, #3f6698);
  transition: width .35s ease;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-attendance-number,
.rootsta-event-rsvp .tribe-tickets__rsvp-availability-quantity {
  margin-right: 5px;
  color: #1b3363 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-actions-wrapper {
  display: flex;
  align-items: center;
  padding: 34px 42px !important;
  box-sizing: border-box;
  border-left: 1px solid rgba(37, 72, 117, .14);
  background: rgba(255, 255, 255, .68);
}

.rootsta-event-rsvp .tribe-tickets__rsvp-actions,
.rootsta-event-rsvp .tribe-tickets__rsvp-actions-rsvp {
  width: 100%;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-actions-rsvp > span {
  display: block;
  margin-bottom: 12px;
  color: #1b3363 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-actions-button-going,
.rootsta-event-rsvp .tribe-tickets__rsvp-form-button {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 22px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #254875 !important;
  box-shadow: 0 5px 14px rgba(37, 72, 117, .22);
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.rootsta-event-rsvp .tribe-tickets__rsvp-actions-button-going:hover,
.rootsta-event-rsvp .tribe-tickets__rsvp-form-button:hover {
  background: #1b3363 !important;
  box-shadow: 0 7px 18px rgba(27, 51, 99, .28);
  transform: translateY(-1px);
}

.rootsta-event-rsvp input[type="text"],
.rootsta-event-rsvp input[type="email"],
.rootsta-event-rsvp input[type="number"] {
  min-height: 46px;
  border: 1px solid #cbd3df !important;
  border-radius: 7px !important;
  background: #fff !important;
}

.rootsta-event-rsvp input:focus {
  border-color: #254875 !important;
  box-shadow: 0 0 0 3px rgba(37, 72, 117, .12) !important;
  outline: 0 !important;
}

@media (max-width: 980px) {
  .rootsta-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rootsta-event-rsvp .tribe-tickets__rsvp-actions-wrapper {
    border-top: 1px solid rgba(37, 72, 117, .14);
    border-left: 0;
  }
}

@media (max-width: 600px) {
  .rootsta-events { grid-template-columns: 1fr; }
  .rootsta-event-details { display: block; }
  .rootsta-event-detail { margin-bottom: 8px; }
  .rootsta-location-map { height: 260px; }
  .rootsta-event-rsvp .tribe-tickets__rsvp-details-wrapper,
  .rootsta-event-rsvp .tribe-tickets__rsvp-actions-wrapper {
    padding: 24px !important;
  }
  .rootsta-event-rsvp .tribe-tickets__rsvp-title {
    font-size: 20px !important;
  }
  .rootsta-event-rsvp .tribe-tickets__rsvp-attendance,
  .rootsta-event-rsvp .tribe-tickets__rsvp-availability {
    padding: 7px 8px;
    font-size: 12px !important;
  }
}
