:root {
  --brand-green: #006400;
  --logo-green: #185127;
  --body-color: rgb(94, 94, 94);
  --card-text: rgb(21, 21, 21);
  --muted-text: rgb(89, 89, 89);
  --page-width: 1112px;
  --body-font: "Quicksand", sans-serif;
  --button-font: "Cinzel", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: #000000;
  background: #ffffff;
  font-family: var(--body-font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--brand-green);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.activity-section,
.site-footer {
  background: #ffffff;
}

.activity-section {
  padding: 56px 24px;
}

.activity-container,
.footer-container {
  width: min(100%, var(--page-width));
  margin: 0 auto;
}

.activity-layout {
  display: grid;
  grid-template-columns: 725.328125px 338.65625px;
  gap: 48px;
  align-items: start;
}

.activity-copy {
  color: var(--body-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  text-align: start;
}

.activity-copy h2 {
  position: relative;
  margin: 0 0 36px;
  padding-bottom: 18px;
  color: var(--logo-green);
  font-family: var(--body-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.activity-copy h2::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--logo-green);
}

.activity-copy p {
  margin: 0;
}

.activity-visual {
  position: relative;
  width: 338.65625px;
}

@media (min-width: 768px) {
  .activity-layout {
    row-gap: 0;
  }

  .activity-copy {
    display: grid;
    grid-row: 1 / span 2;
    grid-template-rows: subgrid;
  }

  .activity-visual {
    grid-row: 2;
  }
}

.activity-image {
  position: relative;
  z-index: 1;
  width: 338.65625px;
  height: 190.484375px;
  object-fit: fill;
  border-radius: 0;
  box-shadow:
    0 -9px 26px -9px rgba(0, 0, 0, 0.32),
    9px 0 26px -9px rgba(0, 0, 0, 0.28),
    0 9px 26px -9px rgba(0, 0, 0, 0.28);
  clip-path: inset(-36px -36px -36px 0);
}

.activity-image--culture {
  height: 226.03125px;
}

/* Keep the desktop two-column proportions without forcing tablet pages wider than the viewport. */
@media (min-width: 768px) and (max-width: 1207px) {
  .activity-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
  }

  .activity-visual,
  .activity-image {
    width: 100%;
  }

  .activity-image,
  .activity-image--culture {
    height: auto;
    aspect-ratio: 400 / 225;
    object-fit: cover;
  }

  .activity-image--culture {
    aspect-ratio: 400 / 267;
  }
}

/* iPad Mini: enlarge the activity image without making it dominate the copy. */
@media (min-width: 768px) and (max-width: 900px) {
  .activity-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
  }

}

.activities-more-section {
  padding: 56px 24px;
  background: #ffffff;
}

.activities-more-section h2 {
  position: relative;
  margin: 0 0 40px;
  padding-bottom: 18px;
  color: var(--heading-color);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.activities-more-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: var(--logo-green);
  transform: translateX(-50%);
}

.activities-more-logo-link {
  position: relative;
  width: min(66%, 390px);
  display: block;
  margin: 0 auto;
  overflow: visible;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  pointer-events: none;
  transition: filter .35s ease;
}

.activities-more-logo-hit-area {
  position: absolute;
  z-index: 3;
  top: 2%;
  right: 12%;
  bottom: 2%;
  left: 12%;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
}

.activities-more-logo-link::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: -35%;
  bottom: -35%;
  left: -45%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform .65s ease;
  pointer-events: none;
}

.activities-more-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.12));
  transition: transform .35s ease, filter .35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .activities-more-logo-link:has(.activities-more-logo-hit-area:hover),
  .activities-more-logo-link:focus-visible {
    filter: brightness(1.06);
    outline: none;
  }

  .activities-more-logo-link:has(.activities-more-logo-hit-area:hover)::after,
  .activities-more-logo-link:focus-visible::after {
    transform: translateX(620%) skewX(-18deg);
  }

  .activities-more-logo-link:has(.activities-more-logo-hit-area:hover) .activities-more-logo,
  .activities-more-logo-link:focus-visible .activities-more-logo {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
  }

  .activities-more-logo-link:has(.activities-more-logo-hit-area:active) .activities-more-logo {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
  }
}

@media (hover: none), (pointer: coarse) {
  .activities-more-logo-link:has(.activities-more-logo-hit-area:active) .activities-more-logo {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.22));
  }
}


.site-footer {
  min-height: 164.796875px;
  padding: 56px 24px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.copyright {
  margin: 0;
  color: var(--muted-text);
  font-size: 16px;
  line-height: 1.8;
}

.powered-by {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--muted-text);
  line-height: 1.8;
}

.powered-by span {
  margin: 0 0 4px;
}

.powered-by img {
  width: 131px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .activities-more-section {
    overflow-x: clip;
  }

  .activity-section {
    padding: 40px 24px;
  }

  .activity-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .activity-copy h2 {
    margin-bottom: 28px;
    font-size: clamp(1.125rem, 4vw + 0.2rem, 1.375rem);
    overflow-wrap: anywhere;
  }

  .activity-copy,
  .activity-image {
    clip-path: none;
    width: 100%;
    height: auto;
  }

  .activity-visual {
    width: min(100%, 400px);
    order: -1;
  }

  .activities-more-section {
    padding: 40px 24px;
  }

  .activities-more-section h2 {
    margin-bottom: 36px;
    font-size: clamp(1.5rem, 5vw + 0.5rem, 1.75rem);
    overflow-wrap: anywhere;
  }

  .activities-more-logo-link {
    width: min(66%, 390px);
  }

  .site-footer {
    min-height: 214.390625px;
    padding: 40px 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .powered-by {
    align-items: center;
  }

  .powered-by span {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Remove shadows from activity photography; card and icon shadows remain unchanged. */
.activity-image {
  box-shadow: none !important;
}

/* Keep every activity image visually aligned regardless of its source dimensions. */
.activity-image,
.activity-image--culture {
  height: 190px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .activity-image,
  .activity-image--culture {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

html[lang="ar"] .activities-page main,
html[lang="ar"] .activities-page main * {
  font-family: "Tajawal", "Quicksand", sans-serif !important;
}

/* Activity overview above the detailed activity list. */
.activities-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, var(--page-width));
  margin: 0 auto;
  padding: 48px 24px 16px;
  list-style: none;
}
.activities-overview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: start;
  gap: 20px;
  min-width: 0;
  text-align: center;
}
.activities-overview-image {
  grid-area: 1 / 1;
  width: min(100%, 280px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activities-overview-item .activities-overview-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
.activities-overview-item:last-child .activities-overview-image {
  transform: translateX(-12px);
}
.activities-overview-item span {
  grid-area: 2 / 1;
  color: #1b1b1b;
  font-family: var(--body-font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: normal;
}
@media (max-width: 767px) {
  .activities-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 16px 8px;
  }
  .activities-overview-item { gap: 12px; }
  .activities-overview-image { width: min(calc(100% - 8px), 210px); }
  .activities-overview-item:last-child .activities-overview-image { transform: none; }
  .activities-overview-item span { font-size: 20px; line-height: 25px; }
}

.activities-overview[hidden] { display: none; }

/* Align the middle illustration with the wordmark's visual centre. */
@media (min-width: 768px) {
  .activities-overview {
    width: min(calc(100% - 84px), var(--page-width));
    position: relative;
    left: 42px;
  }
}

.activities-overview-item span { white-space: pre-line; }

/* Keep compact tablets centred without the desktop wordmark offset. */
@media (min-width: 768px) and (max-width: 1100px) {
  .activities-overview {
    width: min(100%, var(--page-width));
    left: 0;
    gap: 32px;
  }
  .activities-overview-image { width: min(calc(100% - 16px), 180px); }
  .activities-overview-item:last-child .activities-overview-image { transform: none; }
  .activities-overview-item span { font-size: 18px; line-height: 1.5; }
}

/* Reveal each illustration and caption together, in the presentation's order. */
@media (prefers-reduced-motion: no-preference) {
  .activities-overview[data-signature] .activities-overview-item {
    opacity: 0;
  }
  .activities-overview.overview-revealing .activities-overview-item {
    animation: overview-fade-in 1s ease-in-out both;
    animation-delay: var(--overview-delay, 0s);
  }
}
@keyframes overview-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
