/* =========================================================================
   Outsell Blog Enhancer — theme (v2.7.0)
   Scoped to body.osb-blog. Key props use !important to win over Elementor /
   PostX inline styles. Covers search, filters, main grid, pinned list,
   pagination, loading + empty states.

   IMPORTANT: cards are matched with
     [class*="ultp-block-item"]:not([class*="ultp-block-items"])
   so the styling never leaks onto the grid WRAPPER (ultp-block-items-wrap).
   ========================================================================= */

body.osb-blog {
  --osb-ink: #12263a;
  --osb-body: #3c4d5e;
  --osb-muted: #7c8a99;
  --osb-line: #e4e9ef;
  --osb-line-2: #d4dde6;
  --osb-bg: #ffffff;
  --osb-surface: #f1f5f9;
  --osb-accent: #0a6ba8;
  --osb-accent-2: #08557f;
  --osb-accent-w: rgba(10, 107, 168, 0.12);
  --osb-chip-bg: rgba(10, 107, 168, 0.1);
  --osb-tag-bg: rgba(60, 77, 94, 0.1);

  --osb-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --osb-sans:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;

  --osb-radius: 14px;
  --osb-radius-s: 10px;
  --osb-ctrl-h: 46px; /* shared height: search field == filter pill */
  --osb-shadow:
    0 1px 2px rgba(18, 38, 58, 0.06), 0 1px 1px rgba(18, 38, 58, 0.04);
  --osb-shadow-md: 0 10px 24px -14px rgba(18, 38, 58, 0.22);
  --osb-shadow-lg: 0 26px 50px -22px rgba(18, 38, 58, 0.32);
  --osb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.osb-blog .osb-empty-wrap {
  display: none !important;
  margin: 0 !important;
}

/* Item selector helpers (used throughout) --------------------------- */
/* card  = [class*="ultp-block-item"]:not([class*="ultp-block-items"]) */

/* ------------------------------------------------------------------ */
/* Toolbar: search + filters on ONE row, equal height                  */
/* ------------------------------------------------------------------ */
body.osb-blog .osb-toolbar {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
  margin: 0 0 22px !important;
}
body.osb-blog .osb-toolbar .osb-search {
  flex: 1 1 320px;
  max-width: 560px;
  margin: 0 !important;
}
body.osb-blog .osb-toolbar .ultp-filter-block {
  flex: 0 1 auto;
  margin: 0 !important;
}

/* Anti-FOUC: blog.js moves .osb-search / .ultp-filter-block out of their
   original columns into .osb-toolbar so they sit on one row. Until that
   JS runs, keep both invisible (not display:none, so no extra reflow when
   they appear) rather than flashing the pre-JS two-row layout. blog.js adds
   .osb-ready once the move (and initial pagination state) is done; a
   <noscript> override in the page footer restores visibility if JS never
   runs at all. */
body.osb-blog .osb-search,
body.osb-blog .ultp-filter-block {
  opacity: 0;
}
body.osb-blog.osb-ready .osb-search,
body.osb-blog.osb-ready .ultp-filter-block {
  opacity: 1;
  transition: opacity 0.15s var(--osb-ease);
}

/* ------------------------------------------------------------------ */
/* Search                                                              */
/* ------------------------------------------------------------------ */
body.osb-blog .osb-search {
  max-width: 640px;
  margin: 0 0 22px;
}
body.osb-blog .osb-search__eyebrow {
  display: block;
  font-family: var(--osb-sans) !important;
  font-size: var(--wp--preset--font-size--medium) !important;
  text-transform: capitalize;
  color: var(--osb-accent) !important;
  margin: 0 0 10px 2px;
}
body.osb-blog .osb-search__field {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--osb-ctrl-h);
  box-sizing: border-box;
  background: var(--osb-bg) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: 999px !important;
  padding: 0 6px 0 46px;
  box-shadow: var(--osb-shadow);
  transition:
    border-color 0.2s var(--osb-ease),
    box-shadow 0.2s var(--osb-ease);
}
body.osb-blog .osb-search__field:focus-within {
  border-color: var(--osb-accent) !important;
  box-shadow: 0 0 0 4px var(--osb-accent-w);
}
body.osb-blog .osb-search__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--osb-muted);
  pointer-events: none;
  transition: color 0.2s var(--osb-ease);
}
body.osb-blog .osb-search__field:focus-within .osb-search__icon {
  color: var(--osb-accent);
}
body.osb-blog .osb-search__input {
  flex: 1;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--osb-sans) !important;
  font-size: 1rem;
  color: var(--osb-ink) !important;
  padding: 0 6px;
  min-width: 0;
  height: 100%;
  margin-bottom: 0px !important;
}
body.osb-blog .osb-search__input::placeholder {
  color: var(--osb-muted);
  margin-bottom: 0px !important;
}
body.osb-blog .osb-search__input::-webkit-search-cancel-button {
  display: none;
}
body.osb-blog .osb-search__clear {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--osb-surface) !important;
  color: var(--osb-body) !important;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s var(--osb-ease),
    color 0.15s var(--osb-ease),
    transform 0.15s var(--osb-ease);
}
body.osb-blog .osb-search__clear:hover {
  background: #e6ebf1 !important;
  color: var(--osb-ink) !important;
  transform: rotate(90deg);
}

body.osb-blog .osb-status {
  font-family: var(--osb-sans) !important;
  font-size: 0.86rem;
  color: var(--osb-muted);
  margin: 0 0 18px 2px;
}
body.osb-blog .osb-status:empty {
  display: none;
}
body.osb-blog .osb-status strong {
  color: var(--osb-ink);
  font-weight: 600;
}
body.osb-blog .osb-reset-all {
  font-family: var(--osb-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--osb-accent) !important;
  background: none !important;
  border: 0;
  padding: 0;
  margin-left: 10px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.osb-blog .osb-reset-all:hover {
  color: var(--osb-accent-2) !important;
}

/* Active category/tag chips, removable — grouped in a light tray above the
   result count. Category (filled blue) vs tag (filled neutral) get distinct
   tints + icons so the two kinds are never confused at a glance. */
body.osb-blog .osb-chips:empty {
  display: none;
}
body.osb-blog .osb-chips:not(:empty) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--osb-surface);
  border: 1px solid var(--osb-line);
  border-radius: var(--osb-radius-s);
  padding: 10px 12px;
  margin: 0 0 14px 2px;
}
body.osb-blog .osb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--osb-sans) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  line-height: 1.2;
  white-space: nowrap;
}
body.osb-blog .osb-chip svg {
  width: 13px;
  height: 13px;
  flex: none;
}
body.osb-blog .osb-chip--cat {
  color: var(--osb-accent) !important;
  background: var(--osb-chip-bg) !important;
}
body.osb-blog .osb-chip--tag {
  color: var(--osb-body) !important;
  background: var(--osb-tag-bg) !important;
}
body.osb-blog .osb-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s var(--osb-ease),
    color 0.15s var(--osb-ease);
}
body.osb-blog .osb-chip--cat .osb-chip__remove {
  background: rgba(10, 107, 168, 0.18) !important;
  color: var(--osb-accent) !important;
}
body.osb-blog .osb-chip--cat .osb-chip__remove:hover {
  background: var(--osb-accent) !important;
  color: #fff !important;
}
body.osb-blog .osb-chip--tag .osb-chip__remove {
  background: rgba(60, 77, 94, 0.16) !important;
  color: var(--osb-body) !important;
}
body.osb-blog .osb-chip--tag .osb-chip__remove:hover {
  background: var(--osb-body) !important;
  color: #fff !important;
}

body.osb-blog .osb-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--osb-accent), #3aa0d8);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s var(--osb-ease),
    opacity 0.25s var(--osb-ease);
}
body.osb-blog .osb-progress.is-active {
  opacity: 1;
  transform: scaleX(0.85);
}
body.osb-blog .osb-progress.is-done {
  opacity: 0;
  transform: scaleX(1);
}

/* ------------------------------------------------------------------ */
/* PostX filter dropdowns (div-based), same height as the search       */
/* ------------------------------------------------------------------ */
body.osb-blog .ultp-filter-block {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
body.osb-blog .ultp-filter-select {
  position: relative;
}
body.osb-blog .ultp-filter-select-field {
  display: flex !important;
  align-items: center;
  gap: 10px;
  height: var(--osb-ctrl-h);
  box-sizing: border-box;
  padding: 0 16px !important;
  font-family: var(--osb-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--osb-ink) !important;
  background: var(--osb-bg) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: 999px !important;
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.2s var(--osb-ease),
    box-shadow 0.2s var(--osb-ease),
    background 0.2s var(--osb-ease);
  text-transform: capitalize;
}
body.osb-blog .ultp-filter-select-field:hover {
  border-color: var(--osb-line-2) !important;
  background: #fcfdff !important;
}
body.osb-blog
  .ultp-filter-select[aria-expanded='true']
  .ultp-filter-select-field {
  border-color: var(--osb-accent) !important;
  box-shadow: 0 0 0 3px var(--osb-accent-w);
}
body.osb-blog .ultp-filter-select-field-selected {
  line-height: 1 !important;
  color: var(--osb-ink) !important;
}
body.osb-blog .ultp-filter-select-field-icon {
  display: inline-flex !important;
}
body.osb-blog .ultp-filter-select-field-icon svg {
  width: 10px;
  height: 10px;
  fill: var(--osb-muted);
  transition: transform 0.25s var(--osb-ease);
}
body.osb-blog
  .ultp-filter-select[aria-expanded='true']
  .ultp-filter-select-field-icon
  svg {
  transform: rotate(180deg);
}
body.osb-blog .ultp-filter-select-options {
  position: absolute !important;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  max-height: 320px;
  overflow: auto;
  margin: 0 !important;
  padding: 6px !important;
  list-style: none !important;
  background: var(--osb-bg) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: var(--osb-radius-s) !important;
  box-shadow: var(--osb-shadow-md) !important;
  z-index: 60;
}
body.osb-blog .ultp-filter-select__dropdown-inner {
  font-family: var(--osb-sans) !important;
  font-size: 0.9rem !important;
  color: var(--osb-body) !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.12s var(--osb-ease),
    color 0.12s var(--osb-ease);
  text-transform: capitalize;
}
body.osb-blog .ultp-filter-select__dropdown-inner:hover,
body.osb-blog .ultp-filter-select__dropdown-inner.ultp-active {
  background: var(--osb-surface) !important;
  color: var(--osb-accent) !important;
}

/* Category / tags: multi-select checkboxes ---------------------------- */
body.osb-blog
  .ultp-filter-select[data-type='category']
  .ultp-filter-select__dropdown-inner,
body.osb-blog
  .ultp-filter-select[data-type='tags']
  .ultp-filter-select__dropdown-inner {
  position: relative;
  padding-left: 34px !important;
}
body.osb-blog
  .ultp-filter-select[data-type='category']
  .ultp-filter-select__dropdown-inner::before,
body.osb-blog
  .ultp-filter-select[data-type='tags']
  .ultp-filter-select__dropdown-inner::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1.5px solid var(--osb-line-2);
  background: var(--osb-bg);
  transition:
    background 0.15s var(--osb-ease),
    border-color 0.15s var(--osb-ease);
}
body.osb-blog
  .ultp-filter-select[data-type='category']
  .ultp-filter-select__dropdown-inner.ultp-active::before,
body.osb-blog
  .ultp-filter-select[data-type='tags']
  .ultp-filter-select__dropdown-inner.ultp-active::before {
  background: var(--osb-accent) !important;
  border-color: var(--osb-accent) !important;
}
body.osb-blog
  .ultp-filter-select[data-type='category']
  .ultp-filter-select__dropdown-inner.ultp-active::after,
body.osb-blog
  .ultp-filter-select[data-type='tags']
  .ultp-filter-select__dropdown-inner.ultp-active::after {
  content: '';
  position: absolute;
  left: 16.5px;
  top: 50%;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-65%) rotate(45deg);
}

/* Category / tags: search box pinned to the top of the dropdown ------- */
body.osb-blog .osb-filter-search-item {
  padding: 0 !important;
  margin: 0 0 6px !important;
  cursor: default !important;
  position: sticky;
  top: -6px;
  background: var(--osb-bg);
  z-index: 1;
}
body.osb-blog .osb-filter-search-item:hover {
  background: var(--osb-bg) !important;
}
body.osb-blog .osb-filter-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 34px;
  padding: 0 10px;
  margin: 0;
  font-family: var(--osb-sans) !important;
  font-size: 0.85rem !important;
  color: var(--osb-ink) !important;
  background: var(--osb-surface) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: 8px !important;
  outline: none;
}
body.osb-blog .osb-filter-search-input:focus {
  border-color: var(--osb-accent) !important;
}

/* ------------------------------------------------------------------ */
/* Grid CONTAINER + WRAPPER: no border / shadow / bg / padding          */
/* ------------------------------------------------------------------ */
body.osb-blog #main-blog-grid,
body.osb-blog .main-blog-grid,
body.osb-blog .ultp-block-wrapper,
body.osb-blog [class*='ultp-block-items-wrap'] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.osb-blog .main-blog-grid .ultp-block-items-wrap {
  gap: 24px !important;
}
/* PostX's own spinner overlay — we render our own skeleton */
body.osb-blog .ultp-loading {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* CARDS — only the item, never the wrapper. Hover on the item only.    */
/* ------------------------------------------------------------------ */
body.osb-blog [class*='ultp-block-item']:not([class*='ultp-block-items']),
body.osb-blog [class*='ultp-post-item'] {
  background: var(--osb-bg) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: var(--osb-radius) !important;
  overflow: hidden !important;
  box-shadow: var(--osb-shadow) !important;
  transition:
    transform 0.35s var(--osb-ease),
    box-shadow 0.35s var(--osb-ease),
    border-color 0.35s var(--osb-ease) !important;
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
}
body.osb-blog [class*='ultp-block-item']:not([class*='ultp-block-items']):hover,
body.osb-blog [class*='ultp-post-item']:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--osb-shadow-lg) !important;
  border-color: var(--osb-line-2) !important;
}

/* Media (side-by-side) layout: featured image max 35% of the item */
body.osb-blog .ultp-block-media .ultp-block-content-wrap {
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  height: 240px;
}
body.osb-blog .ultp-block-media .ultp-block-image {
  flex: 0 0 35% !important;
  max-width: 35% !important;
  margin: 0 !important;
  width: 100%;
  height: 100%;
}
body.osb-blog .ultp-block-media .ultp-block-image a,
body.osb-blog .ultp-block-media .ultp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
}
body.osb-blog .ultp-block-media .ultp-block-image img {
  object-fit: cover;
}
body.osb-blog .ultp-block-media .ultp-block-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* image zoom on hover */
body.osb-blog [class*='ultp-block-image'] {
  overflow: hidden !important;
}
body.osb-blog [class*='ultp-block-image'] img {
  transition: transform 0.6s var(--osb-ease) !important;
}
body.osb-blog
  [class*='ultp-block-item']:not([class*='ultp-block-items']):hover
  [class*='ultp-block-image']
  img {
  transform: scale(1.05) !important;
}

body.osb-blog .ultp-block-content {
  padding: 14px 20px !important;
}

/* Category chip — IDENTICAL on main grid and pinned list */
body.osb-blog [class*='ultp'] [class*='category'] a,
body.osb-blog [class*='ultp'] [class*='taxonomy'] a {
  display: inline-block !important;
  background: var(--osb-chip-bg) !important;
  color: var(--osb-accent) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-family: var(--osb-sans) !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  margin: 0 6px 6px 0 !important;
  line-height: 1.4 !important;
  transition:
    background 0.18s var(--osb-ease),
    color 0.18s var(--osb-ease);
}
body.osb-blog [class*='ultp'] [class*='category'] a:hover {
  background: var(--osb-accent) !important;
  color: #fff !important;
}

/* Titles — editorial serif, consistent */
body.osb-blog [class*='ultp'] [class*='title'] a,
body.osb-blog [class*='ultp'] h2 a,
body.osb-blog [class*='ultp'] h3 a {
  font-family: var(--osb-serif) !important;
  font-weight: 500 !important;
  font-size: 1.3rem;
  color: var(--osb-ink) !important;
  letter-spacing: -0.01em;
  line-height: 1.24 !important;
  text-decoration: none !important;
  transition: color 0.2s var(--osb-ease);
}
body.osb-blog [class*='ultp'] [class*='title'] a:hover,
body.osb-blog [class*='ultp'] h2 a:hover,
body.osb-blog [class*='ultp'] h3 a:hover {
  color: var(--osb-accent) !important;
}

/* META — author · date · read time on ONE row */
body.osb-blog .ultp-block-meta,
body.osb-blog [class*='ultp'] [class*='block-meta'] {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  font-family: var(--osb-sans) !important;
  font-size: 0.8rem !important;
  color: #4a5b6b !important;
  gap: 2px;
  margin-top: 4px;
}
body.osb-blog .ultp-block-meta-element {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  margin: 0 !important;
  padding: 0 !important;
}
body.osb-blog .ultp-block-meta-element svg {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  color: #4a5b6b !important;
}
body.osb-blog .ultp-block-meta-element + .ultp-block-meta-element {
  margin-left: 12px !important;
}
body.osb-blog [class*='ultp'] [class*='meta'] a {
  color: var(--osb-muted) !important;
  text-decoration: none !important;
}
body.osb-blog [class*='ultp'] [class*='meta'] a:hover {
  color: var(--osb-accent) !important;
}

body.osb-blog .ultp-block-item .ultp-block-title a {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.osb-blog .ultp-block-content-inner {
  padding: 20px 0;
}

body.osb-blog [class*='ultp'] [class*='excerpt'],
body.osb-blog [class*='ultp'] [class*='content'] p {
  font-family: var(--osb-sans) !important;
  color: var(--osb-body) !important;
  line-height: 1.62 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more */
body.osb-blog [class*='read-more'] a,
body.osb-blog [class*='readmore'] a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-family: var(--osb-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: var(--osb-accent) !important;
  text-decoration: none !important;
  transition:
    gap 0.2s var(--osb-ease),
    color 0.2s var(--osb-ease);
}
body.osb-blog [class*='read-more'] a::after,
body.osb-blog [class*='readmore'] a::after {
  content: '\2192';
  transition: transform 0.2s var(--osb-ease);
}
body.osb-blog [class*='read-more'] a:hover,
body.osb-blog [class*='readmore'] a:hover {
  color: var(--osb-accent-2) !important;
  gap: 10px;
}

body.osb-blog a:focus-visible,
body.osb-blog button:focus-visible,
body.osb-blog .ultp-filter-select-field:focus-visible {
  outline: 2px solid var(--osb-accent) !important;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ */
/* Pinned / side list — same card + typography, tidy stacked layout    */
/* ------------------------------------------------------------------ */
body.osb-blog .wp-block-column [class*='ultp-block-items-wrap'] {
  gap: 18px !important;
}
body.osb-blog .wp-block-column [class*='ultp'] [class*='title'] a {
  font-size: 1.08rem !important;
}
body.osb-blog .wp-block-column .ultp-block-meta,
body.osb-blog .wp-block-column .ultp-block-meta a {
  color: #4a5b6b !important;
}

/* Pinned column stays put while the main grid scrolls past it. Targeted by
   the "Post Grid" block type (stable) rather than its auto-generated
   instance id, so this keeps working if the block is ever rebuilt. */
body.osb-blog .wp-block-columns:has(.wp-block-ultimate-post-post-grid-2) {
  align-items: flex-start;
}
body.osb-blog .wp-block-column:has(.wp-block-ultimate-post-post-grid-2) {
  position: sticky;
  top: 24px;
  align-self: flex-start;
}

/* The pinned card renders text ON TOP of its photo (PostX's "overlay"
   content style) and was configured with white/black-chip text for that —
   our global dark title/meta/chip colors above (meant for the white-card
   main grid) were clobbering it and making the text hard to read against
   the photo. Restore light text here and add a scrim so it stays legible
   over any image, regardless of what the global rules set elsewhere. */
body.osb-blog .ultp-block-content-overlay .ultp-block-content {
  background: linear-gradient(
    to top,
    rgba(8, 14, 23, 0.88) 0%,
    rgba(8, 14, 23, 0.45) 55%,
    rgba(8, 14, 23, 0) 100%
  );
}
body.osb-blog .ultp-block-content-overlay [class*='ultp'] [class*='title'] a,
body.osb-blog .ultp-block-content-overlay h2 a,
body.osb-blog .ultp-block-content-overlay h3 a {
  color: #fff !important;
}
body.osb-blog
  .ultp-block-content-overlay
  [class*='ultp']
  [class*='title']
  a:hover,
body.osb-blog .ultp-block-content-overlay h2 a:hover,
body.osb-blog .ultp-block-content-overlay h3 a:hover {
  color: rgba(255, 255, 255, 0.75) !important;
}
body.osb-blog .ultp-block-content-overlay .ultp-block-meta,
body.osb-blog .ultp-block-content-overlay .ultp-block-meta a,
body.osb-blog .ultp-block-content-overlay [class*='block-meta'] {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.osb-blog .ultp-block-content-overlay .ultp-block-meta-element svg {
  color: rgba(255, 255, 255, 0.85) !important;
}
body.osb-blog .ultp-block-content-overlay [class*='ultp'] [class*='category'] a,
body.osb-blog
  .ultp-block-content-overlay
  [class*='ultp']
  [class*='taxonomy']
  a {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
}

/* ------------------------------------------------------------------ */
/* Pagination                                                          */
/* ------------------------------------------------------------------ */
body.osb-blog .ultp-pagination-block {
  margin-top: 8px;
}
body.osb-blog ul.ultp-pagination {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none !important;
  margin: 34px 0 0 !important;
  padding: 0 !important;
}
body.osb-blog ul.ultp-pagination:empty {
  display: none !important;
}
body.osb-blog ul.ultp-pagination li {
  margin: 0 !important;
  list-style: none !important;
}
body.osb-blog ul.ultp-pagination li a,
body.osb-blog ul.ultp-pagination li > span {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  justify-content: center;
  font-family: var(--osb-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--osb-ink) !important;
  text-decoration: none !important;
  background: var(--osb-bg) !important;
  border: 1px solid var(--osb-line) !important;
  border-radius: 10px !important;
  transition:
    border-color 0.18s var(--osb-ease),
    background 0.18s var(--osb-ease),
    color 0.18s var(--osb-ease),
    transform 0.18s var(--osb-ease);
}
body.osb-blog ul.ultp-pagination li a:hover {
  border-color: var(--osb-accent) !important;
  color: var(--osb-accent) !important;
  transform: translateY(-1px);
}
body.osb-blog ul.ultp-pagination li.pagination-active a,
body.osb-blog ul.ultp-pagination li.ultp-center-item.pagination-active a {
  background: var(--osb-accent) !important;
  border-color: var(--osb-accent) !important;
  color: #fff !important;
  cursor: default;
  transform: none;
}
body.osb-blog ul.ultp-pagination li.ultp-prev-page-numbers a,
body.osb-blog ul.ultp-pagination li.ultp-next-page-numbers a {
  color: var(--osb-body) !important;
}
body.osb-blog ul.ultp-pagination li a svg {
  width: 16px;
  height: 16px;
}
/* "…" gap marker — plain, non-interactive text, not a pill button */
body.osb-blog ul.ultp-pagination li.ultp-last-dot a {
  min-width: auto !important;
  height: 40px;
  padding: 0 4px !important;
  background: transparent !important;
  border-color: transparent !important;
  color: var(--osb-muted) !important;
  cursor: default;
  pointer-events: none;
}
body.osb-blog ul.ultp-pagination li.ultp-last-dot a:hover {
  transform: none;
  color: var(--osb-muted) !important;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal                                                       */
/* ------------------------------------------------------------------ */
body.osb-blog .osb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--osb-ease),
    transform 0.55s var(--osb-ease);
  transition-delay: var(--osb-delay, 0s);
  will-change: opacity, transform;
}
body.osb-blog .osb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* Loading skeleton — mirrors real column count                        */
/* ------------------------------------------------------------------ */
body.osb-blog .osb-skel-grid {
  display: grid;
  grid-template-columns: repeat(var(--osb-cols, 1), minmax(0, 1fr));
  gap: 24px;
}
body.osb-blog .osb-skel-card {
  background: var(--osb-bg);
  border: 1px solid var(--osb-line);
  border-radius: var(--osb-radius);
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}
body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-card {
  flex-direction: row;
  align-items: stretch;
  padding-bottom: 0;
}
body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel--img {
  width: 35%;
  height: auto;
  min-height: 210px;
  margin: 0;
  flex: none;
}
body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-body {
  flex: 1;
  padding: 24px;
}
body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-body .osb-skel--line {
  margin: 12px 0 0;
}
body.osb-blog .osb-skel {
  position: relative;
  overflow: hidden;
  background: var(--osb-surface);
  border-radius: 6px;
}
body.osb-blog .osb-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: osb-shimmer 1.3s infinite;
}
@keyframes osb-shimmer {
  100% {
    transform: translateX(100%);
  }
}
body.osb-blog .osb-skel--img {
  height: 176px;
  border-radius: 0;
  margin-bottom: 18px;
}
body.osb-blog .osb-skel--line {
  height: 12px;
  margin: 10px 22px 0;
}
body.osb-blog .osb-skel--tag {
  width: 34%;
  height: 9px;
}
body.osb-blog .osb-skel--title {
  height: 20px;
  width: 82%;
  margin-top: 16px;
}
body.osb-blog .osb-skel--short {
  width: 55%;
}

body.osb-blog .ultp-block-items-wrap span.ultp-block-meta-element:after {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                         */
/* ------------------------------------------------------------------ */
body.osb-blog .osb-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--osb-line);
  border-radius: var(--osb-radius);
  background: var(--osb-surface);
  animation: osb-fade-up 0.4s var(--osb-ease) both;
}
@keyframes osb-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
body.osb-blog .osb-empty__icon {
  width: 42px;
  height: 42px;
  color: var(--osb-muted);
  margin-bottom: 14px;
}
body.osb-blog .osb-empty__title {
  font-family: var(--osb-serif) !important;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--osb-ink);
  margin: 0 0 8px;
}
body.osb-blog .osb-empty__text {
  font-family: var(--osb-sans) !important;
  color: var(--osb-body);
  font-size: 0.95rem;
  margin: 0 auto 20px;
  max-width: 380px;
}
body.osb-blog .osb-empty__btn {
  font-family: var(--osb-sans) !important;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--osb-accent);
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition:
    background 0.18s var(--osb-ease),
    transform 0.18s var(--osb-ease);
}
body.osb-blog .osb-empty__btn:hover {
  background: var(--osb-accent-2);
  transform: translateY(-1px);
}

body.osb-blog .osb-loading {
  opacity: 0.55;
  transition: opacity 0.2s var(--osb-ease);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
  body.osb-blog .osb-toolbar {
    align-items: stretch;
  }
  body.osb-blog .osb-toolbar .osb-search {
    flex: 1 1 100%;
    max-width: none;
  }
  body.osb-blog .osb-toolbar .ultp-filter-block {
    flex: 1 1 100%;
  }
  /* Columns stack full-width below this point — sticky would just pin the
     pinned list awkwardly over/under the main grid instead of beside it. */
  body.osb-blog .wp-block-column:has(.wp-block-ultimate-post-post-grid-2) {
    position: static;
  }
}
@media (max-width: 640px) {
  body.osb-blog .ultp-block-media .ultp-block-content-wrap {
    flex-direction: column;
  }
  body.osb-blog .ultp-block-media .ultp-block-image {
    flex: none !important;
    max-width: 100% !important;
    width: 100%;
  }
  body.osb-blog .ultp-block-meta {
    flex-wrap: wrap;
  }
  body.osb-blog .osb-skel-grid {
    grid-template-columns: 1fr !important;
  }
  body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-card {
    flex-direction: column;
    padding-bottom: 20px;
  }
  body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel--img {
    width: 100%;
    min-height: 0;
    height: 176px;
    margin-bottom: 18px;
  }
  body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-body {
    padding: 0;
  }
  body.osb-blog .osb-skel-grid[data-cols='1'] .osb-skel-body .osb-skel--line {
    margin: 10px 22px 0;
  }
  body.osb-blog [class*='ultp'] [class*='title'] a {
    font-size: 1.2rem;
  }
  body.osb-blog .ultp-filter-block {
    gap: 8px;
  }
  body.osb-blog .ultp-filter-select {
    flex: 1 1 auto;
  }
  body.osb-blog .ultp-filter-select-field {
    padding: 0 14px !important;
    font-size: 0.85rem !important;
    justify-content: space-between;
  }
  body.osb-blog ul.ultp-pagination li a,
  body.osb-blog ul.ultp-pagination li > span {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem !important;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.osb-blog *,
  body.osb-blog *::after {
    animation: none !important;
    transition: none !important;
  }
  body.osb-blog .osb-reveal {
    opacity: 1;
    transform: none;
  }
  body.osb-blog .osb-progress {
    display: none;
  }
}
