/* Activities listing — intro, "most popular" feature layout (1 large + 2
   stacked), grid of the remaining activities, CTA. Scoped to .act-page. */

.act-page {
  --ac-accent: var(--color-accent-1, #EB662B);
  --ac-accent-dark: var(--color-accent-1-dark, #CE5A25);
  --ac-dark: var(--color-dark-1, #05073C);
  --ac-muted: var(--color-text-muted, #4A4D63);
  --ac-border: #E7E6E6;
  --ac-surface: #FBF7F4;
}

/* ---------- Intro ---------- */

.act-page .act-intro {
  padding: 80px 0 40px;
  text-align: center;
}

.act-page .act-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ac-accent);
}

.act-page .act-heading {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ac-dark);
}

.act-page .act-intro .act-subheading {
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ac-muted);
}

.act-page .act-sectionHead {
  margin-bottom: 26px;
}

.act-page .act-sectionHead__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ac-dark);
}

/* ---------- Most popular (overlay cards) ---------- */

.act-page .act-popularWrap {
  padding: 10px 0 70px;
}

.act-page .act-popular {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: repeat(2, 260px);
  gap: 22px;
}

.act-page .act-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  background: var(--ac-dark);
  box-shadow: 0 14px 34px rgba(5, 7, 60, 0.12);
}

.act-page .act-card.-large {
  grid-row: span 2;
}

.act-page .act-card picture,
.act-page .act-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.act-page .act-card img {
  object-fit: cover;
  transition: transform 0.6s ease;
}

.act-page .act-card:hover img {
  transform: scale(1.05);
}

.act-page .act-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 26px;
  background: linear-gradient(180deg, rgba(5, 7, 60, 0) 30%, rgba(5, 7, 60, 0.85) 100%);
}

.act-page .act-card__count {
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ac-accent);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.act-page .act-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.act-page .act-card.-large .act-card__title {
  font-size: 34px;
}

.act-page .act-card .act-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 560px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.act-page .act-card:not(.-large) .act-card__text {
  display: none;
}

.act-page .act-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.act-page .act-card__link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.act-page .act-card:hover .act-card__link i {
  transform: translateX(4px);
}

/* ---------- Grid (image-top tiles) ---------- */

.act-page .act-gridWrap {
  padding: 70px 0 80px;
  background: linear-gradient(180deg, var(--ac-surface) 0%, #fff 100%);
}

/* Flex rather than grid so an incomplete last row is centered
   (e.g. 11 activities → 4 + 4 + 3). */
.act-page .act-grid {
  --act-gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--act-gap);
}

.act-page .act-tile {
  flex: 0 1 calc((100% - 3 * var(--act-gap)) / 4);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ac-border);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(5, 7, 60, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.act-page .act-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(5, 7, 60, 0.12);
}

.act-page .act-tile__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ac-surface);
}

.act-page .act-tile__media picture,
.act-page .act-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.act-page .act-tile__media img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.act-page .act-tile:hover .act-tile__media img {
  transform: scale(1.06);
}

.act-page .act-tile__count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ac-dark);
  box-shadow: 0 6px 16px rgba(5, 7, 60, 0.12);
}

.act-page .act-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 18px;
}

.act-page .act-tile__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ac-dark);
}

.act-page .act-tile .act-tile__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ac-muted);
}

.act-page .act-tile__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ac-dark);
  transition: color 0.2s ease;
}

.act-page .act-tile__link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.act-page .act-tile:hover .act-tile__link {
  color: var(--ac-accent);
}

.act-page .act-tile:hover .act-tile__link i {
  transform: translateX(4px);
}

.act-page .act-empty {
  text-align: center;
  color: var(--ac-muted);
}

/* ---------- Buttons + CTA ---------- */

.act-page .act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.act-page .act-btn i {
  font-size: 13px;
}

.act-page .act-btn:hover {
  transform: translateY(-2px);
}

.act-page .act-btn.-primary {
  background: var(--ac-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(235, 102, 43, 0.28);
}

.act-page .act-btn.-primary:hover {
  background: var(--ac-accent-dark);
  color: #fff;
}

.act-page .act-btn.-light {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.act-page .act-btn.-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.act-page .act-ctaWrap {
  padding: 10px 0 90px;
}

.act-page .act-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 48px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 102, 43, 0.35), transparent 50%),
    var(--ac-dark);
}

.act-page .act-cta__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.act-page .act-cta .act-cta__text {
  margin-top: 8px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.act-page .act-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .act-page .act-tile {
    flex-basis: calc((100% - 2 * var(--act-gap)) / 3);
  }
}

@media (max-width: 991px) {
  .act-page .act-popular {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 340px 240px;
  }

  .act-page .act-card.-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .act-page .act-tile {
    flex-basis: calc((100% - var(--act-gap)) / 2);
  }

  .act-page .act-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
  }
}

@media (max-width: 767px) {
  .act-page .act-intro {
    padding: 50px 0 28px;
  }

  .act-page .act-heading {
    font-size: 28px;
  }

  .act-page .act-intro .act-subheading {
    font-size: 15px;
  }

  .act-page .act-sectionHead__title {
    font-size: 23px;
  }

  .act-page .act-popularWrap {
    padding-bottom: 50px;
  }

  .act-page .act-popular {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 240px;
  }

  .act-page .act-card.-large {
    grid-column: auto;
  }

  .act-page .act-card.-large .act-card__title {
    font-size: 26px;
  }

  .act-page .act-card__overlay {
    padding: 20px;
  }

  .act-page .act-gridWrap {
    padding: 50px 0 60px;
  }

  .act-page .act-grid {
    --act-gap: 16px;
  }

  .act-page .act-cta__title {
    font-size: 23px;
  }
}

@media (max-width: 575px) {
  .act-page .act-tile {
    flex-basis: 100%;
  }

  .act-page .act-cta__actions .act-btn {
    width: 100%;
  }
}
