:root {
  --green-bg: #0d311b;
  --green-deep: #006937;
  --green-mid: #006937;
  --green-light: #6abf4b;
  --blue-light: #0082ca;
  --blue-dark: #012856;
  --white: #ffffff;
  --radius: 22px;
  --gap: 18px;
  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--green-bg);
  color: var(--white);
  font-family: 'Saudia Sans', system-ui, sans-serif;
  font-weight: 300;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
}
.top-strip span { width: 100%; height: 10px; display: block; }
.s-light      { background: var(--green-light); }
.s-dark       { background: var(--green-deep); }
.top-strip .s-white { background: var(--white); height: 4px; }
.s-blue-dark  { background: var(--blue-dark); }
.s-blue-light { background: var(--blue-light); }

.page {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.grid {
  display: grid;
  gap: var(--gap);
  min-height: 0;
}

.grid--five   { grid-template-columns: repeat(5, 1fr); flex: 1 1 0; min-height: 0; }
.grid--bottom { grid-template-columns: 1fr 1fr; flex: 0 0 auto; }

.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  min-height: 0;
}

.card__art {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius);
  background-color: transparent;
  background-image: var(--bg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s ease;
}

.card__art--wide {
  flex: none;
  width: 100%;
  aspect-ratio: 3 / 1;
  background-size: contain;
}

.card:hover .card__art {
  transform: translateY(-4px);
}

.card__label {
  padding: 12px 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  line-height: 1.25;
}

.card__label .ar {
  font-family: 'Saudia Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 19px);
  direction: rtl;
}

.card__label .en {
  font-family: 'Saudia Sans', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1vw, 15px);
  opacity: .92;
}

/* Tablet & smaller: allow scroll, use aspect ratios */
@media (max-width: 1024px) {
  body { overflow: auto; }
  .page { flex: none; }
  .grid { min-height: 0; }
  .grid--five   { grid-template-columns: repeat(3, 1fr); flex: none; }
  .grid--bottom { grid-template-columns: 1fr 1fr; flex: none; }
  .card__art { flex: none; aspect-ratio: 2 / 3; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --gap: 12px; --radius: 16px; }
  .grid--five   { grid-template-columns: repeat(2, 1fr); }
  .grid--five > :last-child { grid-column: 1 / -1; }
  .grid--five > :last-child .card__art { aspect-ratio: 16 / 7; }
  .grid--bottom { grid-template-columns: 1fr 1fr; }
  .card__art--wide { aspect-ratio: 3 / 2; }
  .page { padding: 18px 12px 24px; gap: 16px; }
  .card__label { padding: 8px 4px 0; }
  .card__label .ar { font-size: 15px; }
  .card__label .en { font-size: 12px; }
}
