@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* Layout */
.afj-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding: 28px 0;
  gap: 40px;
  flex-wrap: wrap;
}

.afj-left {
  flex: 1 1 60%;
}

.afj-right {
  flex: 1 1 35%;
}

/* Date */
.afj-date {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-style: normal;
}

/* Metadata: By / Publisher */
.afj-inline-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  margin-bottom: 6px;
  align-items: baseline;
}

.afj-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-right: 4px;
  text-transform: none;
  display: inline-block;
}

.afj-values {
  font-size: 13px;
  display: inline-block;
  margin-left: 0;
}

.afj-values a {
  color: #2A6195;
  text-decoration: none;
  font-size: inherit;
  margin-right: 0;
}

.afj-values a:hover {
  text-decoration: underline;
}

/* Title */
.afj-title {
  font-size: 20px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 6px;
}

.afj-title a {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: #2A6195;
  text-decoration: none;
}

.afj-title a:hover {
  text-decoration: underline;
}

/* Tag (category label) */
.afj-tag {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.afj-tag a {
  background: none;
  color: #666;
  font-size: 12px;
  font-weight: normal;
  padding: 0;
  border-radius: 0;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
}

.afj-tag a:hover {
  color: #2A6195;
}

/* Load More Button */
.facetwp-load-more {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2A6195;
  border: 2px solid #2A6195;
  border-radius: 999px;
  background-color: transparent;
  text-align: center;
  margin: 40px auto 0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.facetwp-load-more:hover {
  background-color: #2A6195;
  color: #ffffff;
}

/* Filter Labels */
.facetwp-facet h3,
.facetwp-facet-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: #2A6195;
  margin-bottom: 8px;
  margin-top: 24px;
}

/* Filter Options */
.facetwp-radio label,
.facetwp-checkbox label {
  font-size: 14px;
  color: #222;
  padding-left: 6px;
}

.facetwp-radio,
.facetwp-checkbox {
  margin-bottom: 4px;
}

.facetwp-toggle {
  font-size: 13px;
  margin-top: 6px;
  display: inline-block;
  color: #2A6195;
  text-decoration: underline;
  cursor: pointer;
}

/* Hide RfR category */
.facetwp-radio label:has(input[value="rfr-member-publications"]),
.facetwp-checkbox label:has(input[value="rfr-member-publications"]) {
  display: none !important;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .afj-row {
    flex-direction: column;
    gap: 20px;
  }

  .afj-left,
  .afj-right {
    flex: 1 1 100%;
  }

  .afj-title {
    font-size: 18px;
  }

  .afj-tag a {
    font-size: 11px;
  }
}
.afj-date {
  margin-bottom: 6px;
}

.afj-title {
  margin-top: 0;
  margin-bottom: 6px; /* spacing below title */
}

.afj-inline-meta {
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  align-items: baseline;
}

.afj-tag {
  margin-top: 4px;
}
.afj-inline-meta {
  column-gap: 0; /* Remove the built-in gap entirely */
}

.afj-label {
  margin-right: 4px; /* Small, equal space between label and name */
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.afj-values {
  margin-right: 16px; /* Adds controlled space between value groups */
}

/* Reduce font size for FacetWP sidebar */
.facetwp-facet label,
.facetwp-facet input,
.facetwp-facet .facetwp-checkbox,
.facetwp-facet .facetwp-radio {
  font-size: 16px !important;
}

.facetwp-facet h3,
.facetwp-facet-label {
  font-size: 16px !important;
  margin-bottom: 6px;
  margin-top: 20px;
}

.facetwp-facet {
  margin-bottom: 12px;
}

/* EVENTS GRID LAYOUT */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
  padding-top: 2rem;
}

/* INDIVIDUAL EVENT CARD */
.event-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

/* TITLE */
.event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1d4f91;
  margin-bottom: 0.5rem;
}

/* DATE (event-time) */
.event-time {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* REGISTER BUTTON */
.event-button {
  display: inline-block;
  margin-bottom: 1rem;
  background-color: #1d4f91;
  color: white;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
}

/* ITALIC DESCRIPTION */
.event-description {
  font-style: normal;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #444;
}

/* META LABELS */
.event-meta div {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.3rem;
}

.event-meta strong {
  font-weight: 600;
  color: #000;
}

/* REMOVE POST LINK CURSOR */
.event-title a {
  pointer-events: none;
  color: inherit;
  text-decoration: none;
}
.event-date {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.event-description,
.event-description * {
  font-style: normal !important;
}

