:root {
  --ink: #14221c;
  --muted: #4a5c54;
  --leaf: #1a6b4a;
  --leaf-deep: #0f4a34;
  --sand: #e8efe9;
  --cream: #f4f7f5;
  --line: rgba(20, 34, 28, 0.12);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Source Sans 3', 'Cairo', sans-serif;
  color: var(--ink);
  background: var(--cream);
}
html[dir='rtl'] body {
  font-family: 'Cairo', 'Source Sans 3', sans-serif;
}

.act-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--leaf-deep);
  color: #fff;
}
.act-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: 'Fraunces', 'Cairo', serif;
  font-weight: 700;
  font-size: 1.1rem;
}
html[dir='rtl'] .act-brand {
  font-family: 'Cairo', sans-serif;
}
.act-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 3px;
}
.act-top-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-btn,
.act-home {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.lang-btn:hover,
.act-home:hover {
  background: rgba(255, 255, 255, 0.2);
}

.act-main {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 28px 18px 48px;
}
.act-hero h1 {
  margin: 0 0 8px;
  font-family: 'Fraunces', 'Cairo', serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--leaf-deep);
}
html[dir='rtl'] .act-hero h1 {
  font-family: 'Cairo', sans-serif;
}
.act-hero p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 36rem;
}

.act-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip.active {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.act-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.act-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.act-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 74, 52, 0.12);
}
.act-thumb {
  aspect-ratio: 16 / 10;
  background: var(--sand);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.act-thumb img,
.act-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.act-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.act-type {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(15, 74, 52, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.act-body {
  padding: 12px 14px 14px;
}
.act-body h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}
.act-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}
.act-date {
  margin-top: 8px;
  font-size: 12px;
  color: #7a8b82;
}
.act-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 12px;
}
.hidden {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 20, 0.88);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lb-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}
.lb-body {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: auto;
}
.lb-body img,
.lb-body video {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
}
.lb-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
}
.lb-caption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
}
.lb-caption h3 {
  margin: 0 0 6px;
  font-family: 'Fraunces', 'Cairo', serif;
}
html[dir='rtl'] .lb-caption h3 {
  font-family: 'Cairo', sans-serif;
}
.lb-caption p {
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .act-top {
    padding: 12px 14px;
  }
  .act-brand span {
    font-size: 0.95rem;
  }
}
