/* AMIT KSA Events — v1.8.4 */

.amit-ksa-events-wrap {
  --amit-surface: #ffffff;
  --amit-bg: #f6f7f9;
  --amit-border: #e5e7eb;
  --amit-text: #111827;
  --amit-muted: #6b7280;
  --amit-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --amit-radius: 18px;

  width: 100%;
  margin: 0 auto;
  color: var(--amit-text);
}

.amit-ksa-events-wrap.ltr { direction: ltr; }
.amit-ksa-events-wrap.rtl { direction: rtl; }

.amit-ksa-events-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 680px) {
  .amit-ksa-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .amit-ksa-events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.amit-ksa-card {
  background: linear-gradient(180deg, #ffffff 0%, #d6dbd1 100%);
  border: 1px solid var(--amit-border);
  border-radius: var(--amit-radius);
  box-shadow: var(--amit-shadow);
  padding: 14px;
  overflow: hidden;
}

.amit-ksa-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.amit-ksa-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.amit-ksa-card-meta {
  font-size: 12px;
  color: var(--amit-muted);
  white-space: nowrap;
  margin-top: 2px;
}

.amit-ksa-card-summary {
  margin-top: 10px;
  color: var(--amit-muted);
  font-size: 14px;
  line-height: 1.6;
}

.amit-ksa-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.amit-ksa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--amit-border);
  background: #ffffff;
  color: var(--amit-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.amit-ksa-btn:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.amit-ksa-event-hero {
  margin-bottom: 14px;
  position: relative;
}

/* -------------------------------------------------------------------------- */
/* Facts rotator (inside the event card)                                       */
/* -------------------------------------------------------------------------- */

.amit-ksa-facts-inline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}

.amit-ksa-facts-inline-head {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 10px;
}



.amit-ksa-facts-stage {
  position: relative;
  min-height: 54px;
}

.amit-ksa-fact {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 450ms ease, transform 450ms ease;
  pointer-events: none;
}

.amit-ksa-fact.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.amit-ksa-facts-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 880px) {
  .amit-ksa-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.amit-ksa-fact-card {
  background: var(--amit-surface);
  border: 1px solid var(--amit-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  padding: 14px;
}

.amit-ksa-fact-text {
  font-size: 14px;
  line-height: 1.7;
}

.amit-ksa-fact-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--amit-muted);
  font-size: 12px;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .amit-ksa-fact {
    transition: none;
    transform: none;
  }
}

.amit-ksa-events-wrap.rtl .amit-ksa-fact-meta {
  justify-content: flex-start;
}

.amit-ksa-dot {
  opacity: 0.6;
}

.amit-ksa-fact-source {
  color: var(--amit-text);
  text-decoration: underline;
}

.amit-ksa-events-empty,
.amit-ksa-events-note {
  margin-top: 10px;
  color: var(--amit-muted);
  font-size: 13px;
}

