/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ------------------------------------------------------------
 * Desktop dropdown menus: widen to fit long labels on one line
 * ------------------------------------------------------------ */
@media (min-width: 1024px) {
  /* Blocksy sets `width: var(--dropdown-width, 200px)` on `.sub-menu`.
     Override to let the dropdown size to its content instead of wrapping. */
  [class*="animated-submenu"] > .sub-menu {
    width: max-content !important;
    max-width: 90vw; /* prevent overflowing the viewport too badly on extreme labels */
    overflow-x: auto; /* if a label is still wider than the viewport, allow horizontal scroll */
  }

  [class*="animated-submenu"] > .sub-menu a {
    white-space: nowrap;
  }
}

/* Hybrid Generators – military-style product cards (scoped) */
.ct-hybrid-gen,
.ct-outpost-new {
  /**
   * Universal variables (override per-snippet via inline style on the <section>):
   * Example:
   * <section class="ct-hybrid-gen" style="--ct-hg-text:#fff;--ct-hg-bg:#111;--ct-hg-accent:#7aa66a">
   */
  --ct-hg-bg: #0f1510;
  --ct-hg-panel: #18211a;
  --ct-hg-border: rgba(183, 197, 141, 0.28);
  --ct-hg-border-strong: rgba(183, 197, 141, 0.55);
  --ct-hg-text: rgba(245, 250, 235, 0.92);
  --ct-hg-muted: rgba(245, 250, 235, 0.68);
  --ct-hg-accent: #b7c58d; /* olive */
  --ct-hg-accent-2: #e2c573; /* sand */
  --ct-hg-badge-border: rgba(226, 197, 115, 0.45);
  --ct-hg-badge-bg: rgba(226, 197, 115, 0.10);
  --ct-hg-media-pad: 14px;
  --ct-hg-media-h: 200px; /* keeps all product images the same visual footprint (reduced for shorter cards) */

  /* Shared card/media background so both match visually */
  --ct-hg-card-bg:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--ct-hg-accent) 22%, transparent),
      color-mix(in srgb, var(--ct-hg-accent-2) 10%, transparent) 35%,
      rgba(0, 0, 0, 0) 70%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.0)),
    var(--ct-hg-panel);

  /* Wrapper neutral: only the product cards should look like cards */
  margin: clamp(24px, 4vw, 44px) 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ct-hg-text);
}

.ct-hybrid-gen__header,
.ct-outpost-new__header {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.ct-hybrid-gen__title,
.ct-outpost-new__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-hybrid-gen__subtitle,
.ct-outpost-new__subtitle {
  margin: 0;
  color: var(--ct-hg-muted);
  max-width: 70ch;
}

.ct-hybrid-gen__grid,
.ct-outpost-new__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 840px) {
  .ct-hybrid-gen__grid,
  .ct-outpost-new__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.ct-hybrid-gen-card,
.ct-outpost-new-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--ct-hg-border);
  background: var(--ct-hg-card-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 12px 12px 12px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ct-hybrid-gen-card::before,
.ct-outpost-new-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(183, 197, 141, 0.08) 0px,
      rgba(183, 197, 141, 0.08) 10px,
      rgba(226, 197, 115, 0.05) 10px,
      rgba(226, 197, 115, 0.05) 20px
    );
  opacity: 0.12;
  transform: rotate(-8deg);
  pointer-events: none;
}

.ct-hybrid-gen-card:hover,
.ct-outpost-new-card:hover {
  transform: translateY(-2px);
  border-color: var(--ct-hg-border-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.33);
}

.ct-hybrid-gen-card__top,
.ct-outpost-new-card__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  z-index: 1;
}

.ct-hybrid-gen-card__kicker,
.ct-outpost-new-card__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-hg-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-hybrid-gen-card__badge,
.ct-outpost-new-card__badge {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ct-hg-badge-border);
  background: var(--ct-hg-badge-bg);
  color: var(--ct-hg-text);
  white-space: nowrap;
}

.ct-hybrid-gen-card__title,
.ct-outpost-new-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.ct-hybrid-gen-card__title-main,
.ct-hybrid-gen-card__title-sub,
.ct-outpost-new-card__title-main,
.ct-outpost-new-card__title-sub {
  display: block;
}

.ct-hybrid-gen-card__title-sub,
.ct-outpost-new-card__title-sub {
  margin-top: 4px;
  opacity: 0.92;
}

.ct-hybrid-gen-card__media,
.ct-outpost-new-card__media {
  position: relative;
  z-index: 1;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ct-hg-media-h);
  padding: 8px 0 6px;
}

.ct-hybrid-gen-card__img,
.ct-outpost-new-card__img {
  display: block;
  margin: 0 auto;
  width: 68%;
  max-width: 360px;
  height: auto;
  max-height: 100%;
  filter: saturate(0.95) contrast(1.02);
}

/* Strong overrides: beat per-page snippet CSS that uses `!important` on width/height */
.ct-hybrid-gen .ct-hybrid-gen-card .ct-hybrid-gen-card__media,
.ct-outpost-new .ct-outpost-new-card .ct-outpost-new-card__media {
  height: var(--ct-hg-media-h) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ct-hybrid-gen .ct-hybrid-gen-card .ct-hybrid-gen-card__img,
.ct-outpost-new .ct-outpost-new-card .ct-outpost-new-card__img {
  width: 68% !important;
  max-width: 360px !important;
  height: auto !important;
  max-height: 100% !important;
  margin: 0 auto !important;
}

/* DCPD is a wide/short image (often with extra transparent padding) — let it use more width */
.ct-outpost-new .ct-outpost-new-card .ct-outpost-new-card__img[src*="DCPD-Top-View"] {
  width: 95% !important;
  max-width: 520px !important; /* avoid over-upscaling small PNGs (can look "distorted") */
  height: auto !important; /* prevent any squish from competing styles */
  filter: none !important; /* remove contrast/saturation filter (can artifact on line-heavy PNGs) */
  image-rendering: auto;
}

/**
 * Support for per-page markup that tags a product image as "wide".
 * Keep it consistent with the DCPD handling above (and avoid squish / over-upscaling).
 */
.ct-outpost-new .ct-outpost-new-card .ct-outpost-new-card__img.ct-outpost-new-card__img--wide {
  width: 95% !important;
  max-width: 520px !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
}

/* If you reuse the Hybrid Generator markup/classes for other product sets, keep "wide" images sane there too. */
.ct-hybrid-gen .ct-hybrid-gen-card .ct-hybrid-gen-card__img[src*="DCPD-Top-View"],
.ct-hybrid-gen .ct-hybrid-gen-card .ct-hybrid-gen-card__img.ct-hybrid-gen-card__img--wide {
  width: 95% !important;
  max-width: 520px !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  filter: none !important;
  image-rendering: auto;
}

.ct-hybrid-gen-card__meta,
.ct-outpost-new-card__meta {
  position: relative;
  z-index: 1;
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

/* Per-spec accordion */
.ct-hybrid-gen-specs,
.ct-outpost-new-specs {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0 0 10px 0;
}

/* Hybrid Generator specs: force non-accordion behavior (always show text) */
.ct-hybrid-gen details.ct-hybrid-gen-spec > summary.ct-hybrid-gen-spec__summary {
  cursor: default;
  pointer-events: none;
}

.ct-hybrid-gen details.ct-hybrid-gen-spec > .ct-hybrid-gen-spec__body {
  display: block !important; /* override UA: details:not([open]) > :not(summary) { display:none } */
}

.ct-hybrid-gen details.ct-hybrid-gen-spec .ct-hybrid-gen-spec__chev {
  display: none;
}

.ct-hybrid-gen-spec,
.ct-outpost-new-spec {
  border-radius: 12px;
  border: 1px solid rgba(183, 197, 141, 0.18);
  background: rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.ct-hybrid-gen-spec__summary,
.ct-outpost-new-spec__summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.ct-hybrid-gen-spec__summary::-webkit-details-marker,
.ct-outpost-new-spec__summary::-webkit-details-marker {
  display: none;
}

.ct-hybrid-gen-spec__chev,
.ct-outpost-new-spec__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
  transition: transform 160ms ease;
}

.ct-hybrid-gen-spec[open] .ct-hybrid-gen-spec__chev,
.ct-outpost-new-spec[open] .ct-outpost-new-spec__chev {
  transform: rotate(225deg);
}

.ct-hybrid-gen-spec__body,
.ct-outpost-new-spec__body {
  padding: 0 12px 12px;
  border-top: 1px dashed rgba(183, 197, 141, 0.18);
}

/* Static specs (non-accordion): shaded box with always-visible rows */
.ct-hybrid-gen-specs.ct-hybrid-gen-specs--static,
.ct-outpost-new-specs.ct-outpost-new-specs--static {
  gap: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(183, 197, 141, 0.24);
  background: rgba(0, 0, 0, 0.18);
}

.ct-hybrid-gen-specs--static .ct-hybrid-gen-spec-row,
.ct-outpost-new-specs--static .ct-outpost-new-spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(183, 197, 141, 0.22);
}

.ct-hybrid-gen-specs--static .ct-hybrid-gen-spec-row:last-child,
.ct-outpost-new-specs--static .ct-outpost-new-spec-row:last-child {
  border-bottom: 0;
}

@media (max-width: 560px) {
  .ct-hybrid-gen-specs--static .ct-hybrid-gen-spec-row,
  .ct-outpost-new-specs--static .ct-outpost-new-spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.ct-hybrid-gen-card__meta-item,
.ct-outpost-new-card__meta-item {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(183, 197, 141, 0.22);
}

.ct-hybrid-gen-card__meta-k,
.ct-outpost-new-card__meta-k {
  color: var(--ct-hg-muted);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-hybrid-gen-card__meta-v,
.ct-outpost-new-card__meta-v {
  color: var(--ct-hg-text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .ct-hybrid-gen,
  .ct-outpost-new {
    --ct-hg-media-h: 170px;
  }

  .ct-hybrid-gen-card__title,
  .ct-outpost-new-card__title {
    font-size: 22px;
  }

  .ct-hybrid-gen-card__meta-item,
  .ct-outpost-new-card__meta-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ct-hybrid-gen-card__meta-k,
  .ct-outpost-new-card__meta-k {
    font-size: 14px;
  }

  .ct-hybrid-gen-card__meta-v,
  .ct-outpost-new-card__meta-v {
    font-size: 15px;
  }
}

.ct-hybrid-gen-card__actions,
.ct-outpost-new-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.ct-hybrid-gen-card__btn,
.ct-outpost-new-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(183, 197, 141, 0.55);
  background: rgba(183, 197, 141, 0.10);
  color: var(--ct-hg-text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ct-hybrid-gen-card__btn:hover,
.ct-outpost-new-card__btn:hover {
  border-color: rgba(183, 197, 141, 0.8);
  background: rgba(183, 197, 141, 0.16);
}

/* Hybrid Generator cards: optional square-corner variant (opt-in via class on the <section>) */
.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-card,
.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-spec,
.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-card__btn {
  border-radius: 0 !important;
}

/* If you're using the square variant, it is typically used on dark sections: keep text pure white. */
.ct-hybrid-gen.ct-hybrid-gen--square {
  --ct-hg-text: #ffffff;
  --ct-hg-muted: rgba(255, 255, 255, 0.86);
  /* Let product images define their own height (no fixed media box). */
  --ct-hg-media-h: auto;
}

/* Force white text inside this component even if later theme/customizer CSS targets headings/content */
.ct-hybrid-gen.ct-hybrid-gen--square,
.ct-hybrid-gen.ct-hybrid-gen--square * {
  color: #ffffff !important;
}

/* Keep keys slightly muted while staying "white" */
.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-card__meta-k {
  color: rgba(255, 255, 255, 0.86) !important;
}

/* Prevent any theme-level image constraints from flattening product PNGs */
.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-card .ct-hybrid-gen-card__media {
  height: auto !important;
  max-height: none !important;
}

.ct-hybrid-gen.ct-hybrid-gen--square .ct-hybrid-gen-card img.ct-hybrid-gen-card__img {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  max-width: 520px !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
  filter: none !important; /* avoid "flat" look from contrast/saturation */
}

/* Stackable Feature Grid – icon heading accordions (scoped via a helper class) */
.npt-icon-accordion {
  width: 100%;
  margin-top: 2px !important;
  text-align: center;
  color: #ffffff;
  font-weight: 800 !important;
}

.npt-icon-accordion > summary {
  cursor: pointer;
  list-style: none;
  display: block;
  width: 100%;
  padding: 10px 10px 8px;
  border-radius: 10px;
  user-select: none;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.npt-icon-accordion > summary::-webkit-details-marker {
  display: none;
}

.npt-icon-accordion > summary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
}

.npt-icon-accordion > summary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Card layout: icon on top, title/chev row below */
.npt-icon-accordion__header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.npt-icon-accordion > summary .stk-block-image {
  margin-bottom: 0 !important; /* tighten icon-to-title spacing */
  width: 50% !important; /* shrink icon box to half size */
  max-width: 50% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

/* Ensure the image scales down cleanly within the smaller icon box */
.npt-icon-accordion > summary .stk-img-wrapper,
.npt-icon-accordion > summary img.stk-img {
  width: 100% !important;
  height: auto !important;
}

.npt-icon-accordion__title {
  margin: 0;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
  font-size: 20px; /* roughly matches your Stackable h4 size */
  line-height: 1.2;
}

.npt-icon-accordion__chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.95;
  transition: transform 160ms ease;
  color: #ffffff !important;
}

.npt-icon-accordion[open] .npt-icon-accordion__chev {
  transform: rotate(225deg);
}

.npt-icon-accordion__body {
  margin-top: 6px;
  padding: 6px 12px 2px;
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800 !important;
}

/* Force nested content (p, a, li, etc) to inherit white + bold */
.npt-icon-accordion__body,
.npt-icon-accordion__body * {
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Stackable Feature Grid (block id b035a10): make the "card" sharp 90° corners */
.stk-b035a10 .npt-icon-accordion > summary,
.stk-b035a10 .npt-icon-accordion__body,
.stk-b035a10 .stk-img-wrapper,
.stk-b035a10 .stk-column-wrapper,
.stk-b035a10 .stk-container {
  border-radius: 0 !important;
}

/* ------------------------------------------------------------
 * Stackable Posts (block id: 6827030)
 * - Ticker mode (default): Anduril-style horizontal ticker
 * - List mode (.is-style-list): full-width horizontal rows + invert-on-hover
 * ------------------------------------------------------------ */

/* Ticker mode (do NOT apply when this block uses list style) */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list),
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) {
  --npt-post-ticker-bg: rgba(0, 0, 0, 0); /* set to solid if you need edge fades to match a section bg */
  --npt-post-ticker-card-bg: rgba(255, 255, 255, 0.06);
  --npt-post-ticker-card-border: rgba(255, 255, 255, 0.16);
  --npt-post-ticker-card-border-hover: rgba(255, 255, 255, 0.28);
  --npt-post-ticker-gap: clamp(14px, 2vw, 22px);
  --npt-post-ticker-radius: 14px;
  --npt-post-ticker-img: 72px;
  --npt-post-ticker-duration: 45s; /* JS will overwrite based on actual width */
  position: relative;
}

/* The viewport (existing Stackable wrapper) */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

/* Edge fades */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items::before,
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items::after,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items::before,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(72px, 12vw);
  z-index: 3;
  pointer-events: none;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items::before,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items::before {
  left: 0;
  background: linear-gradient(90deg, var(--npt-post-ticker-bg) 0%, rgba(0, 0, 0, 0) 100%);
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items::after,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items::after {
  right: 0;
  background: linear-gradient(270deg, var(--npt-post-ticker-bg) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Track wrapper added by JS */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .npt-post-ticker__track,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .npt-post-ticker__track {
  display: flex;
  align-items: stretch;
  gap: var(--npt-post-ticker-gap);
  flex-wrap: nowrap;
  will-change: transform;
}

/* Default fallback (no JS): keep it horizontally scrollable */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items {
  display: block;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__item,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__item {
  /* Only matters in fallback mode; JS/track mode overrides via flex container */
  display: inline-block;
  vertical-align: top;
}

/* When ready: animate the track */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track {
  animation: npt-post-ticker-scroll var(--npt-post-ticker-duration) linear infinite;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list).npt-post-ticker--ready:hover .npt-post-ticker__track,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list).npt-post-ticker--ready:hover .npt-post-ticker__track {
  animation-play-state: paused;
}

@keyframes npt-post-ticker-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--npt-post-ticker-loop-width, 0px)), 0, 0);
  }
}

/* Card styling */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__item,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__item {
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 360px);
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-6827030-container,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-6827030-container {
  height: 100%;
  border: 1px solid var(--npt-post-ticker-card-border) !important;
  background: var(--npt-post-ticker-card-bg) !important;
  border-radius: var(--npt-post-ticker-radius) !important;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: var(--npt-post-ticker-img) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px !important;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-6827030-container:hover,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-6827030-container:hover {
  border-color: var(--npt-post-ticker-card-border-hover) !important;
}

/* Beat the inline CSS in your block that forces weird flex-basis values */
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-img-wrapper,
.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__image-link,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-img-wrapper,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__image-link {
  flex: none !important;
  width: var(--npt-post-ticker-img) !important;
  height: var(--npt-post-ticker-img) !important;
  margin: 0 !important;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-img-wrapper,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) img.stk-img,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) img.stk-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-container-padding,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-container-padding {
  width: auto !important; /* your inline CSS had width:-100% */
  padding: 0 !important;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__title,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__title {
  margin: 0 0 6px 0 !important;
  line-height: 1.15;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__title a,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__title a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__excerpt,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__excerpt {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.35;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__readmore,
.wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__readmore {
  display: none; /* keep it clean like Anduril; click the card */
}

/* Motion/accessibility fallbacks */
@media (prefers-reduced-motion: reduce) {
  .wp-block-stackable-posts.stk-6827030:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track,
  .wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track {
    animation: none !important;
    transform: none !important;
  }

  .wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items,
  .wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  /* On mobile: let users swipe; ticker animation can feel “busy” */
  .wp-block-stackable-posts.stk-6827030:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track,
  .wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list).npt-post-ticker--ready .npt-post-ticker__track {
    animation: none !important;
    transform: none !important;
  }

  .wp-block-stackable-posts.stk-6827030:not(.is-style-list) .stk-block-posts__items,
  .wp-block-stackable-posts[data-block-id="6827030"]:not(.is-style-list) .stk-block-posts__items {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ------------------------------------------------------------
 * List mode: full-width horizontal row items + invert-on-hover
 * (This matches your pasted markup using `.is-style-list`.)
 * ------------------------------------------------------------ */
.wp-block-stackable-posts.stk-6827030.is-style-list,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list {
  /* Force Stackable list to be truly 1-column at all breakpoints (their block often uses --stk-columns). */
  --stk-columns: 1 !important;
  --npt-post-row-h: 200px; /* keep the same row height you have now */
  --npt-post-row-img: 200px;
  --npt-post-row-radius: 14px;
  --npt-post-row-border: rgba(255, 255, 255, 0.16);
  --npt-post-row-bg: #000000;
  --npt-post-row-fg: #ffffff;
  --npt-post-row-hover-bg: #ffffff;
  --npt-post-row-hover-fg: #000000;
  --npt-post-row-hover-shade: rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Stackable sometimes redefines --stk-columns on inner wrappers; force it everywhere inside this instance. */
.wp-block-stackable-posts.stk-6827030.is-style-list *,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list * {
  --stk-columns: 1 !important;
}

/* Neutralize any grid/columns layout Stackable may apply to the inner wrappers in list style. */
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-inner-blocks,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-content-align,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-column,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-inner-blocks,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-content-align,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-column {
  display: block !important;
  grid-template-columns: 1fr !important;
  column-count: 1 !important;
  column-gap: 0 !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__items,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__items {
  /* Override Stackable's grid/columns layout to guarantee 1 post per row. */
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  overflow: visible;
  grid-template-columns: 1fr !important;
  column-count: 1 !important;
  column-gap: 0 !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__item,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__item {
  /* Stackable sets flex-basis/width using calc(100%/var(--stk-columns,...)).
     Force a single full-width row regardless of --stk-columns. */
  flex: 0 0 100% !important;
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  width: 100% !important;
  margin: 0 !important;
  break-inside: avoid;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container {
  min-height: var(--npt-post-row-h);
  border: 1px solid var(--npt-post-row-border) !important;
  background: var(--npt-post-row-bg) !important;
  color: var(--npt-post-row-fg) !important;
  border-radius: var(--npt-post-row-radius) !important;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: var(--npt-post-row-img) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px !important;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

/* Make sure inline block styles like `.stk-6827030 .stk-block-posts__title a{color:#fff !important;}`
   don't prevent the invert-on-hover behavior. */
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container a,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container a {
  color: inherit !important;
}

/* Hover shade + invert */
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover {
  background: var(--npt-post-row-hover-bg) !important;
  color: var(--npt-post-row-hover-fg) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  /* subtle "shade" without muddying the white background too much */
  filter: saturate(1.02);
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover *,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover * {
  color: var(--npt-post-row-hover-fg) !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-img-wrapper,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__image-link,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-img-wrapper,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__image-link {
  width: var(--npt-post-row-img) !important;
  height: var(--npt-post-row-img) !important;
  flex: none !important;
  margin: 0 !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-img-wrapper,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-img-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.wp-block-stackable-posts.stk-6827030.is-style-list img.stk-img,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list img.stk-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-container-padding,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-container-padding {
  width: auto !important;
  padding: 0 !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__title,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__title {
  margin: 0 0 6px 0 !important;
  line-height: 1.15;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__title a,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__title a {
  color: var(--npt-post-row-fg) !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__meta,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__meta,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__excerpt,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__excerpt {
  color: rgba(255, 255, 255, 0.78) !important;
  transition: color 160ms ease;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover .stk-block-posts__title a,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover .stk-block-posts__title a {
  color: var(--npt-post-row-hover-fg) !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover .stk-block-posts__meta,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover .stk-block-posts__meta,
.wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container:hover .stk-block-posts__excerpt,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container:hover .stk-block-posts__excerpt {
  color: rgba(0, 0, 0, 0.78) !important;
}

.wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__readmore,
.wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__readmore {
  display: inline-block !important;
}

@media (max-width: 767px) {
  .wp-block-stackable-posts.stk-6827030.is-style-list,
  .wp-block-stackable-posts[data-block-id="6827030"].is-style-list {
    --npt-post-row-h: 150px;
    --npt-post-row-img: 150px;
  }

  .wp-block-stackable-posts.stk-6827030.is-style-list .stk-6827030-container,
  .wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-6827030-container {
    /* On mobile, the left-image/right-text layout gets cramped and looks "stacked".
       Switch to a clean vertical card: image on top, content below. */
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 14px !important;
  }

  .wp-block-stackable-posts.stk-6827030.is-style-list .stk-img-wrapper,
  .wp-block-stackable-posts.stk-6827030.is-style-list .stk-block-posts__image-link,
  .wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-img-wrapper,
  .wp-block-stackable-posts[data-block-id="6827030"].is-style-list .stk-block-posts__image-link {
    width: 100% !important;
    height: var(--npt-post-row-img) !important;
  }
}

/* ------------------------------------------------------------
 * 3-option card display (big-left, two stacked on right)
 * Reuses the same visual language as .ct-hybrid-gen-card
 * ------------------------------------------------------------ */
.ct-option-cards {
  /* inherit the same palette as your existing Hybrid Generator cards */
  --ct-oc-gap: 18px;
  --ct-oc-radius: 14px;
  /* Right cards media height */
  --ct-oc-media-h: clamp(220px, 22vw, 320px);
  /* Left (Option 1) media height minimum (it can grow taller because it spans 2 rows) */
  --ct-oc-media-h-primary: clamp(340px, 40vw, 560px);
  /* Defeat the global Hybrid Generator "strong override" height rule for this section */
  --ct-hg-media-h: var(--ct-oc-media-h);
}

.ct-option-cards__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ct-oc-gap);
}

@media (min-width: 840px) {
  .ct-option-cards__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: stretch;
  }

  .ct-option-card--primary {
    grid-row: 1 / span 2; /* big left card */
  }
}

/* Make the entire card clickable */
.ct-option-cards a.ct-hybrid-gen-card.ct-option-card {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;

  /* no border/outline/background */
  position: relative;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: var(--ct-oc-radius);

  /* subtle depth + hover bounce */
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transform: translateY(0) scale(1);
  transition: transform 220ms ease, box-shadow 220ms ease;
  -webkit-tap-highlight-color: transparent;

  /* size */
  min-height: var(--ct-oc-media-h);
}

.ct-option-cards a.ct-hybrid-gen-card.ct-option-card.ct-option-card--primary {
  min-height: var(--ct-oc-media-h-primary);
}

.ct-option-cards a.ct-hybrid-gen-card.ct-option-card:visited {
  color: inherit;
}

.ct-option-cards a.ct-hybrid-gen-card.ct-option-card:focus-visible {
  outline: none !important;
}

/* Title overlays the image (ALL cards, including the primary) */
.ct-option-cards .ct-hybrid-gen-card__title {
  margin: 0;
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  z-index: 2;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Desktop only: move Option 1 title down by 20px (mobile is already perfect) */
@media (min-width: 840px) {
  .ct-option-cards a.ct-hybrid-gen-card.ct-option-card.ct-option-card--primary .ct-hybrid-gen-card__title {
    top: 38px; /* 18px + 20px */
  }
}

/* Force pure-white text in this block (titles sometimes inherit muted theme color) */
.ct-option-cards,
.ct-option-cards * {
  color: #ffffff !important;
}

.ct-option-cards a,
.ct-option-cards a:visited,
.ct-option-cards a:hover,
.ct-option-cards a:active {
  color: #ffffff !important;
}

/* Shading overlay (no green background needed) */
.ct-option-cards a.ct-hybrid-gen-card.ct-option-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.45));
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.ct-option-cards .ct-hybrid-gen-card__media {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
}

.ct-option-cards .ct-hybrid-gen-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fill the entire card */
  object-position: center; /* keep centered */
  transform: scale(1);
  transition: transform 220ms ease;
}

/* Hover bounce */
.ct-option-cards a.ct-hybrid-gen-card.ct-option-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.ct-option-cards a.ct-hybrid-gen-card.ct-option-card:hover::before {
  opacity: 0.75;
}

.ct-option-cards a.ct-hybrid-gen-card.ct-option-card:hover .ct-hybrid-gen-card__img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .ct-option-cards a.ct-hybrid-gen-card.ct-option-card,
  .ct-option-cards a.ct-hybrid-gen-card.ct-option-card::before,
  .ct-option-cards .ct-hybrid-gen-card__img {
    transition: none !important;
  }

  .ct-option-cards a.ct-hybrid-gen-card.ct-option-card:hover {
    transform: none !important;
  }

  .ct-option-cards a.ct-hybrid-gen-card.ct-option-card:hover .ct-hybrid-gen-card__img {
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .ct-option-cards .ct-hybrid-gen-card__title {
    font-size: 24px;
  }
}

/* ==========================================================
   Stackable Posts (block id: 8738a58) — modern list/card rows
   ========================================================== */
.stk-8738a58 {
  --stk-columns: 1 !important; /* ensure list layout */
  --stk-post-card-bg: rgba(255, 255, 255, 0.06);
  --stk-post-card-bg-hover: rgba(255, 255, 255, 0.12);
  --stk-post-card-border: rgba(255, 255, 255, 0.12);
  --stk-post-card-border-hover: rgba(255, 255, 255, 0.22);
  --stk-post-card-radius: 14px;
}

/* spacing between rows */
.stk-8738a58 .stk-block-posts__items {
  display: grid;
  gap: 14px;
}

/* each post as a full-width card row */
.stk-8738a58 .stk-block-posts__item .stk-container {
  padding: 0 !important;
}

.stk-8738a58 .stk-block-posts__item article {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--stk-post-card-radius);
  background: var(--stk-post-card-bg);
  border: 1px solid var(--stk-post-card-border);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.stk-8738a58 .stk-post-card__overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--stk-post-card-radius);
  display: block;
}

/* keep the real content above the overlay so existing links still work */
.stk-8738a58 .stk-block-posts__item article > *:not(.stk-post-card__overlay-link) {
  position: relative;
  z-index: 2;
}

.stk-8738a58 .stk-post-card__overlay-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.stk-8738a58 .stk-block-posts__item article:hover {
  background: var(--stk-post-card-bg-hover);
  border-color: var(--stk-post-card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

/* image on the left */
.stk-8738a58 .stk-block-posts__image-link {
  flex: 0 0 260px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
}

.stk-8738a58 .stk-img-wrapper {
  width: 100% !important;
  height: 100%;
  margin: 0;
}

.stk-8738a58 img.stk-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* content area */
.stk-8738a58 .stk-block-posts__title {
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: clamp(18px, 1.1vw + 16px, 24px);
}

.stk-8738a58 .stk-block-posts__title a {
  color: #ffffff !important;
  text-decoration: none;
}

.stk-8738a58 .stk-block-posts__item article:hover .stk-block-posts__title a {
  color: var(--theme-palette-color-1, #5a6723) !important;
}

.stk-8738a58 .stk-block-posts__excerpt p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}

.stk-8738a58 .stk-block-posts__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.stk-8738a58 .stk-block-posts__item article:hover .stk-block-posts__readmore {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
}

/* mobile: stack image on top */
@media (max-width: 767px) {
  .stk-8738a58 .stk-block-posts__item article {
    flex-direction: column;
    padding: 14px 14px;
  }

  .stk-8738a58 .stk-block-posts__image-link {
    flex-basis: auto;
    max-width: 100%;
    height: 190px;
  }
}

/* Stackable Posts (block id: d996ca9) – seamless feed + full-card clickable rows */
.stk-d996ca9 .stk-block-posts__items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stk-d996ca9 .stk-block-posts__item {
  width: 100%;
}

.stk-d996ca9 .npt-post-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.stk-d996ca9 .npt-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.14);
}

/* Full-card clickable overlay (no nested links needed) */
.stk-d996ca9 .npt-post-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.stk-d996ca9 .npt-post-card > *:not(.npt-post-card__link) {
  position: relative;
  z-index: 2;
}

/* image on the left */
.stk-d996ca9 .stk-img-wrapper {
  width: 100% !important;
  flex: 0 0 260px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
  margin: 0;
  background: #f1f5f9;
}

.stk-d996ca9 img.stk-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* content area */
.stk-d996ca9 .stk-block-posts__title {
  margin: 0 0 10px;
  line-height: 1.15;
  font-size: clamp(18px, 1.1vw + 16px, 24px);
  color: #0f172a;
}

.stk-d996ca9 .stk-block-posts__meta {
  color: rgba(15, 23, 42, 0.66);
}

.stk-d996ca9 .stk-block-posts__excerpt p {
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.82);
}

.stk-d996ca9 .stk-block-posts__readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #2563eb;
  font-weight: 600;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.stk-d996ca9 .npt-post-card:hover .stk-block-posts__readmore {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.26);
}

/* mobile: stack image on top */
@media (max-width: 767px) {
  .stk-d996ca9 .npt-post-card {
    flex-direction: column;
    padding: 14px 14px;
  }

  .stk-d996ca9 .stk-img-wrapper {
    flex-basis: auto;
    max-width: 100%;
    height: 190px;
  }
}

/* Shortcode: [npt_news_feed] – seamless feed + full-card clickable rows */
.npt-news-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.npt-news-feed__card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.npt-news-feed__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.14);
}

/* Full-card clickable overlay */
.npt-news-feed__cardLink {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
}

.npt-news-feed__card > *:not(.npt-news-feed__cardLink) {
  position: relative;
  z-index: 2;
}

.npt-news-feed__media {
  flex: 0 0 260px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
  background: #f1f5f9;
}

.npt-news-feed__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.npt-news-feed__img--placeholder {
  width: 100%;
  height: 100%;
}

.npt-news-feed__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.npt-news-feed__title {
  margin: 0;
  line-height: 1.15;
  font-size: clamp(18px, 1.1vw + 16px, 24px);
  color: #0f172a;
}

.npt-news-feed__meta {
  color: rgba(15, 23, 42, 0.66);
  font-size: 0.92rem;
}

.npt-news-feed__excerpt {
  color: rgba(15, 23, 42, 0.82);
}

.npt-news-feed__readmore {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #2563eb;
  font-weight: 600;
  width: fit-content;
}

.npt-news-feed__empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.75);
}

@media (max-width: 767px) {
  .npt-news-feed__card {
    flex-direction: column;
    padding: 14px 14px;
  }

  .npt-news-feed__media {
    flex-basis: auto;
    max-width: 100%;
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .npt-news-feed__card {
    transition: none;
  }
  .npt-news-feed__card:hover {
    transform: none;
  }
}