/* ==========================================================================
   FlexiHera - Main Theme Stylesheet (Header, Mega-Menu, Buttons, Archives,
   Blog Sticky TOC, Products, Footer Watermark, Widgets & Responsive)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html[data-fh-smooth-scroll="true"] { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html[data-fh-smooth-scroll="true"] { scroll-behavior: auto; }
}

body.theme-flexihera {
  margin: 0;
  font-family: var(--fh-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fh-body);
  background-color: var(--fh-canvas);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

:where(.theme-flexihera) h1,
:where(.theme-flexihera) h2,
:where(.theme-flexihera) h3,
:where(.theme-flexihera) h4,
:where(.theme-flexihera) h5,
:where(.theme-flexihera) h6 {
  font-family: var(--fh-font-heading);
  color: var(--fh-heading);
  margin-top: 0;
  letter-spacing: -0.02em;
}

:where(.theme-flexihera) a { color: inherit; }

.fh-container,
.mte-container {
  width: 100%;
  max-width: var(--fh-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.fh-app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fh-main { flex: 1 0 auto; }

/* ---------- Signature Gradient Display Text ---------- */
.fh-gd-text,
.mte-gd-text {
  color: #FCFCFD;
  background: linear-gradient(92deg, #FCFCFD 40.34%, rgba(235, 235, 235, 0.78) 94.74%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.08em 0.04em 0.18em 0;
  margin-top: -0.08em;
  margin-bottom: -0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Signature Pill CTA Buttons (Circular clip-path hover) ---------- */
.fh-btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 22px;
  border-radius: var(--fh-radius-pill);
  font-family: var(--fh-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
  border: 1px solid var(--fh-primary);
}

.fh-btn-pill > * { position: relative; z-index: 2; }

.fh-btn-pill::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 1;
  border-radius: 50%;
  clip-path: circle(0% at 50% 100%);
  transition: clip-path 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fh-btn-pill:hover::before { clip-path: circle(80% at 50% 50%); }

.fh-btn-arrow {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.fh-btn-pill:hover .fh-btn-arrow { transform: rotate(42deg); }

.fh-btn-primary {
  background-color: var(--fh-primary);
  color: #FFFFFF !important;
  border-color: var(--fh-primary);
}
.fh-btn-primary::before { background-color: #000000; }
.fh-btn-primary:hover { border-color: #000000; color: #FFFFFF !important; }

.fh-btn-primary.fh-btn-white-hover::before { background-color: #FFFFFF; }
.fh-btn-primary.fh-btn-white-hover:hover { color: #110E15 !important; border-color: #FFFFFF; }

.fh-btn-outline {
  background: transparent;
  color: var(--fh-heading) !important;
  border-color: var(--fh-primary);
}
.fh-btn-outline::before { background-color: var(--fh-primary); }
.fh-btn-outline:hover { color: #FFFFFF !important; }

.fh-btn-outline-light {
  background: transparent;
  color: #FFFFFF !important;
  border-color: var(--fh-primary);
}
.fh-btn-outline-light::before { background-color: var(--fh-primary); }
.fh-btn-outline-light:hover { color: #FFFFFF !important; }

/* Circular 120px Showcase Button */
.fh-btn-circle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 124px;
  height: 124px;
  padding: 18px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid var(--fh-primary);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
}
.fh-btn-circle > * { position: relative; z-index: 2; }
.fh-btn-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fh-primary);
  z-index: 1;
  clip-path: circle(0% at 0% 100%);
  transition: clip-path 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fh-btn-circle:hover::before { clip-path: circle(145% at 0% 100%); }

/* ==========================================================================
   Header / Sticky Transparent-to-Obsidian Navbar & Mega-Menu
   ========================================================================== */
.fh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 98;
  min-height: var(--fh-header-height);
  padding: 12px 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

body.polycms-topbar-active .fh-header { top: 40px; }

.fh-header.is-sticky,
.fh-header.is-solid {
  background-color: var(--fh-ink);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.fh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fh-header .fh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FCFCFD;
  font-family: var(--fh-font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.fh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FCFCFD;
  font-family: var(--fh-font-heading);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.fh-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--fh-primary), var(--fh-primary-emphasis));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
}

.fh-brand img { max-height: 40px; width: auto; display: block; }

.fh-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.fh-nav__item { position: relative; }

.fh-nav__item.has-dropdown::after,
.fh-nav__item.has-megamenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  background: transparent;
  pointer-events: none;
  z-index: 115;
}

.fh-nav__item.has-dropdown:hover::after,
.fh-nav__item.has-dropdown:focus-within::after,
.fh-nav__item.has-megamenu:hover::after,
.fh-nav__item.has-megamenu:focus-within::after {
  pointer-events: auto;
}

.fh-header .fh-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(252, 252, 253, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.fh-header .fh-nav__link:hover,
.fh-header .fh-nav__link.active { color: var(--fh-primary); }

@media (max-width: 1380px) {
  .fh-header__inner { gap: 14px; }
  .fh-nav { gap: 18px; }
  .fh-header .fh-nav__link { font-size: 14px; }
  .fh-nav-cta { padding: 8px 16px; font-size: 14px; white-space: nowrap; }
}

.fh-nav__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.fh-nav__item--search {
  display: inline-flex;
  align-items: center;
}

.fh-nav__item--search .widget {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.fh-nav__item--search .widget-title {
  display: none !important;
}

/* Mega-Menu & Submenu Panel */
.fh-megamenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 780px;
  max-width: 90vw;
  overflow: visible;
  background: #FFFFFF;
  color: #110E15;
  border-radius: var(--fh-radius-card);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(17, 14, 21, 0.18);
  border: 1px solid rgba(18, 18, 18, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease 0.14s, transform 0.2s ease 0.14s, visibility 0.2s ease 0.14s;
  z-index: 120;
}

/* Invisible hover bridge sitting strictly below navbar links across full mega-menu width */
.fh-megamenu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

html.dark .fh-megamenu {
  background: #141722;
  color: #FCFCFD;
  border-color: rgba(255, 255, 255, 0.1);
}

.fh-megamenu--wide { width: 880px; }

.fh-nav__item:hover .fh-megamenu,
.fh-nav__item:focus-within .fh-megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease 0s, transform 0.18s ease 0s, visibility 0.18s ease 0s;
}

.fh-megamenu__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fh-megamenu__card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.fh-megamenu__card:hover,
.fh-megamenu__card.active {
  background: var(--fh-warm-surface);
}
html.dark .fh-megamenu__card:hover,
html.dark .fh-megamenu__card.active {
  background: rgba(255, 255, 255, 0.06);
}
.fh-megamenu__card.active strong {
  color: var(--fh-primary);
}

.fh-megamenu__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fh-primary-subtle);
  color: var(--fh-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 12px;
}

.fh-megamenu__card strong {
  display: block;
  font-family: var(--fh-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--fh-heading);
  margin-bottom: 2px;
}

.fh-megamenu__card small {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fh-muted);
}

.fh-megamenu__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--fh-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Simple & Multi-Level Flyout Dropdown for Custom User Menus */
.fh-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 10px;
  background: #FFFFFF;
  color: #110E15;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(17, 14, 21, 0.16);
  border: 1px solid rgba(18, 18, 18, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease 0.14s, transform 0.18s ease 0.14s, visibility 0.18s ease 0.14s;
  z-index: 120;
}

/* Invisible hover bridge sitting strictly below navbar links */
.fh-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.fh-nav > .fh-nav__item:last-child > .fh-dropdown {
  left: auto;
  right: 0;
}

html.dark .fh-dropdown {
  background: #141722;
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.fh-nav__item:hover > .fh-dropdown,
.fh-nav__item:focus-within > .fh-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.16s ease 0s, transform 0.16s ease 0s, visibility 0.16s ease 0s;
}

.fh-dropdown > li {
  position: relative;
  margin: 0;
  padding: 0;
}

.fh-dropdown .fh-nav__item {
  position: relative;
  width: 100%;
}

.fh-dropdown .fh-nav__item:hover,
.fh-dropdown .fh-nav__item:focus-within {
  z-index: 40;
}

.fh-header .fh-dropdown .fh-nav__link {
  color: #110E15;
  width: 100%;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.fh-header .fh-dropdown .fh-nav__link:hover,
.fh-header .fh-dropdown .fh-nav__link.active,
.fh-header .fh-dropdown .fh-nav__item:hover > .fh-nav__link {
  background: rgba(var(--fh-primary-rgb), 0.1);
  color: var(--fh-primary);
}

html.dark .fh-header .fh-dropdown .fh-nav__link {
  color: #E2E8F0;
}

html.dark .fh-header .fh-dropdown .fh-nav__link:hover,
html.dark .fh-header .fh-dropdown .fh-nav__link.active,
html.dark .fh-header .fh-dropdown .fh-nav__item:hover > .fh-nav__link {
  background: rgba(var(--fh-primary-rgb), 0.18);
  color: var(--fh-primary);
}

.fh-dropdown .fh-nav__link svg {
  transform: rotate(-90deg);
  margin-left: auto;
  opacity: 0.65;
  flex-shrink: 0;
}

/* 2nd / 3rd-level Nested Flyout Submenus (never overlap parent items) */
.fh-dropdown .fh-dropdown {
  top: -10px;
  left: calc(100% + 10px);
  transform: translateX(6px);
  z-index: 160;
}

.fh-dropdown .fh-dropdown::before {
  top: 0;
  bottom: 0;
  left: -14px;
  right: auto;
  width: 14px;
  height: auto;
}

.fh-nav > .fh-nav__item:last-child .fh-dropdown .fh-dropdown {
  left: auto;
  right: calc(100% + 10px);
  transform: translateX(-6px);
}

.fh-nav > .fh-nav__item:last-child .fh-dropdown .fh-dropdown::before {
  left: auto;
  right: -14px;
}

.fh-dropdown .fh-nav__item:hover > .fh-dropdown,
.fh-dropdown .fh-nav__item:focus-within > .fh-dropdown {
  transform: translateX(0);
}

/* Header Controls */
.fh-header__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fh-nav-cta {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #FFFFFF !important;
}
.fh-header.is-sticky .fh-nav-cta,
.fh-header.is-solid .fh-nav-cta {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
}
.fh-nav-cta::before { background: var(--fh-primary); }
.fh-header.is-sticky .fh-nav-cta::before,
.fh-header.is-solid .fh-nav-cta::before { background: #FFFFFF; }
.fh-header.is-sticky .fh-nav-cta:hover,
.fh-header.is-solid .fh-nav-cta:hover { color: #110E15 !important; border-color: #FFFFFF; }

.fh-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #FCFCFD;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.fh-icon-btn:hover { background: var(--fh-primary); border-color: var(--fh-primary); color: #FFFFFF; }

.fh-mobile-toggle { display: none; }

.fh-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--fh-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fh-obsidian);
  color: #FCFCFD;
  padding: 24px;
  overflow-y: auto;
  z-index: 97;
}
.fh-mobile-drawer.is-open { display: block; }
.fh-mobile-drawer a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #FCFCFD;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.fh-mobile-drawer a:hover,
.fh-mobile-drawer a.active { color: var(--fh-primary); }
.fh-mobile-sub { padding-left: 16px; }
.fh-mobile-item--search {
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fh-mobile-item--search .widget {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.fh-mobile-item--search .widget-title {
  display: none !important;
}
.fh-mobile-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fh-mobile-lang-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px !important;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px !important;
}
.fh-mobile-lang-item.active {
  border-color: var(--fh-primary) !important;
  background: rgba(var(--fh-primary-rgb), 0.14);
}

@media (max-width: 1024px) {
  .fh-nav { display: none; }
  .fh-mobile-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .fh-nav-cta { display: none; }
}

/* ==========================================================================
   Breadcrumb Bar (Above <main>)
   ========================================================================== */
.breadcrumb-bar {
  padding-top: calc(var(--fh-header-height) + 18px);
  padding-bottom: 14px;
  background: var(--fh-obsidian);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13.5px;
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.35);
}

.breadcrumb li a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb li a:hover { color: var(--fh-primary); }
.breadcrumb li span[aria-current="page"] { color: #FFFFFF; font-weight: 500; }

/* ==========================================================================
   Subpage Compact Dark Hero (for Archives, Posts, Products, Legal)
   ========================================================================== */
.fh-page-hero {
  position: relative;
  background: var(--fh-obsidian);
  color: #FCFCFD;
  padding: 130px 0 88px;
  overflow: hidden;
}

.breadcrumb-bar + main .fh-page-hero {
  padding-top: 64px;
}

.fh-page-hero--center { text-align: center; }

.fh-page-hero__title {
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 18px;
}
.fh-page-hero__title.fh-gd-text {
  margin-top: -0.08em;
  margin-bottom: 10px;
}

.fh-page-hero__lead {
  font-size: 18px;
  color: rgba(252, 252, 253, 0.76);
  max-width: 680px;
  margin: 0;
}
.fh-page-hero--center .fh-page-hero__lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Listing System (Grid / List Toggle + Cards)
   ========================================================================== */
.fh-band { padding: var(--fh-section-py) 0; }
.fh-band--compact { padding: 72px 0; }
.fh-band--warm { background: var(--fh-warm-surface); }
.fh-band--obsidian { background: var(--fh-obsidian); color: #FCFCFD; }

.fh-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.fh-view-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-pill);
  gap: 4px;
}

.fh-view-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--fh-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fh-view-btn.is-active,
.fh-view-btn:hover {
  background: var(--fh-primary);
  color: #FFFFFF;
}

.listing-container.is-grid {
  display: grid;
  grid-template-columns: repeat(var(--listing-columns, 3), minmax(0, 1fr));
  gap: 24px;
}

.listing-container.is-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.listing-container.is-list .listing-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 1024px) {
  .listing-container.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .listing-container.is-grid { grid-template-columns: 1fr; }
  .listing-container.is-list .listing-card { grid-template-columns: 1fr; }
}

/* ThemeTags Blog Card (.fh-blog-card / .listing-card) */
.fh-blog-card,
.listing-card {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.fh-blog-card:hover,
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fh-shadow-sm);
  border-color: rgba(var(--fh-primary-rgb), 0.35);
}

.fh-card-media {
  display: block;
  height: 220px;
  border-radius: var(--fh-radius-card);
  overflow: hidden;
  background: var(--fh-surface-alt);
  position: relative;
}

.fh-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.fh-blog-card:hover .fh-card-media img,
.listing-card:hover .fh-card-media img { transform: scale(1.08); }

.fh-card-no-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-muted);
  font-size: 13px;
}

.fh-badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--fh-radius-pill);
  background: var(--fh-primary-subtle);
  color: var(--fh-primary-emphasis);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.fh-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.fh-card-title a { text-decoration: none; transition: color 0.2s ease; }
.fh-card-title a:hover { color: var(--fh-primary); }

.fh-card-excerpt {
  margin: 0;
  font-size: 14.5px;
  color: var(--fh-muted);
  line-height: 1.6;
}

.fh-card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--fh-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fh-card-meta {
  font-size: 13px;
  color: var(--fh-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fh-circle-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--fh-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fh-heading);
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.fh-circle-arrow:hover {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: #FFFFFF;
  transform: rotate(42deg);
}

/* Featured Blog Split Card */
.fh-featured-post {
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
  box-shadow: var(--fh-shadow-sm);
}
.fh-featured-post__media { height: 340px; border-radius: var(--fh-radius-card); overflow: hidden; display: block; background: var(--fh-surface-alt); }
.fh-featured-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.fh-featured-post:hover .fh-featured-post__media img { transform: scale(1.05); }
.fh-featured-post h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.26; margin: 14px 0 14px; }
@media (max-width: 900px) { .fh-featured-post { grid-template-columns: 1fr; padding: 22px; } }

/* Editorial 8/4 Split + Single Post Sticky TOC 4/8 Split */
.fh-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.fh-toc-layout {
  display: grid;
  grid-template-columns: minmax(260px, 3.6fr) minmax(0, 8.4fr);
  gap: 40px;
  align-items: start;
}
.fh-toc-layout > aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.fh-toc-card {
  position: relative;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-card);
  padding: 28px;
  box-shadow: var(--fh-shadow-sm);
}

.fh-toc-card h3 { font-size: 18px; margin-bottom: 16px; }
.fh-toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fh-toc-list a {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fh-muted);
  text-decoration: none;
  padding-left: 12px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.fh-toc-list a:hover,
.fh-toc-list a.is-active {
  color: var(--fh-primary);
  border-left-color: var(--fh-primary);
  font-weight: 600;
}

.fh-post-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--fh-radius-card);
  margin-bottom: 32px;
}

.fh-prose { font-size: 16.5px; line-height: 1.78; color: var(--fh-body); }
.fh-prose h2 { font-size: 30px; margin: 36px 0 14px; }
.fh-prose h3 { font-size: 22px; margin: 28px 0 12px; }
.fh-prose img { max-width: 100%; height: auto; border-radius: var(--fh-radius-md); }
.fh-prose a { color: var(--fh-primary); }

@media (max-width: 1024px) {
  .fh-editorial-grid,
  .fh-toc-layout { grid-template-columns: 1fr; }
  .fh-toc-layout > aside,
  .fh-toc-card { position: static; }
}

/* Solutions / Product Horizontal Split Card & Detail Overlap */
.fh-product-split-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px) { .fh-product-split-card { grid-template-columns: 1fr; } }

.fh-price-current { font-family: var(--fh-font-heading); font-size: 20px; font-weight: 700; color: var(--fh-primary); }
.fh-price-strike { font-size: 14px; color: var(--fh-muted); text-decoration: line-through; margin-left: 8px; }

.fh-product-buy-card {
  position: relative;
  z-index: 5;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-card);
  padding: 28px;
  box-shadow: var(--fh-shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}

/* Graceful Broken-Image Fallback */
.fh-img-fallback {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(var(--fh-primary-rgb), 0.14), rgba(17, 14, 21, 0.06));
  color: var(--fh-muted);
  font-family: var(--fh-font-heading);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
}
html.dark .fh-img-fallback {
  background: linear-gradient(145deg, rgba(var(--fh-primary-rgb), 0.2), rgba(255, 255, 255, 0.04));
}

/* ==========================================================================
   Core Widgets Styling
   ========================================================================== */
.widget {
  padding: 24px;
  background: var(--fh-surface);
  border: 1px solid var(--fh-border-subtle);
  border-radius: var(--fh-radius-card);
  margin-bottom: 24px;
  box-shadow: var(--fh-shadow-sm);
}

.widget form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget input[type="search"],
.widget input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--fh-radius-pill);
  border: 1px solid var(--fh-border-strong);
  background: var(--fh-canvas);
  color: var(--fh-heading);
  font-size: 14px;
}
.widget button[type="submit"] {
  padding: 10px 18px;
  border-radius: var(--fh-radius-pill);
  border: none;
  background: var(--fh-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.widget button[type="submit"]:hover { background: var(--fh-primary-emphasis); }

.widget-title {
  font-family: var(--fh-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--fh-heading);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fh-border-subtle);
}

.widget-list { list-style: none; padding: 0; margin: 0; }
.widget-list li { padding: 9px 0; border-bottom: 1px solid var(--fh-border-subtle); }
.widget-list li:last-child { border-bottom: none; }
.widget-list li a { color: var(--fh-body); text-decoration: none; transition: color 0.2s ease; }
.widget-list li a:hover { color: var(--fh-primary); }
.widget .widget-meta,
.widget .count { color: var(--fh-muted); font-size: 12.5px; }
.widget .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.widget .tag-cloud a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--fh-radius-pill);
  background: var(--fh-surface-alt);
  border: 1px solid var(--fh-border-subtle);
  color: var(--fh-body);
  font-size: 13px !important;
  text-decoration: none;
  transition: all 0.2s ease;
}
.widget .tag-cloud a:hover {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: #FFFFFF;
}

/* Dark Mode High-Contrast Overrides for Core Sidebar Widgets */
html.dark .widget {
  background: var(--fh-surface);
  border-color: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
}
html.dark .widget-title {
  color: #FCFCFD;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
html.dark .widget-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html.dark .widget-list li a {
  color: #E2E8F0;
}
html.dark .widget-list li a:hover {
  color: var(--fh-primary);
}
html.dark .widget-products .widget-product-name {
  color: #F8FAFC !important;
}
html.dark .widget-products .widget-product-name:hover {
  color: var(--fh-primary) !important;
}
html.dark .widget-products .price-normal {
  color: #CBD5E1 !important;
}
html.dark .widget-products .price-old {
  color: #94A3B8 !important;
}
html.dark .widget-products .widget-product-image {
  background: #1C2030 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
html.dark .widget-products .widget-product-image > div {
  background: #1C2030 !important;
  color: #CBD5E1 !important;
}
html.dark .widget-blog-search .widget-search-form--default input[type="text"],
html.dark .widget-blog-search .widget-search-form--default input[type="search"],
html.dark .widget input[type="text"],
html.dark .widget input[type="search"] {
  background: #0F1320 !important;
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}
html.dark .widget input::placeholder {
  color: #94A3B8 !important;
}
html.dark .widget .widget-meta,
html.dark .widget .count,
html.dark .widget small {
  color: #94A3B8 !important;
}
html.dark .widget .tag-cloud a {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}
html.dark .widget .tag-cloud a:hover {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Monumental Obsidian Footer (#020202) with 138px Ghost Watermark
   ========================================================================== */
.fh-footer {
  position: relative;
  background: var(--fh-obsidian);
  color: #FCFCFD;
  padding: 96px 0 40px;
  overflow: hidden;
}

.fh-footer h1,
.fh-footer h2,
.fh-footer h3,
.fh-footer h4,
.fh-footer .fh-footer__heading,
.fh-footer .fh-footer__cta-title,
.fh-footer .fh-brand {
  color: #FFFFFF;
}

.fh-footer .widget {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 18px;
}

.fh-footer .widget-title {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.fh-footer .widget-list li {
  border-bottom: none;
  padding: 5px 0;
}

.fh-footer .widget-list li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.fh-footer .widget-list li a:hover {
  color: var(--fh-primary);
}

.fh-footer__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  padding-bottom: 56px;
}

.fh-footer__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding-right: 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.fh-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.fh-footer__heading {
  font-family: var(--fh-font-heading);
  font-size: 18px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0 0 20px;
  padding-bottom: 12px;
  position: relative;
}

.fh-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 1px;
  background: var(--fh-primary);
}

.fh-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.fh-footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.fh-footer__links a:hover { color: var(--fh-primary); }

.fh-footer__watermark {
  font-family: var(--fh-font-heading);
  font-size: clamp(3.5rem, 8.8vw, 8.625rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.04em;
  padding: 0.06em 0.04em 0.2em 0;
  margin-top: auto;
  margin-bottom: -0.2em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 20%, rgba(153, 153, 153, 0) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.fh-footer__right { display: flex; flex-direction: column; gap: 22px; }
.fh-footer__cta-title { font-size: 28px; font-weight: 600; color: #FFFFFF; margin: 0; line-height: 1.25; }
.fh-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.fh-footer__email { font-size: 18px; font-weight: 600; color: var(--fh-primary); text-decoration: none; }
.fh-footer__email:hover { text-decoration: underline; }

.fh-footer__offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.fh-office-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--fh-radius-card);
  padding: 18px;
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.fh-office-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--fh-beam-angle, 0deg), transparent 0deg, rgba(var(--fh-primary-rgb), 0.78) 65deg, transparent 150deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.fh-office-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--fh-primary-rgb), 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.fh-office-card:hover::before {
  opacity: 1;
  animation: fhBorderBeamSpin 6.5s linear infinite;
}
.fh-office-card__country {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fh-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 6px;
}
.fh-office-card__country svg { color: var(--fh-primary); flex-shrink: 0; }
.fh-office-card p { margin: 0 0 8px; font-size: 13px; color: rgba(255, 255, 255, 0.65); line-height: 1.5; }
.fh-office-card a { font-size: 13px; color: var(--fh-primary); text-decoration: none; }

.fh-hairline {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
  margin-bottom: 24px;
}

.fh-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 68px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
}

.fh-footer__bottom a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.fh-footer__bottom a:hover { color: var(--fh-primary); }
.footer-powered { margin-left: 12px; }
.footer-powered a { color: var(--fh-primary); font-weight: 500; }

.fh-footer__socials { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 1024px) {
  .fh-footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .fh-footer__left { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 36px; }
}
@media (max-width: 600px) {
  .fh-footer__offices { grid-template-columns: 1fr; }
}

/* Scroll to Top Floating Button */
.fh-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--fh-ink);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 90;
}
.fh-scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fh-scroll-top:hover { background: var(--fh-primary); border-color: var(--fh-primary); }

/* ==========================================================================
   FlexiHera Original Scroll & Motion Choreography (Theme Options Controlled)
   ========================================================================== */
@property --fh-beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes fhBorderBeamSpin {
  from { --fh-beam-angle: 0deg; }
  to { --fh-beam-angle: 360deg; }
}

@keyframes fhOrbitFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg) scale(1); }
  50% { transform: translate3d(0, -9px, 0) rotate(6deg) scale(0.93); }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-fh-animations="true"] .mte-hero__brand-mark {
    animation: fhOrbitFloat 14s ease-in-out infinite;
    will-change: transform;
  }

  /* Elements stay visible if JS hasn't hydrated; animated only after fh-motion-ready */
  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-clip {
    opacity: 0;
    clip-path: inset(-0.35em 100% -0.35em -0.1em);
    transform: translate3d(-3.5%, 0, 0);
    transition:
      opacity var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1)),
      clip-path calc(var(--fh-anim-duration, 720ms) * 1.15) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1)),
      transform var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1));
    will-change: opacity, clip-path, transform;
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-clip.is-visible {
    opacity: 1;
    clip-path: inset(-0.35em -0.1em -0.35em -0.1em);
    transform: translate3d(0, 0, 0);
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-clip.is-visible.is-clip-done {
    clip-path: none;
    transform: none;
    will-change: auto;
  }

  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-3d {
    opacity: 0;
    transform: perspective(720px) rotateX(-20deg) translate3d(0, var(--fh-anim-distance, 26px), 0);
    transform-origin: 50% 0%;
    transition:
      opacity var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1)),
      transform var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1));
    transition-delay: var(--fh-reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-3d.is-visible {
    opacity: 1;
    transform: perspective(720px) rotateX(0deg) translate3d(0, 0, 0);
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-anim-3d.is-visible.is-anim-done {
    transform: none;
    will-change: auto;
  }

  html.fh-motion-ready[data-fh-animations="true"] .fh-reveal {
    opacity: 0;
    transform: translate3d(0, var(--fh-anim-distance, 26px), 0);
    transition:
      opacity var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1)),
      transform var(--fh-anim-duration, 720ms) var(--fh-anim-easing, cubic-bezier(0.19, 1, 0.22, 1));
    transition-delay: var(--fh-reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-reveal.fh-reveal--left {
    transform: translate3d(calc(var(--fh-anim-distance, 26px) * -0.85), 0, 0);
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-reveal.fh-reveal--right {
    transform: translate3d(calc(var(--fh-anim-distance, 26px) * 0.85), 0, 0);
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  html.fh-motion-ready[data-fh-animations="true"] .fh-reveal.is-visible.is-anim-done {
    will-change: auto;
  }

  .fh-scrub-word {
    display: inline;
    transition: opacity 0.16s linear;
  }
  .mte-stats__statement.mte-gd-text .fh-scrub-word {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

html[data-fh-animations="false"] .fh-anim-clip,
html[data-fh-animations="false"] .fh-anim-3d,
html[data-fh-animations="false"] .fh-reveal {
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
  transition: none !important;
}

/* ==========================================================================
   ThemePortal Native Showcase Companion Styles (Inherits --fh-* DNA)
   ========================================================================== */
html.dark .fh-badge-pill {
  background: rgba(var(--fh-primary-rgb), 0.18);
  color: var(--fh-primary-hover);
}

.fh-btn-pill--sm {
  padding: 9px 16px;
  font-size: 13px;
}

.fh-tp-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.fh-page-hero--tp {
  overflow: visible;
  z-index: 25;
}

.fh-tp-hero-form {
  position: relative;
  z-index: 30;
  max-width: 840px;
  margin: 34px auto 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

#themes-catalog {
  scroll-margin-top: 96px;
}

body.polycms-topbar-active #themes-catalog {
  scroll-margin-top: 136px;
}

.fh-tp-hero-controls {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
}

.fh-tp-hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 44px;
  border-radius: var(--fh-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(252, 252, 253, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fh-tp-hero-search:focus-within {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 3px rgba(var(--fh-primary-rgb), 0.22);
  background: rgba(255, 255, 255, 0.11);
}

.fh-tp-hero-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #FCFCFD;
  font-family: var(--fh-font-body);
  font-size: 14px;
  outline: none;
}

.fh-tp-hero-input::placeholder {
  color: rgba(252, 252, 253, 0.56);
}

.fh-tp-dropdown {
  position: relative;
}

.fh-tp-dropdown.is-open {
  z-index: 60;
}

.fh-tp-dropdown__trigger {
  height: 44px;
  min-width: 132px;
  padding: 0 14px 0 16px;
  border-radius: var(--fh-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FCFCFD;
  font-family: var(--fh-font-body);
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fh-tp-dropdown__trigger:hover,
.fh-tp-dropdown__trigger:focus-visible,
.fh-tp-dropdown.is-open .fh-tp-dropdown__trigger {
  border-color: var(--fh-primary);
  box-shadow: 0 0 0 3px rgba(var(--fh-primary-rgb), 0.22);
  background: rgba(255, 255, 255, 0.12);
}

.fh-tp-dropdown__chevron {
  flex-shrink: 0;
  opacity: 0.78;
  transition: transform 0.2s ease;
}

.fh-tp-dropdown.is-open .fh-tp-dropdown__chevron {
  transform: rotate(180deg);
  color: var(--fh-primary);
  opacity: 1;
}

.fh-tp-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(14, 15, 24, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.fh-tp-dropdown.is-open .fh-tp-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.fh-tp-dropdown__option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px 12px;
  color: rgba(252, 252, 253, 0.86);
  font-family: var(--fh-font-body);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fh-tp-dropdown__option:hover,
.fh-tp-dropdown__option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  outline: none;
}

.fh-tp-dropdown__option.is-selected {
  background: rgba(var(--fh-primary-rgb), 0.18);
  color: #FFFFFF;
  font-weight: 600;
}

.fh-tp-dropdown__check {
  color: var(--fh-primary);
  opacity: 0;
  flex-shrink: 0;
}

.fh-tp-dropdown__option.is-selected .fh-tp-dropdown__check {
  opacity: 1;
}

.fh-tp-industry-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.fh-tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--fh-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(252, 252, 253, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fh-tp-pill:hover {
  border-color: rgba(var(--fh-primary-rgb), 0.7);
  color: #FFFFFF;
}

.fh-tp-pill.is-active {
  background: var(--fh-primary);
  border-color: var(--fh-primary);
  color: #FFFFFF;
}

.fh-tp-media-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--fh-radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.fh-tp-media-badge--scope {
  left: 12px;
  background: rgba(7, 7, 12, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.fh-tp-media-badge--price {
  right: 12px;
  background: var(--fh-primary);
}

.fh-tp-media-badge--free {
  right: 12px;
  background: #10b981;
}

.fh-tp-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fh-tp-mod-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--fh-radius-pill);
  background: var(--fh-surface-alt);
  border: 1px solid var(--fh-border-subtle);
  color: var(--fh-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.fh-tp-mod-tag.is-licensed {
  border-color: rgba(var(--fh-primary-rgb), 0.45);
  color: var(--fh-primary);
}

.fh-tp-mod-list {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
  border-top: 1px solid var(--fh-border-subtle);
}

.fh-tp-mod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--fh-border-subtle);
  transition: background-color 0.15s ease;
}

.fh-tp-mod-row:hover {
  background: var(--fh-surface-alt);
}

.fh-tp-mod-thumb {
  width: 52px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--fh-border-subtle);
  background: var(--fh-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.fh-tp-mod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fh-tp-mod-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--fh-muted);
}

.fh-tp-mod-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fh-tp-mod-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  line-height: 1.35;
}

.fh-tp-mod-name-link,
.fh-tp-mod-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fh-heading);
  text-decoration: none;
}

.fh-tp-mod-name-link:hover {
  color: var(--fh-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fh-tp-mod-licensed {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
}

.fh-tp-mod-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  font-size: 11.5px;
  color: var(--fh-muted);
}

.fh-tp-mod-ver {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--fh-border-subtle);
  background: var(--fh-surface-alt);
  color: var(--fh-heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
}

.fh-tp-mod-price-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fh-tp-mod-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fh-heading);
}

.fh-tp-mod-price-old {
  font-size: 11px;
  color: var(--fh-muted);
}

.fh-tp-mod-included {
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
}

.fh-tp-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-inline: 22px;
  border-left: 1px solid var(--fh-border-subtle);
  border-right: 1px solid var(--fh-border-subtle);
  flex: 1 1 auto;
}

.fh-tp-metric-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fh-muted);
  white-space: nowrap;
}

.fh-tp-metric-item svg {
  color: var(--fh-primary);
  opacity: 0.9;
  flex-shrink: 0;
}

.fh-tp-metric-item strong {
  font-family: var(--fh-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--fh-heading);
  font-variant-numeric: tabular-nums;
}

.fh-tp-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 32px;
  align-items: start;
}

.breadcrumb-bar + main .fh-page-hero--tp {
  padding: 52px 0 56px;
}

.fh-tp-catalog .listing-card.fh-reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 900px) {
  .fh-tp-hero-controls {
    grid-template-columns: 1fr;
  }
  .fh-tp-dropdown__trigger {
    width: 100%;
  }
  .fh-tp-dropdown__menu {
    left: 0;
    right: 0;
    min-width: 100%;
  }
  .fh-tp-inline-metrics {
    width: 100%;
    padding: 14px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--fh-border-subtle);
    gap: 10px 18px;
  }
  .fh-tp-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   macOS-Style Slim Scrollbar (Light & Dark Mode)
   ========================================================================== */
:root,
[data-theme="light"],
[data-bs-theme="light"],
.light,
.pf-scroll-light {
  --pf-scrollbar-size: 6px;
  --pf-scrollbar-radius: 9999px;
  --pf-scrollbar-track: transparent;
  --pf-scrollbar-thumb: rgba(15, 23, 42, 0.22);
  --pf-scrollbar-thumb-hover: rgba(15, 23, 42, 0.38);
  --pf-scrollbar-thumb-active: rgba(15, 23, 42, 0.54);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-bs-theme="light"]):not(.light) {
    --pf-scrollbar-thumb: rgba(226, 232, 240, 0.24);
    --pf-scrollbar-thumb-hover: rgba(226, 232, 240, 0.42);
    --pf-scrollbar-thumb-active: rgba(226, 232, 240, 0.58);
  }
}

[data-theme="dark"],
[data-bs-theme="dark"],
.dark,
.dark-mode,
.theme-dark,
body.dark-theme,
.pf-scroll-dark {
  --pf-scrollbar-track: transparent;
  --pf-scrollbar-thumb: rgba(226, 232, 240, 0.24);
  --pf-scrollbar-thumb-hover: rgba(226, 232, 240, 0.42);
  --pf-scrollbar-thumb-active: rgba(226, 232, 240, 0.58);
}

.pf-macos-scroll,
.pf-macos-scroll-root,
.pf-macos-scroll-root *,
body.theme-flexihera,
body.theme-flexihera .fh-mobile-drawer,
body.theme-flexihera .fh-megamenu,
body.theme-flexihera .fh-dropdown,
body.theme-flexihera .fh-prose pre,
body.theme-flexihera .fh-prose table,
body.theme-flexihera .fh-toc-list {
  scrollbar-width: thin;
  scrollbar-color: var(--pf-scrollbar-thumb) var(--pf-scrollbar-track);
}

.pf-macos-scroll::-webkit-scrollbar,
.pf-macos-scroll-root::-webkit-scrollbar,
.pf-macos-scroll-root *::-webkit-scrollbar,
body.theme-flexihera::-webkit-scrollbar,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar,
body.theme-flexihera .fh-megamenu::-webkit-scrollbar,
body.theme-flexihera .fh-dropdown::-webkit-scrollbar,
body.theme-flexihera .fh-prose pre::-webkit-scrollbar,
body.theme-flexihera .fh-prose table::-webkit-scrollbar,
body.theme-flexihera .fh-toc-list::-webkit-scrollbar {
  width: var(--pf-scrollbar-size);
  height: var(--pf-scrollbar-size);
}

.pf-macos-scroll::-webkit-scrollbar-track,
.pf-macos-scroll-root::-webkit-scrollbar-track,
.pf-macos-scroll-root *::-webkit-scrollbar-track,
body.theme-flexihera::-webkit-scrollbar-track,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar-track,
body.theme-flexihera .fh-megamenu::-webkit-scrollbar-track,
body.theme-flexihera .fh-dropdown::-webkit-scrollbar-track,
body.theme-flexihera .fh-prose pre::-webkit-scrollbar-track,
body.theme-flexihera .fh-prose table::-webkit-scrollbar-track,
body.theme-flexihera .fh-toc-list::-webkit-scrollbar-track {
  background: var(--pf-scrollbar-track);
}

.pf-macos-scroll::-webkit-scrollbar-thumb,
.pf-macos-scroll-root::-webkit-scrollbar-thumb,
.pf-macos-scroll-root *::-webkit-scrollbar-thumb,
body.theme-flexihera::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-megamenu::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-dropdown::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-prose pre::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-prose table::-webkit-scrollbar-thumb,
body.theme-flexihera .fh-toc-list::-webkit-scrollbar-thumb {
  background-color: var(--pf-scrollbar-thumb);
  border-radius: var(--pf-scrollbar-radius);
  border: 1px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s ease;
}

.pf-macos-scroll::-webkit-scrollbar-thumb:hover,
.pf-macos-scroll-root::-webkit-scrollbar-thumb:hover,
.pf-macos-scroll-root *::-webkit-scrollbar-thumb:hover,
body.theme-flexihera::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-megamenu::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-dropdown::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-prose pre::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-prose table::-webkit-scrollbar-thumb:hover,
body.theme-flexihera .fh-toc-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--pf-scrollbar-thumb-hover);
}

.pf-macos-scroll::-webkit-scrollbar-thumb:active,
.pf-macos-scroll-root::-webkit-scrollbar-thumb:active,
.pf-macos-scroll-root *::-webkit-scrollbar-thumb:active,
body.theme-flexihera::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-megamenu::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-dropdown::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-prose pre::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-prose table::-webkit-scrollbar-thumb:active,
body.theme-flexihera .fh-toc-list::-webkit-scrollbar-thumb:active {
  background-color: var(--pf-scrollbar-thumb-active);
}

.pf-macos-scroll::-webkit-scrollbar-corner,
.pf-macos-scroll-root::-webkit-scrollbar-corner,
.pf-macos-scroll-root *::-webkit-scrollbar-corner,
body.theme-flexihera::-webkit-scrollbar-corner,
body.theme-flexihera .fh-mobile-drawer::-webkit-scrollbar-corner {
  background: transparent;
}
