.activities-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto; /* half the item-side margin for gutters */
  padding: 0;
}

.activities-list__item {
  flex: 1 1 calc(25% - 24px); /* four columns minus gutter */
  margin: 12px; /* gutter space */
  box-sizing: border-box;
  text-align: center;
}

.activities-list__item img {
  display: block;
  width: 100%;
  height: auto;
}

.activities-list__caption {
  margin-top: 0.5rem;
  color: #8066b2;

  line-height: 28px;
  font-size: 22px;
  color: #8166a8; /* match your purple caption color */
  font-family: "Burbank-Regular", sans-serif; /* swap in your brand font */
}

/* === Component Specific Styles === */
.activities-top-background {
  background-color: #fff3fc;
  padding-bottom: 64px;
}
.activities__title {
  font-size: 2.5em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0;
}
.dark-pink-text-colour {
  color: #c71585;
}
.pink-text-colour {
  color: #dc4c8a;
}
.activities__subtitle {
  font-size: 1.1em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* === Filter Styles (Relying on TinySlider item count and CSS for sizing) === */
.activities-filters-wrapper {
  position: relative;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.activities-filters-wrapper .container {
  position: relative; /* For positioning arrows */
}
/* Wrapper created by Tiny Slider */
.activities-filters-wrapper .tns-outer {
  overflow: hidden !important; /* IMPORTANT: force clipping */
}

#category-filters-slider.tns-slider {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important; /* Tiny Slider usually does this */
  align-items: center; /* Vertical alignment of slides */
}
/* Centering when all items are visible (desktop, controls: false) */
#category-filters-slider.tns-slider:not([style*="transform"]) {
  justify-content: center !important;
}

.filter-item.tns-item {
  /* li, which is a slide */
  box-sizing: border-box;
  overflow: visible !important; /* For the shadow of 'a' */
  padding: 0;
  display: flex !important; /* Important for flex properties to work */
  justify-content: center;
  align-items: stretch; /* So 'a' takes up the full height of .tns-item */
  margin-bottom: 5px; /* For the shadow if it's large */
  flex-shrink: 0 !important; /* Prevent slides from shrinking */
}

.filter-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  border-radius: 50%;
  border-style: solid;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, width 0.3s ease,
    height 0.3s ease;

  width: 100%;
  aspect-ratio: 1 / 1;

  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
  /* padding, font-size, border-width will be adaptive */
}
.filter-item a:hover,
.filter-item.active a {
  border-color: white;
}
.filter-item a span {
  max-width: 75%; /* Reduce to ensure it fits when 'a' size changes */
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: inherit; /* To inherit the changed font-size from 'a' */
}

/* Adaptive styles for the inner parts of .filter-item a */

/* Mobile (JS: items: 2) */
@media (max-width: 767px) {
  .filter-item a {
    padding: 10%; /* Percentages of the dynamic width/height of 'a' */
    font-size: clamp(0.8em, 3vw, 1.1em); /* Adaptive font */
    line-height: 1.2;
    border-width: clamp(4px, 1.2vw, 5px);
  }
}

/* Tablet (JS: items: 4) */
@media (min-width: 768px) and (max-width: 1199px) {
  .filter-item a {
    padding: 8%;
    font-size: clamp(0.75em, 1.8vw, 1em);
    line-height: 1.2;
    border-width: clamp(3px, 0.8vw, 5px);
  }
}

/* Desktop (JS: items: totalItems) */
@media (min-width: 1200px) {
  .filter-item a {
    width: 190px;
    height: 190px;
    aspect-ratio: unset;
    padding: 15px;
    font-size: 0.95em;
    line-height: 1.3;
    border-width: 5px;
  }
}

/* Filter colors */
.filter-item:nth-child(1) a {
  background-color: #e275a4;
  color: white;
}
.filter-item:nth-child(2) a {
  background-color: #6dccd2;
  color: white;
}
.filter-item:nth-child(3) a {
  background-color: #32b193;
  color: white;
}
.filter-item:nth-child(4) a {
  background-color: #dc4c8a;
  color: white;
}
.filter-item:nth-child(5) a {
  background-color: #8066b2;
  color: white;
}
.filter-item:nth-child(6) a {
  background-color: #667cca;
  color: white;
}

/* Styling for Tiny Slider arrows */
.activities-filters-wrapper .tns-controls button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(128, 128, 128, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activities-filters-wrapper .tns-controls button:hover {
  background-color: rgba(128, 128, 128, 0.7);
}
.activities-filters-wrapper .tns-controls button[data-controls="prev"] {
  left: 0.25rem;
}
.activities-filters-wrapper .tns-controls button[data-controls="next"] {
  right: 0.25rem;
}

/* === Activity Grid Styles  */
ul.assets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 4.5rem;
}
@media (min-width: 768px) {
  ul.assets-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* === Activity Card Styles */
li.book-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  position: relative;
}
a.activity-card-link {
  text-decoration: none;
  color: #8066b2;
  text-transform: none;
  line-height: 28px;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  text-align: center;
}
.assets-book-image {
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
  border: none;
}
.assets-book-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: none;
}
a.activity-card-link:hover .assets-book-image img {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

#category-filters-slider > .tns-item {
  font-size: 24px !important;
  line-height: 28px !important;
}

/* === Pagination Styles === */
.pagination-wrapper.simple-pagination {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 32px 0 16px 0 !important;
  padding: 0 !important;
  clear: both;
}

.simple-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.simple-pagination li {
  display: inline-block;
  margin: 0.25rem !important;
}

.simple-pagination li a,
.simple-pagination li span {
  display: inline-block;
  padding: 6px 10px;
  color: #7b6093;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
  border: 1px solid transparent;
  background-color: transparent;
  line-height: 1.5;
}

.simple-pagination li a:not(.disabled):hover {
  color: white;
  background-color: #7b6093;
}

.simple-pagination li.active span,
.simple-pagination li.active a {
  background-color: #7b6093;
  color: white !important;
  border-color: #7b6093;
  cursor: default;
}

.simple-pagination li.prev a,
.simple-pagination li.next a {
  color: #7b6093;
  font-weight: bold;
}

.simple-pagination li.prev.disabled span,
.simple-pagination li.next.disabled span {
  color: #7b6093 !important;
  background-color: transparent !important;
  cursor: default !important;
  pointer-events: none;
  opacity: 0.4 !important;
}

.simple-pagination li.disabled > span,
.simple-pagination li.disabled > a {
  color: #7b6093 !important;
  cursor: default !important;
  pointer-events: none;
  background-color: transparent !important;
  opacity: 0.4 !important;
  border-radius: 5px !important;
  padding: 5px 8px !important;
}

.simple-pagination li.disabled span.ellipse {
  color: black !important;
  opacity: 1 !important;
}

@media (max-width: 480px) {
  .pagination-wrapper.simple-pagination {
    justify-content: center !important;
  }
  .simple-pagination li a,
  .simple-pagination li span {
    padding: 5px 8px;
    font-size: 0.85em;
  }

  .simple-pagination li.prev a,
  .simple-pagination li.next a,
  .simple-pagination li.prev.disabled span,
  .simple-pagination li.next.disabled span {
    font-size: 0;
  }
  .simple-pagination li.prev a::before,
  .simple-pagination li.prev.disabled span::before {
    content: "<";
    font-size: 0.9rem;
    display: inline-block;
    padding-right: 2px;
    vertical-align: middle;
  }
  .simple-pagination li.next a::after,
  .simple-pagination li.next.disabled span::after {
    content: ">";
    font-size: 0.9rem;
    display: inline-block;
    padding-left: 2px;
    vertical-align: middle;
  }
}
.outer-sec {
  position: relative;
  width: 100vw; /* full viewport width */
  left: 50%;

  transform: translateX(-50%); /* shift back by half its own width */
}
