/* ==========================================================================
   Rose Legal – Event List Widget Styles
   ========================================================================== */

/* ── List container ──────────────────────────────────────────────────────── */
.rl-event-list {
  width: 100%;
  font-family: inherit;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ── Individual event row ────────────────────────────────────────────────── */
.rl-event-item {
  display: grid;
  grid-template-columns: 180px 1fr 500px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid #e0ddd8;
  align-items: start;
}

.rl-event-item:last-child {
  border-bottom: none;
}

/* ── Icons ───────────────────────────────────────────────────────────────── */
.rl-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 5px;
  flex-shrink: 0;
}

.rl-icon--member {
  width: 16px;
  height: 16px;
}

/* ── Left column: meta (date / location / badge) ─────────────────────────── */
.rl-event__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 3px;
}

.rl-event__date {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.rl-event__location {
  display: flex;
  align-items: flex-start;
  font-size: 16px;
  color: #6b6b6b;
  line-height: 1.4;
}

/* ── Status badge ────────────────────────────────────────────────────────── */
.rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  width: fit-content;
  background: none;
  border: none;
  border-radius: 0;
}

.rl-badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.rl-badge--past {
  color: #9a9a9a;
}

.rl-badge--upcoming {
  color: #c8352e;
}

/* ── Centre column: body ─────────────────────────────────────────────────── */
.rl-event__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rl-event__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

.rl-event__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rl-event__title a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}

.rl-event__content {
  font-size: 16px;
  line-height: 1.65;
  color: #3a3a3a;
  margin: 0;
}

.rl-event__content p {
  margin: 0 0 0.5em;
}

.rl-event__content p:last-child {
  margin-bottom: 0;
}

/* ── Team member row ─────────────────────────────────────────────────────── */
.rl-event__member .rl-icon--member {
  color: #BE1349;
}

.rl-event__member {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 16px;
  color: #3a3a3a;
  margin-top: 6px;
  padding-top: 10px;
}

.rl-event__member > a {
  background: #f4f4f4;
  padding: 5px 15px;
  border-radius: 6px;
}

.rl-event__member-name {
  font-weight: 600;
  color: #6b6b6b;
}

.rl-event__member-meta {
  color: #6b6b6b;
}

/* ── Right column: event info + book now ─────────────────────────────────── */
.rl-event__side {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  position: relative;
  justify-content: space-between;
}

.rl-event__info {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #3a3a3a;
  background-color: #f4f4f4;
  border-radius: 8px;
  padding: 10px 14px;
}

.rl-event__info p {
  margin: 0 0 0.4em;
}

.rl-event__info p:last-child {
  margin-bottom: 0;
}

/* ── Book Now button ─────────────────────────────────────────────────────── */
.rl-event__btn {
  display: inline-block;
  flex-shrink: 0;
  padding: 10px 22px;
  border: solid 1px #BE1349;
  background-color: #BE1349;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.rl-event__btn:hover,
.rl-event__btn:focus-visible {
  background-color: #9a0f3b;
  color: #ffffff;
  text-decoration: none;
}

/* ── No events message ───────────────────────────────────────────────────── */
.rl-no-events {
  font-size: 0.9rem;
  color: #6b6b6b;
  padding: 24px 0;
  text-align: center;
}

/* ── Infinite-scroll sentinel & loading spinner ──────────────────────────── */
.rl-load-trigger {
  height: 1px;
  overflow: hidden;
  pointer-events: none;
  position: relative;
}

.rl-load-trigger--loading {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rl-load-trigger--loading::after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid #e0ddd8;
  border-top-color: #1a3a5c;
  border-radius: 50%;
  animation: rl-spin 0.75s linear infinite;
}

@keyframes rl-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .rl-event-item {
    grid-template-columns: 160px 1fr 220px;
    gap: 16px;
  }
  .rl-event__side {
    flex-direction: column;
  }
}

/* Mobile landscape */
@media (max-width: 768px) {
  .rl-event-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .rl-event__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .rl-badge {
    margin-top: 0;
  }

  .rl-event__side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .rl-event__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .rl-event__side {
    flex-direction: column;
  }

  .rl-event__btn {
    width: auto;
    text-align: center;
    font-size: 0.9em;
    padding: 8px 25px;
  }
} 

.rl-event__date, .rl-event__location, .rl-badge--upcoming {
  padding-left: 20px;
  position: relative;
}
.rl-event__date svg, .rl-event__location svg, .rl-badge--upcoming svg {
  position: absolute;
  left: 0;
  top: 3px;
  height: 15px;
}