@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,700;1,300&display=swap');

/* Witalis Governance Studio document styling - scoped to .wgs-doc wrapper only */
.wgs-doc {
font-family: 'Poppins', sans-serif;
font-weight: 300;
color: #1a1a1a;
}
.wgs-doc .wgs-tag {
text-transform: uppercase;
font-style: italic;
color: #6E6E6E;
font-size: 0.75rem;
letter-spacing: 0.05em;
margin-bottom: 1.5rem;
}
.wgs-doc h2 {
font-family: 'Poppins', sans-serif;
font-weight: 700;
color: #1F3A5F;
font-size: 1.35rem;
border-bottom: 1px solid #C9D3DC;
padding-bottom: 0.35rem;
margin-top: 1.75rem;
margin-bottom: 0.5rem;
}
.wgs-doc h3 {
font-family: 'Poppins', sans-serif;
font-weight: 700;
color: #16283F;
font-size: 1.15rem;
margin-top: 1.5rem;
margin-bottom: 0.4rem;
}
.wgs-doc p {
font-weight: 300;
line-height: 1.6;
margin-bottom: 0.75rem;
}
.wgs-doc ul {
margin-bottom: 1rem;
}
.wgs-doc li {
font-weight: 300;
line-height: 1.6;
margin-bottom: 0.4rem;
}/* Witalis Education page: phone-only tile cleanup (below 768px only) */
@media (max-width: 767px) {

  .elementor-element-1b5b78c {
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .elementor-element-334c139,
  .elementor-element-7cc084c,
  .elementor-element-606b959,
  .elementor-element-9457b3e {
    min-height: 0 !important;
    padding: 24px 22px 22px !important;
    border-radius: 14px !important;
    transform: none !important;
    position: relative;
  }

  .elementor-element-1b5b78c .e-con-inner {
    padding: 0 !important;
    gap: 10px !important;
    min-height: 0 !important;
  }
  .elementor-element-1b5b78c .e-con-inner > .e-con {
    padding: 0 !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
  }

  .elementor-element-1b5b78c h3.elementor-heading-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    margin: 0 !important;
    padding-right: 28px;
  }

  .elementor-element-1b5b78c .elementor-widget-text-editor,
  .elementor-element-1b5b78c .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #3F444B !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .elementor-element-1b5b78c .elementor-widget-text-editor strong {
    font-weight: 500 !important;
    color: #647C0D !important;
  }

  .elementor-element-1b5b78c > a.e-con::after {
    content: "\2192";
    position: absolute;
    top: 24px;
    right: 22px;
    font-size: 20px;
    line-height: 1;
    color: #647C0D;
  }
}

/* Witalis Education page, part 2: articles carousel + Tools and Templates (below 768px only) */
@media (max-width: 767px) {

  /* ARTICLES CAROUSEL: smaller covers, centered */
  .elementor-element-06d1802 .swiper-slide img {
    max-height: 280px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }
  .elementor-element-06d1802 .swiper-slide .elementor-widget-image {
    text-align: center !important;
  }

  /* TOOLS AND TEMPLATES: no stretched empty tiles */
  .elementor-element-9be87a5 {
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    gap: 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .elementor-element-d68fe0d,
  .elementor-element-8047e3e,
  .elementor-element-fa7b431,
  .elementor-element-6677642 {
    min-height: 0 !important;
    padding: 22px 20px !important;
    border-radius: 14px !important;
    transform: none !important;
  }
  .elementor-element-9be87a5 .e-con-inner {
    padding: 0 !important;
    gap: 12px !important;
    min-height: 0 !important;
  }
  .elementor-element-9be87a5 .e-con-inner > .e-con {
    padding: 0 !important;
    min-height: 0 !important;
  }
  /* white list panel inside each tile */
  .elementor-element-9be87a5 .e-con-inner > .e-con:last-child {
    padding: 14px 14px 4px 16px !important;
  }
  .elementor-element-9be87a5 h3.elementor-heading-title {
    font-size: 22px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  /* Long lists: show about 5 items, scroll inside the tile for the rest */
  .elementor-element-9be87a5 .wsl-reads {
    max-height: 330px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  }
  .elementor-element-9be87a5 .wsl-reads li:last-child {
    padding-bottom: 40px;
  }
}

/* Witalis Education page, part 3 (replaces the earlier part 3) */

/* =========================================================
   CASE STUDIES: four equal clickable boxes instead of a carousel
   All screen sizes
   ========================================================= */

/* turn the carousel track into a simple grid */
.elementor-element-6fa09b1 .e-n-carousel {
  overflow: visible !important;
  padding: 0 !important;
}
.elementor-element-6fa09b1 .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;   /* every box the same height, even when stacked */
  gap: 24px;
  transform: none !important;
  transition: none !important;
  width: auto !important;
  height: auto !important;
}
.elementor-element-6fa09b1 .swiper-slide {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}

/* hide the copies, arrows and dots the carousel adds */
.elementor-element-6fa09b1 .swiper-slide-duplicate,
.elementor-element-6fa09b1 .elementor-swiper-button,
.elementor-element-6fa09b1 .swiper-pagination {
  display: none !important;
}

/* every box the same height, button lined up at the bottom */
.elementor-element-6fa09b1 .swiper-slide > .e-con,
.elementor-element-6fa09b1 .swiper-slide > .e-con > .e-con-inner {
  height: 100% !important;
  padding: 0 !important;
  max-width: none !important;
}
.elementor-element-6fa09b1 .swiper-slide .e-con-inner > .e-con {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 24px 22px !important;
  justify-content: space-between !important;
  border-radius: 12px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* the whole box is clickable, not just the button */
.elementor-element-6fa09b1 .elementor-widget-button,
.elementor-element-6fa09b1 .elementor-button-wrapper {
  position: static !important;
}
.elementor-element-6fa09b1 .elementor-widget-button a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.elementor-element-6fa09b1 .swiper-slide .e-con-inner > .e-con:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* tablet: two across */
@media (max-width: 1024px) {
  .elementor-element-6fa09b1 .swiper-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/* phone: one per row */
@media (max-width: 767px) {
  /* the tabs block sat 14px off to the right on phones */
  .elementor-element-a24f106 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
  .elementor-element-6fa09b1 .swiper-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .elementor-element-6fa09b1 .swiper-slide .e-con-inner > .e-con {
    padding: 22px 20px !important;
  }
  .elementor-element-6fa09b1 .swiper-slide .e-con-inner > .e-con:hover {
    transform: none;
  }

  /* article covers keep their phone size from part 2, tidied */
  .elementor-element-06d1802 .swiper-slide .elementor-widget-image a {
    display: block !important;
    line-height: 0;
  }
}

/* =========================================================
   TOOLS AND TEMPLATES: scrolling lists on desktop and tablet
   ========================================================= */
@media (min-width: 768px) {
  .elementor-element-9be87a5 .wsl-reads {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
  }
  .elementor-element-9be87a5 .wsl-reads li:last-child {
    padding-bottom: 40px;
  }
}

/* Witalis case study pages: matches the case study Word documents */
.witalis-case-study {
  font-size: 16px;
  line-height: 1.65;
  color: #3F444B;
}
.witalis-case-study .cs-summary {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.witalis-case-study h2 {
  font-size: 24px !important;
  font-weight: 300 !important;
  color: #334155 !important;
  margin: 36px 0 14px !important;
  padding-bottom: 6px;
  border-bottom: 1px solid #D3CFC9;
}
.witalis-case-study p {
  margin: 0 0 14px;
}
.witalis-case-study ul {
  margin: 0 0 16px 1.2em;
  padding: 0;
}
.witalis-case-study li {
  margin-bottom: 8px;
}
.witalis-case-study strong {
  font-weight: 500;
  color: #334155;
}
.witalis-case-study a {
  color: #647C0D;
  word-break: break-all;
}