.elementor-2857 .elementor-element.elementor-element-50fcbd4{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:30px;--padding-bottom:0px;--padding-left:20px;--padding-right:20px;}.elementor-2857 .elementor-element.elementor-element-1d8ab3d .elementor-heading-title{color:var( --e-global-color-primary );}.elementor-2857 .elementor-element.elementor-element-f2429aa{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:30px;--margin-bottom:100px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:20px;--padding-right:20px;}.elementor-2857 .elementor-element.elementor-element-ddc3aaa{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-2857 .elementor-element.elementor-element-4b70872{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:20px;--padding-right:0px;}:root{--page-title-display:none;}@media(max-width:1040px){.elementor-2857 .elementor-element.elementor-element-f2429aa{--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-2857 .elementor-element.elementor-element-4b70872{--margin-top:20px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}}@media(min-width:768px){.elementor-2857 .elementor-element.elementor-element-ddc3aaa{--width:26%;}.elementor-2857 .elementor-element.elementor-element-4b70872{--width:74%;}}@media(max-width:1040px) and (min-width:768px){.elementor-2857 .elementor-element.elementor-element-ddc3aaa{--width:100%;}.elementor-2857 .elementor-element.elementor-element-4b70872{--width:100%;}}/* Start custom CSS *//* Resources filter — Resources page: Page Settings → Custom CSS
   Breakpoints: desktop ≥1041px · tablet ≤1040px · mobile ≤767px */

.shrf {
  --shrf-bg: #15163F;
  --shrf-field: #1C1D4D;
  --shrf-line: #2E3068;
  --shrf-label: #B9BBD9;
  --shrf-accent: #C85127;
  --shrf-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");

  display: flex;
  flex-direction: column;
  gap: 32px;
  background: var(--shrf-bg);
  color: #fff;
  border-radius: 20px;
  padding: 32px;
}
.shrf input, .shrf select, .shrf button { font-family: inherit; }
.shrf > *, .shrf__row > * { margin: 0; }
.shrf__title { color: #fff; font-size: 22px; line-height: 1.2; }
.shrf__group { position: relative; min-width: 0; }
.shrf fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.shrf__row { display: flex; flex-direction: column; gap: 32px; }

/* Section labels (legend floated so its margin behaves) */
.shrf__label {
  display: block; float: left; width: 100%;
  margin: 0 0 14px; padding: 0;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2;
  color: var(--shrf-label);
}
.shrf__label ~ * { clear: both; }
.shrf__short { display: none; }
.shrf__rule { border: 0; border-top: 1px solid var(--shrf-line); }

/* Search */
.shrf__search { position: relative; }
.shrf__search input {
  width: 100%; height: 52px; padding: 0 48px 0 16px;
  background: var(--shrf-field); color: #fff;
  border: 1px solid var(--shrf-line); border-radius: 8px; font-size: 16px;
}
.shrf__search input::placeholder { color: #8F92BF; }
.shrf__search svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--shrf-accent); pointer-events: none; }

/* Pills */
.shrf__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.shrf-pill { position: relative; cursor: pointer; text-decoration: none; }
.shrf-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shrf-pill span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--shrf-line); background: var(--shrf-field);
  color: #fff; font-size: 15px; font-weight: 500; line-height: 1.2;
}
.shrf-pill input:checked + span { background: var(--shrf-accent); border-color: var(--shrf-accent); }
.shrf-pill:hover span { border-color: #4A4D8F; }
.shrf-pill input:focus-visible + span,
.shrf-pill--all:focus-visible span { outline: 2px solid #fff; outline-offset: 2px; }
.shrf-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); border: 2px solid rgba(255,255,255,.35); }

/* Tags: smaller, tighter pills */
.shrf__tags .shrf__pills { gap: 6px; }
.shrf__tags .shrf-pill span { padding: 5px 11px; border-radius: 999px; font-size: 13px; }
.shrf__tags:not(:has(input:checked)) .shrf-pill--all span { background: var(--shrf-accent); border-color: var(--shrf-accent); }
.shrf__clear { position: absolute; top: 0; right: 0; z-index: 1; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--shrf-accent); text-decoration: none; }

/* Dropdown triggers — only used on tablet/mobile */
.shrf__dd-trigger { display: none; }

/* Language segmented control */
.shrf__segmented { display: flex; padding: 4px; gap: 4px; background: var(--shrf-field); border-radius: 8px; }
.shrf__segmented label { flex: 1; cursor: pointer; }
.shrf__segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shrf__segmented span { display: block; text-align: center; padding: 12px 0; line-height: 20px; border-radius: 6px; font-weight: 700; color: var(--shrf-label); }
.shrf__segmented input:checked + span { background: var(--shrf-accent); color: #fff; }
.shrf__segmented input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* Sort toggle */
.shrf__order { display: block; cursor: pointer; }
.shrf__order input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shrf__order > span {
  display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 12px; white-space: nowrap;
  background: var(--shrf-field); border: 1px solid var(--shrf-line); border-radius: 8px; font-weight: 700;
}
.shrf__order .is-asc,
.shrf__order input:checked ~ .is-desc { display: none; }
.shrf__order input:checked ~ .is-asc { display: flex; }
.shrf__order input:focus-visible ~ span { outline: 2px solid #fff; outline-offset: 2px; }

/* Reset (and the no-JS Apply fallback) */
.shrf__reset,
.shrf__apply {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px; border-radius: 8px; cursor: pointer;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.shrf__reset { border: 2px solid var(--shrf-accent); background: transparent; color: #fff; }
.shrf__reset:hover { background: var(--shrf-accent); color: #fff; }
.shrf__reset:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.shrf__apply { border: 0; background: var(--shrf-accent); color: #fff; }

/* Grid while new results load */
.shrf-grid { transition: opacity .15s; }
.shrf-grid.is-loading { opacity: .45; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .shrf-grid { transition: none; } }

/* ---------- Tablet & mobile (≤1040px): compact panel ---------- */
@media (max-width: 1040px) {
  .shrf { padding: 24px; gap: 20px; border-radius: 16px; }
  .shrf__title, .shrf__rule, .shrf__reset { display: none; }
  .shrf__label { margin-bottom: 10px; }
  .shrf__long { display: none; }
  .shrf__short { display: inline; }

  /* Language + Sort side by side */
  .shrf__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }

  /* Type and Tags become dropdowns (only once JS is running, so no-JS still shows pills) */
  .shrf--js .shrf__dd-trigger {
    display: flex; align-items: center; width: 100%; height: 52px; padding: 0 44px 0 16px;
    background: var(--shrf-field) var(--shrf-chevron) no-repeat right 16px center / 18px;
    border: 1px solid var(--shrf-line); border-radius: 8px;
    color: #fff; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer;
  }
  .shrf--js .shrf__dd-trigger.has-value { border-color: var(--shrf-accent); }
  .shrf--js .shrf__dd-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .shrf__dd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .shrf--js .shrf__dd-panel {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    max-height: 55vh; overflow-y: auto;
    padding: 14px; background: #202257; border: 1px solid var(--shrf-line); border-radius: 10px;
    box-shadow: 0 12px 28px rgba(8, 8, 30, .45);
  }
  .shrf--js .shrf__dd.is-open .shrf__dd-panel { display: flex; }
  .shrf--js .shrf__dd.is-open .shrf__dd-trigger { background-color: #24265C; }
}

/* Results bar above the grid */
.shrf-results { scroll-margin-top: 24px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; font-size: 17px; color: #4A4F63; }
.shrf-results p { margin: 0; }
.shrf-results strong { color: #15163F; }
@media (max-width: 767px) { .shrf-results { font-size: 15px; } }

/* ---------- [resource_grid]: cards, empty state, pagination ---------- */
.shrf-results { margin-bottom: 24px; }
.shrg__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shrg__item { display: flex; min-width: 0; }
.shrg__item > .elementor { width: 100%; margin: 0; }

/* Equal-height cards: stretch the card container (and its inner wrapper if it's Boxed) */
.shrg__item > .elementor > .e-con,
.shrg__item > .elementor > .e-con > .e-con-inner { height: 100%; margin: 0; }

/* Excerpt: 2 lines max (Text Editor widget has CSS class "shrf-excerpt") */
.shrf-excerpt p,
.shrf-excerpt .elementor-widget-container {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: 0;
}

/* Pin the Download button to the bottom of the card */
.shrg__item .elementor-widget-shortcode:has(.shr-button) { margin-top: auto; }

.shrg__empty { margin: 0; padding: 40px 24px; text-align: center; border: 1px dashed #D5D7E3; border-radius: 16px; color: #4A4F63; }

.shrg__pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 48px; }
.shrg__pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 56px; padding: 0 16px;
  border: 1px solid #E3E5EC; border-radius: 8px; background: #fff;
  color: #15163F; font-weight: 700; text-decoration: none;
}
.shrg__pagination a.page-numbers:hover { border-color: #15163F; }
.shrg__pagination a.page-numbers:focus-visible { outline: 2px solid #C85127; outline-offset: 2px; }
.shrg__pagination .current { background: #15163F; border-color: #15163F; color: #fff; }
.shrg__pagination .dots { min-width: 0; padding: 0 2px; border: 0; background: none; }
.shrg__pagination .is-disabled { color: #B5B8C9; }

@media (max-width: 767px) {
  .shrg__grid { grid-template-columns: minmax(0, 1fr); }
  .shrf-results { margin-bottom: 16px; }
  .shrg__pagination { gap: 6px; margin-top: 32px; }
  .shrg__pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; }
}/* End custom CSS */