/* Event moments: the home page section under "Ordinary people…", /moments/ and a moment's page.
   Plain CSS (no Tailwind build needed). Logical properties, so Arabic and English both work. */

:root {
  --mo-bg: #1a050c;
  --mo-panel: #2a0b16;
  --mo-maroon: #4a0f20;
  --mo-gold: #c9a24b;
  --mo-gold-light: #e8cb7d;
  --mo-paper: #faf7f2;
  --mo-muted: rgba(250, 247, 242, 0.7);
  --mo-line: rgba(201, 162, 75, 0.22);
  --mo-gold-gradient: linear-gradient(135deg, #e8cb7d, #c9a24b 55%, #9a7627);
  --mo-display: "Alexandria", "IBM Plex Sans Arabic", sans-serif;
}

/* ------------------------------------------------------------------ shared text */
.mo-kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--mo-gold);
}
.mo-title {
  margin: 14px 0 0;
  font-family: var(--mo-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--mo-paper);
}
.mo-title--page { font-size: clamp(36px, 5.4vw, 72px); }
.mo-title--sm { font-size: clamp(26px, 3vw, 40px); }
.mo-lede {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--mo-muted);
}
.mo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* Gold outline button ("View all") */
.mo-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border: 2px solid var(--mo-gold);
  color: var(--mo-gold-light);
  font-family: var(--mo-display);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mo-btn-outline:hover,
.mo-btn-outline:focus-visible { background: var(--mo-gold); color: var(--mo-bg); }
.mo-btn-outline:focus-visible { outline: 2px solid var(--mo-paper); outline-offset: 3px; }
.mo-arrow { display: inline-block; }
[dir="ltr"] .mo-arrow { transform: scaleX(-1); }

/* ------------------------------------------------------------------ the picture part */
.mo-media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #5a1428, #2a0b16);
}
.mo-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.mo-media__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 5, 12, 0) 45%, rgba(26, 5, 12, 0.85) 100%);
}
.mo-badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 162, 75, 0.7);
  background: rgba(26, 5, 12, 0.7);
  color: var(--mo-gold-light);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.mo-badge__icon { width: 13px; height: 13px; }
.mo-badge__icon--fill { fill: currentColor; }
.mo-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mo-gold-gradient);
  color: var(--mo-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
/* the triangle points right in both languages; nudge it so it looks centred */
.mo-play__icon { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.mo-media__title {
  position: absolute;
  inset-inline: 20px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--mo-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--mo-paper);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------ home section */
.mo-home {
  padding-block: 88px;
  background: var(--mo-bg);
  color: var(--mo-paper);
}
@media (min-width: 1024px) {
  .mo-home { padding-block: 112px; }
}
/* One large tile and four small ones */
.mo-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 14px;
  margin-top: 48px;
}
.mo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}
.mo-tile--big { grid-column: span 2; grid-row: span 2; }
@media (min-width: 768px) {
  .mo-bento { grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 240px; gap: 16px; }
  .mo-tile--big { grid-column: auto; grid-row: span 2; }
}
.mo-tile:hover .mo-media__img,
.mo-tile:focus-visible .mo-media__img { transform: scale(1.05); }
.mo-tile:hover .mo-play,
.mo-tile:focus-visible .mo-play { transform: translate(-50%, -50%) scale(1.08); }
.mo-tile:focus-visible { outline: 2px solid var(--mo-gold); outline-offset: 3px; }
.mo-tile--big .mo-media__title { font-size: clamp(20px, 2.2vw, 28px); bottom: 24px; inset-inline: 26px; }
.mo-tile--big .mo-play { width: 80px; height: 80px; }
.mo-tile--big .mo-play__icon { width: 30px; height: 30px; }
/* Phones: the small tiles are narrow, so a smaller button sits above a smaller title */
@media (max-width: 767px) {
  .mo-tile:not(.mo-tile--big) .mo-play { top: 40%; width: 46px; height: 46px; }
  .mo-tile:not(.mo-tile--big) .mo-play__icon { width: 18px; height: 18px; }
  .mo-tile:not(.mo-tile--big) .mo-media__title { inset-inline: 12px; bottom: 12px; font-size: 15px; }
  .mo-tile:not(.mo-tile--big) .mo-badge { top: 10px; inset-inline-start: 10px; padding: 3px 7px; font-size: 12px; }
}

/* ------------------------------------------------------------------ pages */
.mo-page { background: var(--mo-bg); color: var(--mo-paper); }
.mo-intro {
  padding: 150px 0 56px;
  background: linear-gradient(180deg, #2a0b16, var(--mo-bg));
}
@media (min-width: 1024px) {
  .mo-intro { padding: 190px 0 72px; }
}
.mo-intro--detail { padding-bottom: 40px; }
.mo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--mo-muted);
}
.mo-crumbs a { color: var(--mo-gold-light); text-decoration: none; }
.mo-crumbs a:hover { text-decoration: underline; }

.mo-archive { padding: 56px 0 96px; border-top: 1px solid var(--mo-line); }
.mo-count { margin: 0; font-size: 15px; color: var(--mo-muted); }

.mo-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.mo-tab {
  padding: 12px 26px;
  border: 1px solid rgba(201, 162, 75, 0.55);
  color: var(--mo-gold-light);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.mo-tab:hover { background: rgba(201, 162, 75, 0.12); }
.mo-tab--on,
.mo-tab--on:hover { background: var(--mo-gold-gradient); border-color: transparent; color: var(--mo-bg); }

.mo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.mo-card {
  border: 1px solid var(--mo-line);
  background: var(--mo-panel);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.mo-card:hover { border-color: rgba(201, 162, 75, 0.6); transform: translateY(-3px); }
.mo-card__link { display: block; color: inherit; text-decoration: none; }
.mo-card__link:focus-visible { outline: 2px solid var(--mo-gold); outline-offset: 3px; }
.mo-card .mo-media { height: auto; aspect-ratio: 4 / 3; }
.mo-card:hover .mo-media__img { transform: scale(1.04); }
.mo-card__body { display: block; padding: 18px 20px 22px; }
.mo-card__title {
  display: block;
  font-family: var(--mo-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}
.mo-card__text {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mo-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mo-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.mo-pages__link {
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--mo-line);
  color: var(--mo-paper);
  text-align: center;
  text-decoration: none;
}
.mo-pages__link:hover { border-color: var(--mo-gold); }
.mo-pages__link--on { background: var(--mo-gold-gradient); border-color: transparent; color: var(--mo-bg); }
.mo-pages__gap { padding: 10px 6px; color: var(--mo-muted); }
.mo-empty { margin-top: 40px; color: var(--mo-muted); }

/* A moment's page: the big photo / video, then the text */
.mo-show { padding-bottom: 72px; }
.mo-frame { margin: 0; border: 1px solid var(--mo-line); background: #0f0306; }
.mo-frame__media { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0f0306; }
.mo-frame__media--photo { height: auto; max-height: 80vh; aspect-ratio: auto; object-fit: contain; }
.mo-frame__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--mo-line);
  font-size: 13px;
  color: var(--mo-gold-light);
}
.mo-behind { max-width: 820px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--mo-line); }
.mo-behind__text { margin-top: 16px; font-size: 18px; line-height: 2; color: rgba(250, 247, 242, 0.85); }
.mo-behind__text p { margin: 0 0 1em; }
.mo-more { padding: 72px 0 104px; border-top: 1px solid var(--mo-line); }

@media (prefers-reduced-motion: reduce) {
  .mo-media__img, .mo-card, .mo-play { transition: none; }
}
