/* =========================================================================
   Treasureforce Site Kit — sections
   Section spacing, hero, header + nav (HFE), footer, blog cards, article /
   archive templates, CTA, 404, responsive overrides (design-2 style-3.css
   breakpoints: ≥1500 / ≤1000 / ≤900 / ≤600, plus Elementor 1024 / 767).

   Elementor containers: padding is applied through --padding-* variables,
   so classes set the variables (they beat the 10px container default) and
   plain padding for raw HTML (PHP templates).
   SR: Sekcije, hero, zaglavlje, podnožje, blog kartice, responzivnost.
   ========================================================================= */

/* =========================================================================
   1. Section spacing
   ========================================================================= */
.tf-section:not(.e-con) { padding-top: 120px; padding-bottom: 100px; }
.e-con.tf-section {
  --padding-top: 120px;
  --padding-bottom: 100px;
  --padding-left: var(--tf-gutter);
  --padding-right: var(--tf-gutter);
}
.tf-section--tight:not(.e-con) { padding-top: 72px; padding-bottom: 64px; }
.e-con.tf-section.tf-section--tight { --padding-top: 72px; --padding-bottom: 64px; }

.tf-section--flush-top:not(.e-con),
.tf-section.tf-section--flush-top:not(.e-con) { padding-top: 0; }
.e-con.tf-section--flush-top,
.e-con.tf-section.tf-section--flush-top { --padding-top: 0px; }
.tf-section--flush-bottom:not(.e-con),
.tf-section.tf-section--flush-bottom:not(.e-con) { padding-bottom: 0; }
.e-con.tf-section--flush-bottom,
.e-con.tf-section.tf-section--flush-bottom { --padding-bottom: 0px; }

.tf-section--surface,
.e-con.tf-section--surface {
  background-color: var(--tf-surface);
  border-top: 1px solid var(--tf-divider);
  border-bottom: 1px solid var(--tf-divider);
}
.tf-section--black,
.e-con.tf-section--black { background-color: #000; }

/* =========================================================================
   2. Hero — .tf-hero (Elementor container with background video)
   ========================================================================= */
.tf-hero,
.e-con.tf-hero {
  position: relative;
  --position: relative;
  overflow: hidden;
  --overflow: hidden;
  height: 640px;
  --height: 640px;
  min-height: 0;
  --min-height: 0px;
  background-color: #000;
  background-size: cover;
  background-position: center 48%;
  isolation: isolate;
}

/* Background video (Elementor hosted): cover, centred at 48% */
.tf-hero > .elementor-background-video-container,
.tf-hero > .e-con-inner > .elementor-background-video-container {
  z-index: 0;
}
.tf-hero .elementor-background-video-hosted,
.tf-hero .elementor-background-video-container video {
  position: absolute;
  inset: 0;
  width: 100% !important;   /* Elementor writes inline width/height on resize */
  height: 100% !important;
  max-width: none;
  transform: none;
  object-fit: cover;
  object-position: center 48%;
}
/* Fade the film in over the poster once it actually plays (tf-hero.js adds .is-playing) */
.tf-js .tf-hero .elementor-background-video-container { opacity: 0; transition: opacity 1s; }
.tf-js .tf-hero.is-playing .elementor-background-video-container { opacity: 1; }

/* Shade gradient over video/poster, under the content */
.tf-hero::after,
.e-con.tf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, #0c0c0e 0%, rgba(12, 12, 14, .79) 17%, rgba(12, 12, 14, .38) 52%, rgba(12, 12, 14, .08) 85%);
}
.tf-hero > .e-con-inner,
.tf-hero > .elementor-element,
.tf-hero > .e-con-inner > .elementor-element { z-index: 2; }
.tf-hero > .e-con-inner { position: relative; height: 100%; }
/* An image fill (Image widget / container with tf-media--fill) stays BEHIND the shade (::after, z 1);
   only the content above is lifted to z 2. */
.tf-hero > .elementor-widget-image.tf-media--fill,
.tf-hero > .e-con.tf-media--fill,
.tf-hero > .e-con-inner > .elementor-widget-image.tf-media--fill { z-index: 0; border-radius: 0; }

/* ---- 2b. Page hero — .tf-hero--page: image hero without film --------------
   Container "tf-hero tf-hero--page tf-rel" › Image widget "tf-media tf-media--fill" + "tf-hero__copy".
   Height 560 / 620 (>=1500) / 600 (<=1000) / 620 (<=600); deeper shade so the copy reads on any photo.
   Aliases (older page builds, same look): .tf-svc-hero (services, without .tf-hero), .tf-hero--short. */
.e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) {
  position: relative;
  --position: relative;
  overflow: hidden;
  --overflow: hidden;
  height: 560px;
  --height: 560px;
  min-height: 0;
  --min-height: 0px;
  background-color: #000;
  isolation: isolate;
}
.e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 12, 14, 1) 0%, rgba(12, 12, 14, .92) 40%, rgba(12, 12, 14, .4) 65%, transparent 85%);
}
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) > .elementor-element { z-index: 2; }
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) > .elementor-widget-image.tf-media--fill,
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) > .e-con.tf-media--fill { z-index: 0; border-radius: 0; }
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) > .tf-media--fill.tf-media--shade-bottom::after { content: none; } /* the hero's own shade is used */
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-media--fill:hover img { transform: none; }
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-h-display .elementor-heading-title { margin: 0; font-size: clamp(44px, 6.6vw, 108px); line-height: .94; }
:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-hero__copy .elementor-widget.tf-body-lg p { font-size: 16px; color: var(--tf-n300); }
.e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-hero__copy { --padding-bottom: 56px; }

/* Bottom copy grid 1.4fr / .6fr */
.tf-hero__copy,
.e-con.tf-hero__copy {
  position: absolute;
  --position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  --width: 100%;
  max-width: var(--tf-container);
  margin: 0 auto;
  --margin-left: auto;
  --margin-right: auto;
  padding: 0 var(--tf-gutter) 64px;
  --padding-top: 0px;
  --padding-right: var(--tf-gutter);
  --padding-bottom: 64px;
  --padding-left: var(--tf-gutter);
  --display: grid;
  --e-con-grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  --e-con-grid-template-rows: auto;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  --flex-direction: row;
  --align-items: flex-end;
  align-items: end;
  --gap: 40px;
  --row-gap: 40px;
  --column-gap: 40px;
  gap: 40px;
  pointer-events: none;
}
.tf-hero__copy:not(.e-con) { display: grid; }
.tf-hero__copy > * { pointer-events: auto; min-width: 0; }
.e-con.tf-hero__copy.e-flex > :first-child { flex: 1.4 1 0; }
.e-con.tf-hero__copy.e-flex > :last-child { flex: .6 1 0; }
.tf-hero__copy p,
.tf-hero__copy .elementor-widget-text-editor { color: var(--tf-n300); }
.tf-hero .tf-h-display .elementor-heading-title,
.tf-hero h1.tf-h-display { margin: 0; }

/* Vertical "Scroll" cue */
.tf-hero__scroll,
.elementor-element.tf-hero__scroll {
  position: absolute;
  right: 32px;
  top: 50%;
  z-index: 2;
  width: auto;
  margin: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  writing-mode: vertical-rl;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tf-n500);
  animation: tf-fadein 1s 1.6s both;
  pointer-events: none;
}
.tf-hero__scroll :is(.elementor-heading-title, p) {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tf-n500);
  writing-mode: vertical-rl;
}
.tf-hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--tf-accent), transparent);
  animation: tf-bounce 2s infinite;
}

/* Bottom-left caption */
.tf-hero__caption,
.elementor-element.tf-hero__caption {
  position: absolute;
  left: 32px;
  bottom: 20px;
  z-index: 2;
  width: auto;
  margin: 0;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b5b1a6;
}
.tf-hero__caption :is(.elementor-heading-title, p) { margin: 0; font-size: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; font-weight: 400; }

/* Film toggle (Button widget) */
.tf-hero__toggle,
.elementor-element.tf-hero__toggle {
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 3;
  width: auto;
  margin: 0;
}
.tf-hero__toggle:not(.elementor-widget),
.tf-hero__toggle .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(236, 235, 230, .25);
  border-radius: 99px;
  background-color: rgba(12, 12, 14, .6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--tf-text);
  font-family: var(--tf-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s;
}
.tf-hero__toggle:not(.elementor-widget):hover,
.tf-hero__toggle .elementor-button:hover { border-color: var(--tf-accent); color: var(--tf-text); background-color: rgba(12, 12, 14, .6); }

/* =========================================================================
   3. Header (HFE header template) — .tf-header, .tf-nav
   ========================================================================= */
/* HFE wraps the template in <header id="masthead">: that wrapper must be sticky. */
#masthead:has(.tf-header),
.tf-sticky-host {
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-bar #masthead:has(.tf-header),
.admin-bar .tf-sticky-host { top: 32px; }

.tf-header,
.e-con.tf-header {
  position: sticky;
  --position: sticky;
  top: 0;
  z-index: 40;
  --z-index: 40;
  background-color: rgba(12, 12, 14, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s, background-color .3s;
}
/* Padding: Elementor containers only through --padding-* (a boxed container applies them itself;
   a plain 'padding' on top doubled the block padding -> 138px header). Plain padding for raw HTML only. */
.tf-header:not(.e-con) { padding: 22px 32px; }
.e-con.tf-header { --padding-top: 22px; --padding-bottom: 22px; --padding-left: 32px; --padding-right: 32px; }
.tf-header > .e-con-inner { max-width: var(--tf-container); }
.tf-header.is-scrolled { background-color: rgba(12, 12, 14, .96); box-shadow: 0 1px 0 var(--tf-divider); }
.tf-header .tf-clock-label { color: var(--tf-text); }
#masthead:has(.tf-header) .tf-header { position: relative; --position: relative; }

/* Navigation menu (HFE Navigation Menu widget with class tf-nav) */
body .elementor-widget.tf-nav .hfe-nav-menu > li.menu-item > a.hfe-menu-item,
body .elementor-widget.tf-nav .menu-item a.hfe-menu-item {
  font-family: var(--tf-font);
  font-size: 13px;
  font-weight: 400;
  color: var(--tf-text);
  background-color: transparent;
  padding: 6px 0;
}
body .elementor-widget.tf-nav .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li.menu-item:not(:last-child) { margin-right: 28px; }
body .elementor-widget.tf-nav .menu-item a.hfe-menu-item:hover,
body .elementor-widget.tf-nav .menu-item a.hfe-menu-item:focus-visible,
body .elementor-widget.tf-nav .menu-item.current-menu-item > a.hfe-menu-item,
body .elementor-widget.tf-nav .menu-item.current-menu-ancestor > a.hfe-menu-item,
body .elementor-widget.tf-nav .menu-item a.hfe-menu-item[aria-current="page"] { color: var(--tf-accent); background-color: transparent; }
body .elementor-widget.tf-nav .hfe-nav-menu .sub-arrow { padding: 0 0 0 4px; font-size: 10px; opacity: .7; }
body .elementor-widget.tf-nav .hfe-nav-menu-layout:not(.hfe-pointer__framed) .menu-item.parent a.hfe-menu-item::before,
body .elementor-widget.tf-nav .hfe-nav-menu-layout:not(.hfe-pointer__framed) .menu-item.parent a.hfe-menu-item::after { display: none; }

/* Dropdown */
body .elementor-widget.tf-nav .sub-menu {
  min-width: 250px;
  padding: 10px 0;
  background-color: #111114f5;
  border: 0;
  border-bottom: 1px solid rgba(212, 167, 44, .25);
  border-radius: 0 0 var(--tf-radius-md) var(--tf-radius-md);
  box-shadow: 0 20px 25px rgba(0, 0, 0, .27);
}
body .elementor-widget.tf-nav .sub-menu a.hfe-sub-menu-item {
  font-size: 13px;
  color: var(--tf-n300);
  background-color: transparent;
  padding: 10px 18px;
}
body .elementor-widget.tf-nav .sub-menu a.hfe-sub-menu-item:hover,
body .elementor-widget.tf-nav .sub-menu .current-menu-item > a.hfe-sub-menu-item { color: var(--tf-accent); background-color: transparent; }

/* Hamburger + mobile panel (HFE breakpoint "Tablet" = 1024px recommended) */
body .elementor-widget.tf-nav .hfe-nav-menu__toggle {
  width: 38px;
  height: 38px;
  justify-content: center;
  border: 1px solid rgba(236, 235, 230, .2);
  border-radius: 50%;
  color: var(--tf-text);
  background: transparent;
}
body .elementor-widget.tf-nav .hfe-nav-menu-icon,
body .elementor-widget.tf-nav .hfe-nav-menu-icon svg { color: var(--tf-text); fill: var(--tf-text); font-size: 16px; width: 16px; height: 16px; }
body .elementor-widget.tf-nav nav.hfe-dropdown,
body .elementor-widget.tf-nav nav.hfe-dropdown-expandible {
  background-color: #111114f5;
  border-bottom: 1px solid rgba(212, 167, 44, .25);
  box-shadow: 0 20px 25px rgba(0, 0, 0, .27);
  padding: 20px 24px;
}
body .elementor-widget.tf-nav nav.hfe-dropdown li a.hfe-menu-item,
body .elementor-widget.tf-nav nav.hfe-dropdown li a.hfe-sub-menu-item,
body .elementor-widget.tf-nav nav.hfe-dropdown-expandible li a.hfe-menu-item,
body .elementor-widget.tf-nav nav.hfe-dropdown-expandible li a.hfe-sub-menu-item {
  display: block;
  padding: 13px 10px;
  font-size: 15px;
  color: var(--tf-text);
  background-color: transparent;
  border-bottom: 1px solid var(--tf-divider);
}
body .elementor-widget.tf-nav nav.hfe-dropdown .sub-menu { background: transparent; box-shadow: none; border: 0; padding: 0 0 0 12px; }

/* =========================================================================
   4. Footer (HFE footer template) — .tf-footer .tf-footer__grid .tf-footer__title .tf-footer__links .tf-footer__bottom
   ========================================================================= */
.tf-footer,
.e-con.tf-footer {
  background-color: var(--tf-footer);
  border-top: 1px solid var(--tf-divider);
  padding: 56px var(--tf-gutter) 28px;
  --padding-top: 56px;
  --padding-bottom: 28px;
  --padding-left: var(--tf-gutter);
  --padding-right: var(--tf-gutter);
  color: var(--tf-text);
}
/* 4-col grid 1.5fr/1fr/1fr/1fr (works on flex or grid containers) */
.tf-footer__grid:not(.e-con-boxed),
.tf-footer__grid.e-con-boxed > .e-con-inner {
  display: grid;
  --display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  --e-con-grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  --e-con-grid-template-rows: auto;
  grid-template-rows: auto;
  gap: 40px;
  --gap: 40px;
  --row-gap: 40px;
  --column-gap: 40px;
}
.e-con.tf-footer__grid { --padding-top: 0px; --padding-right: 0px; --padding-left: 0px; --padding-bottom: 40px; }
.tf-footer__grid > * { min-width: 0; }

.tf-footer__title,
.elementor-widget.tf-footer__title :is(.elementor-heading-title, p) {
  font-family: var(--tf-font);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tf-n600);
  margin: 0 0 14px;
}
.elementor-widget.tf-footer__title { margin-bottom: 0; }

.tf-footer__links,
.elementor-widget.tf-footer__links { font-size: 14px; }
.tf-footer__links :is(ul, ol),
.tf-footer__links .hfe-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.tf-footer__links li { margin: 0; padding: 0; }
.tf-footer__links p { margin: 0 0 8px; }
.tf-footer__links a,
body .elementor-widget.tf-footer__links .menu-item a.hfe-menu-item {
  color: var(--tf-text);
  font-size: 14px;
  padding: 0;
  background: transparent;
  transition: color .25s;
}
.tf-footer__links a:hover,
body .elementor-widget.tf-footer__links .menu-item a.hfe-menu-item:hover { color: var(--tf-accent); }
body .elementor-widget.tf-footer__links .hfe-nav-menu > li.menu-item:not(:last-child) { margin: 0; }
.tf-footer__links .tf-muted, .tf-footer__links span { color: var(--tf-n400); }

.tf-footer__bottom,
.e-con.tf-footer__bottom {
  display: flex;
  --display: flex;
  --flex-direction: row;
  flex-wrap: wrap;
  --flex-wrap: wrap;
  --flex-wrap-mobile: wrap;
  justify-content: space-between;
  --justify-content: space-between;
  align-items: center;
  --align-items: center;
  gap: 12px 18px;
  --gap: 12px 18px;
  --row-gap: 12px;
  --column-gap: 18px;
  font-size: 12px;
  color: var(--tf-n600);
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
}
.tf-footer__bottom :is(p, span, .elementor-heading-title) { margin: 0; font-size: 12px; color: var(--tf-n600); }
.tf-footer__bottom a { color: var(--tf-n600); }
.tf-footer__bottom a:hover { color: var(--tf-accent); }
.tf-footer__bottom :is(ul, .hfe-nav-menu) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
body .elementor-widget.tf-footer__bottom .menu-item a.hfe-menu-item { font-size: 12px; color: var(--tf-n600); padding: 0; background: transparent; }
body .elementor-widget.tf-footer__bottom .menu-item a.hfe-menu-item:hover { color: var(--tf-accent); }

/* =========================================================================
   5. Blog — [tf_posts] cards (.tf-posts, .tf-post-card--row/--grid/--feature)
   ========================================================================= */
.tf-posts { display: grid; gap: 28px; }
.tf-posts__filters { margin: 0 0 8px; }
.tf-posts__grid { display: grid; gap: 16px; }
.tf-posts__grid--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-posts__grid--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tf-posts__empty { margin: 0; }
.tf-post-card[hidden], .tf-posts [hidden] { display: none !important; }

.tf-post-card {
  position: relative;
  color: inherit;
  text-decoration: none;
  border-radius: var(--tf-radius-md);
}
.tf-post-card:hover, .tf-post-card:focus-visible { color: inherit; }
.tf-post-card__title {
  display: block;
  font-family: var(--tf-font);
  font-weight: 500;
  color: var(--tf-text);
  transition: color .3s;
}
.tf-post-card:hover .tf-post-card__title { color: var(--tf-accent-200); }
.tf-post-card__excerpt { display: block; font-size: 14px; line-height: 1.5; color: var(--tf-n400); }
.tf-post-card__kicker {
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tf-accent-300);
}
.tf-post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 30%, rgba(212, 167, 44, .22), transparent 60%), linear-gradient(135deg, #1c1608, #0c0c0e);
}

/* Row: square 200px image left (home "Insights") */
.tf-post-card--row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  background-color: var(--tf-surface);
  transition: transform .45s var(--tf-ease), box-shadow .45s;
}
.tf-post-card--row:hover { transform: translateY(-4px); box-shadow: var(--tf-shadow-md); }
.tf-post-card--row .tf-post-card__media { border-radius: var(--tf-radius-sm); }
.tf-post-card--row .tf-post-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.tf-post-card--row .tf-post-card__title { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }

/* Grid: no image, category + read time on top (design-1 home / "Keep reading") */
.tf-post-card--grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--tf-divider);
  border-radius: var(--tf-radius-lg);
  background-color: #000;
  transition: border-color .4s;
}
.tf-post-card--grid:hover { border-color: var(--tf-accent-700); }
.tf-post-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tf-accent);
}
.tf-post-card__time { color: var(--tf-n400); }
.tf-post-card--grid .tf-post-card__body { position: relative; z-index: 1; }
.tf-post-card--grid .tf-post-card__title {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.tf-post-card--grid .tf-post-card__excerpt { color: var(--tf-n300); }
/* Grid with image (insights "More notes" look) */
.tf-post-card--image .tf-post-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
  opacity: .55;
}
.tf-post-card--image .tf-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tf-post-card--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .95), rgba(0, 0, 0, .2));
}
.tf-post-card--image .tf-post-card__top,
.tf-post-card--image .tf-post-card__body { z-index: 2; }

/* Feature: first post of the list (21/9 image + text) */
.tf-post-card--feature { display: grid; gap: 28px; }
.tf-post-card--feature .tf-post-card__media { border: 1px solid var(--tf-divider); }
.tf-post-card--feature .tf-post-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  grid-template-areas: "kicker kicker" "title excerpt" "title more";
  gap: 14px 40px;
  align-items: start;
}
.tf-post-card--feature .tf-post-card__kicker { grid-area: kicker; }
.tf-post-card--feature .tf-post-card__title {
  grid-area: title;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.tf-post-card--feature .tf-post-card__excerpt { grid-area: excerpt; font-size: 16px; line-height: 1.6; }
.tf-post-card__more {
  grid-area: more;
  justify-self: start;
  font-size: 14px;
  color: var(--tf-text);
  border-bottom: 1px solid var(--tf-accent);
  padding-bottom: 2px;
  transition: color .3s;
}
.tf-post-card:hover .tf-post-card__more { color: var(--tf-accent); }

/* =========================================================================
   6. Article / archive templates + CTA + pagination
   ========================================================================= */
/* Site Kit templates are full width: undo Hello Elementor's boxed .site-main */
body .site-main.tf-article,
body .site-main.tf-archive-page,
body .site-main.tf-404 {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.tf-article__hero .tf-container,
.tf-archive-page__header .tf-container { max-width: var(--tf-container); }
/* h1 + double class: tf-base's h1.tf-h-xl { margin: 0 } (0,1,1) must not win */
.tf-article__title,
h1.tf-article__title,
.tf-article__title.tf-h-xl { max-width: 22ch; margin: 0 0 22px; }
.tf-article__dek { margin: 0 0 22px; }
.tf-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--tf-n500);
}
.tf-article__figure { margin-bottom: 64px; }
.tf-article__body { padding-bottom: 104px; }
.tf-article__tags { margin-top: 40px; max-width: 70ch; }
.tf-article__more-head {
  display: grid;
  grid-template-columns: minmax(0, .35fr) minmax(0, .65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.tf-article__more-head .tf-kicker { margin: 0; }
.tf-archive-page__header h1 { margin: 0; }
.tf-archive-page__desc { margin-top: 18px; }

/* CTA ("Have a market in mind?") */
.tf-cta { text-align: center; }
.tf-cta.tf-section:not(.e-con) { padding-top: 120px; padding-bottom: 120px; }
.tf-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--tf-gutter);
}
.tf-cta .tf-kicker { justify-content: center; }
.tf-cta__title {
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0 0 20px;
}
.tf-cta__text {
  font-size: 18px;
  line-height: 1.55;
  color: var(--tf-n400);
  max-width: 40ch;
  margin: 0 auto 30px;
}
.tf-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.tf-pagination { margin-top: 48px; }
.tf-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tf-pagination :is(a, span).page-numbers,
.tf-pagination .post-page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--tf-divider);
  border-radius: 99px;
  font-size: 14px;
  color: var(--tf-text);
}
.tf-pagination a.page-numbers:hover { border-color: var(--tf-accent); color: var(--tf-accent); }
.tf-pagination .current { border-color: var(--tf-accent); color: var(--tf-accent); }

/* 404 page section (Elementor page "404-page"): centred, min height 620 */
.tf-404-hero,
.e-con.tf-404-hero {
  min-height: 620px;
  --min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
}

/* =========================================================================
   7. Responsive
   ========================================================================= */
@media (min-width: 1500px) {
  .tf-hero, .e-con.tf-hero { height: 760px; --height: 760px; }
}

/* Elementor tablet */
@media (max-width: 1024px) {
  .admin-bar #masthead:has(.tf-header),
  .admin-bar .tf-sticky-host { top: 32px; }
}

@media (max-width: 1000px) {
  .tf-hero, .e-con.tf-hero { height: 650px; --height: 650px; }
  .tf-hero .tf-h-display .elementor-heading-title,
  .tf-hero h1.tf-h-display { font-size: clamp(48px, 8vw, 90px); }
  .tf-hero__copy,
  .e-con.tf-hero__copy {
    grid-template-columns: minmax(0, 1fr);
    --e-con-grid-template-columns: minmax(0, 1fr);
    --flex-direction: column;
    --align-items: flex-start;
    align-items: start;
    gap: 26px;
    --gap: 26px;
    --row-gap: 26px;
  }
  .e-con.tf-hero__copy.e-flex > :first-child,
  .e-con.tf-hero__copy.e-flex > :last-child { flex: 0 0 auto; width: 100%; }
  .tf-hero__copy > :last-child:not(:first-child) {
    display: flex;
    --display: flex;
    flex-direction: row;
    --flex-direction: row;
    align-items: center;
    --align-items: center;
    gap: 24px;
    --gap: 24px;
  }
  .tf-hero__copy > :last-child:not(:first-child) p { margin: 0; }

  .tf-footer__grid:not(.e-con-boxed),
  .tf-footer__grid.e-con-boxed > .e-con-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --e-con-grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    --gap: 28px;
  }
  .tf-posts__grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .tf-header:not(.e-con) { padding: 16px 24px; }
  .e-con.tf-header { --padding-top: 16px; --padding-bottom: 16px; --padding-left: 24px; --padding-right: 24px; }
  .tf-posts__grid--row { grid-template-columns: minmax(0, 1fr); }
  .tf-post-card--feature .tf-post-card__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "kicker" "title" "excerpt" "more";
  }
  .tf-article__more-head { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Elementor mobile */
@media (max-width: 782px) {
  .admin-bar #masthead:has(.tf-header),
  .admin-bar .tf-sticky-host { top: 46px; }
}
@media (max-width: 767px) {
  .tf-service-row {
    grid-template-columns: 26px minmax(0, 1fr) 32px;
    gap: 14px;
    padding: 26px 0;
  }
  .tf-service-row:hover { padding-left: 0; }
  .tf-service-row > :nth-child(3) { grid-column: 2; grid-row: 2; }
  .tf-service-row > :last-child { grid-column: 3; grid-row: 1; }
  .tf-service-row__arrow { width: 32px; height: 32px; }
}

@media (max-width: 600px) {
  .admin-bar #masthead:has(.tf-header),
  .admin-bar .tf-sticky-host { top: 0; }

  .tf-section:not(.e-con) { padding-top: 56px; padding-bottom: 56px; }
  .e-con.tf-section { --padding-top: 56px; --padding-bottom: 56px; }
  .tf-section--tight:not(.e-con) { padding-top: 48px; padding-bottom: 44px; }
  .e-con.tf-section.tf-section--tight { --padding-top: 48px; --padding-bottom: 44px; }
  .e-con.tf-section.tf-section--flush-top, .e-con.tf-section--flush-top { --padding-top: 0px; }
  .e-con.tf-section.tf-section--flush-bottom, .e-con.tf-section--flush-bottom { --padding-bottom: 0px; }
  .tf-section.tf-section--flush-top:not(.e-con) { padding-top: 0; }
  .tf-section.tf-section--flush-bottom:not(.e-con) { padding-bottom: 0; }

  .tf-header:not(.e-con) { padding: 14px 20px; }
  .e-con.tf-header { --padding-top: 14px; --padding-bottom: 14px; --padding-left: 20px; --padding-right: 20px; }
  .tf-header .tf-logo { gap: 9px; }
  .tf-header .tf-logo__word { font-size: 10px; letter-spacing: .12em; }
  .tf-header .tf-btn .elementor-button,
  .tf-header .tf-btn:not(.elementor-widget) { font-size: 11px; padding: 10px 13px; }

  .tf-hero, .e-con.tf-hero { height: 700px; --height: 700px; }
  .tf-hero .elementor-background-video-hosted,
  .tf-hero .elementor-background-video-container video { object-position: 60% center; }
  .e-con.tf-hero { background-position: 60% center; }
  .tf-hero__copy,
  .e-con.tf-hero__copy {
    padding: 0 20px 58px;
    --padding-left: 20px;
    --padding-right: 20px;
    --padding-bottom: 58px;
    gap: 25px;
    --gap: 25px;
    --row-gap: 25px;
  }
  .tf-hero .tf-h-display .elementor-heading-title,
  .tf-hero h1.tf-h-display { font-size: clamp(46px, 11vw, 68px); line-height: .98; }
  .tf-hero__copy > :last-child:not(:first-child) { display: block; --display: block; }
  .tf-hero__copy > :last-child:not(:first-child) p { max-width: 29ch; margin-bottom: 20px; font-size: 15px; }
  .tf-hero__scroll, .elementor-element.tf-hero__scroll { display: none; }
  .tf-hero__caption, .elementor-element.tf-hero__caption { left: 20px; font-size: 9px; }
  .tf-hero__toggle, .elementor-element.tf-hero__toggle { top: 20px; right: 20px; }
  .tf-hero__toggle .elementor-button,
  .tf-hero__toggle:not(.elementor-widget) { font-size: 10px; padding: 9px 12px; }

  .tf-footer__grid:not(.e-con-boxed),
  .tf-footer__grid.e-con-boxed > .e-con-inner {
    grid-template-columns: minmax(0, 1fr);
    --e-con-grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    --gap: 32px;
  }
  .tf-footer__grid > :first-child,
  .tf-footer__grid > .e-con-inner > :first-child { grid-column: 1 / -1; }

  .tf-media--21x9 { aspect-ratio: 16 / 10; }

  .tf-posts__grid--grid { grid-template-columns: minmax(0, 1fr); }
  .tf-post-card--row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px; }
  .tf-post-card--row .tf-post-card__title { font-size: 18px; }
  .tf-post-card--row .tf-post-card__excerpt { display: none; }
  .tf-post-card--grid { min-height: 240px; padding: 24px; }
  .tf-article__figure { margin-bottom: 40px; }
  .tf-article__body { padding-bottom: 64px; }
  .tf-cta.tf-section:not(.e-con) { padding-top: 80px; padding-bottom: 80px; }

  .tf-rings::before, .elementor-element.tf-rings::before { width: 610px; height: 610px; margin: -305px 0 0 -305px; }
  .tf-rings::after, .elementor-element.tf-rings::after { width: 410px; height: 410px; margin: -205px 0 0 -205px; }
}

@media (max-width: 440px) {
  .tf-header .tf-header__cta { display: none; }
}

/* Page hero (2b) responsive — placed after the .tf-hero rules above so it wins at equal specificity */
@media (min-width: 1500px) {
  .e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) { height: 620px; --height: 620px; }
}
@media (max-width: 1000px) {
  .e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) { height: 600px; --height: 600px; }
  :is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-h-display .elementor-heading-title { font-size: clamp(44px, 8vw, 80px); }
  :is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-hero__copy > :last-child:not(:first-child) { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .e-con:is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) { height: 620px; --height: 620px; }
  :is(.tf-hero--page, .tf-svc-hero, .tf-hero--short) .tf-h-display .elementor-heading-title { font-size: clamp(40px, 11vw, 56px); line-height: .98; }
}

/* Reduced motion: no film, no scroll bounce */
@media (prefers-reduced-motion: reduce) {
  .tf-hero .elementor-background-video-container { display: none !important; }
  .tf-hero__toggle, .elementor-element.tf-hero__toggle { display: none !important; }
  .tf-hero__scroll, .tf-hero__scroll::after { animation: none !important; }
  .tf-post-card--row:hover { transform: none; }
}
