/*
Theme Name: Ask Thomas Theme Dashboard v5
Theme URI: https://heathrow-gatwick.com/
Author: Heathrow-Gatwick
Description: Heathrow.com-inspired travel assistant theme for Ask Thomas.
Version: 5.22.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ask-thomas-theme

=====================================================================
  HEATHROW-GATWICK THEME STYLESHEET
  Full replacement file

  PURPOSE
  - Consolidates the current theme stylesheet into a cleaner structure.
  - Removes conflicting hero overrides that were breaking alignment.
  - Preserves the visual language of the existing site.
  - Keeps section naming stable so templates and JS continue to work.
  - Fixes oversized Top Picks overlay titles caused by global
    [class$="-title"] !important rules injected elsewhere.

  IMPORTANT
  - Replace the entire existing style.css with this file.
  - This assumes hg-components.css is still enqueued separately.
  - Clear WP Fastest Cache and browser cache after upload.
=====================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   01. DESIGN TOKENS
===================================================================== */
:root {
  --hg-purple: #552583;
  --hg-purple-deep: #3d1a60;
  --hg-purple-light: #7b4fa8;
  --hg-purple-wash: #f4eef9;
  --hg-gold: #c9a84c;

  --hg-bg: #f5f5f5;
  --hg-surface: #ffffff;
  --hg-text: #1a1a2e;
  --hg-muted: #5e6577;
  --hg-border: #e4e4e8;
  --hg-success: #0d7a3e;

  --hg-radius: 16px;
  --hg-radius-sm: 10px;
  --hg-radius-pill: 999px;

  --hg-shadow: 0 2px 20px rgba(85,37,131,.06);
  --hg-shadow-lg: 0 12px 48px rgba(85,37,131,.10);

  --hg-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --hg-container: 1240px;
  --hg-transition: .22s cubic-bezier(.4,0,.2,1);

  /* Legacy / stage tokens preserved for compatibility. */
  --hg-color-primary:        #1a6b6e;
  --hg-color-primary-hover:  #145558;
  --hg-color-accent:         #c4722a;
  --hg-color-text:           #1c1c1e;
  --hg-color-text-muted:     #6b6b6b;
  --hg-color-surface:        #f8f7f5;
  --hg-color-border:         #e2e0dc;
  --hg-color-white:          #ffffff;
  --hg-space-section:        5rem;
  --hg-space-section-mobile: 3rem;
  --hg-space-card-gap:       1.5rem;
  --hg-radius-card:          6px;
  --hg-transition-base:      150ms ease;
  --hg-font-body:            'Plus Jakarta Sans', system-ui, sans-serif;
  --hg-font-display:         'Plus Jakarta Sans', system-ui, sans-serif;
}

/* =====================================================================
   02. GLOBAL RESET + BASE
===================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--hg-font);
  background: var(--hg-bg);
  color: var(--hg-text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--hg-purple);
  text-decoration: none;
  transition: color var(--hg-transition);
}

a:hover {
  color: var(--hg-purple-deep);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button { font-family: inherit; }

/* =====================================================================
   03. LAYOUT CONTAINER
===================================================================== */
.hg-container {
  width: min(var(--hg-container), calc(100% - 40px));
  margin: 0 auto;
}

/* =====================================================================
   04. HEADER
===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--hg-purple);
  color: #fff;
}

.hg-top-bar {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.hg-top-bar a {
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

.hg-top-bar a:hover {
  color: #fff;
  text-decoration: none;
}

.hg-nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.site-branding a {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.03em;
  color: #fff !important;
  text-decoration: none !important;
}

.site-branding span { color: var(--hg-gold); }

.hg-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.hg-nav a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--hg-radius-sm);
  transition: all var(--hg-transition);
}

.hg-nav a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.hg-nav-cta {
  background: var(--hg-gold) !important;
  color: var(--hg-purple-deep) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: var(--hg-radius-pill) !important;
}

.hg-nav-cta:hover { background: #d4b45a !important; }

/* =====================================================================
   05. HERO FOUNDATION
===================================================================== */
.hg-hero {
  position: relative;
  background: linear-gradient(135deg, var(--hg-purple-deep) 0%, var(--hg-purple) 40%, #6b3fa0 100%);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: var(--hg-hero-height, 520px);
  padding: 40px 0;
  isolation: isolate;
}

.hg-hero.has-banner { background: none; }

.hg-hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hg-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hg-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61,26,96,var(--hg-overlay-alpha,.75)) 0%,
    rgba(85,37,131,calc(var(--hg-overlay-alpha,.75) - .07)) 40%,
    rgba(107,63,160,calc(var(--hg-overlay-alpha,.75) - .14)) 100%
  );
}

.hg-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hg-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero typography and alignment */
.hg-hero-top {
  margin-bottom: 22px;
  text-align: center;
}

.hg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: var(--hg-radius-pill);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hg-hero-title-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
}

.hg-hero-title-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(201,168,76,.20) 0%, rgba(201,168,76,.08) 38%, transparent 72%);
  filter: blur(18px);
  animation: hg-thomas-glow 5.6s ease-in-out infinite;
}

.hg-hero-icon,
.hg-section-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hg-hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #f2d349;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: filter .25s;
}

.hg-hero-icon img,
.hg-section-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hg-hero-title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  margin: 0;
  font-weight: 500;
  letter-spacing: -.03em;
  color: #fff !important;
  position: relative;
  z-index: 1;
}

.hg-hero-title em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-weight: 800;
  color: var(--hg-gold);
}

.hg-hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.84);
}

/* Live meta strip */
.hg-meta-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px auto 20px;
  flex-wrap: wrap;
  opacity: .92;
}

.hg-meta-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

.hg-meta-bar__sep {
  color: rgba(255,255,255,.18);
  font-size: 12px;
}

.hg-meta-bar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,.5);
  animation: hg-pulse 2.4s ease-in-out infinite;
}

/* Gradient hero variant */
.hg-hero--gradient {
  background:
    radial-gradient(circle at 18% 22%, rgba(123,79,168,.20) 0%, transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(201,168,76,.08) 0%, transparent 22%),
    radial-gradient(circle at 62% 72%, rgba(85,37,131,.18) 0%, transparent 30%),
    linear-gradient(135deg, #170d38 0%, #24124b 32%, #34185a 68%, #241249 100%) !important;
  min-height: 500px;
}

.hg-hero--gradient::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  display: block !important;
  background:
    radial-gradient(circle at 20% 30%, rgba(132,92,255,.20) 0%, transparent 26%),
    radial-gradient(circle at 72% 24%, rgba(201,168,76,.10) 0%, transparent 18%),
    radial-gradient(circle at 68% 72%, rgba(93,63,211,.18) 0%, transparent 24%),
    radial-gradient(circle at 35% 78%, rgba(255,255,255,.05) 0%, transparent 16%);
  filter: blur(34px);
  opacity: .95;
  transform: translate3d(0,0,0) scale(1.05);
  animation: hg-aurora-drift 28s ease-in-out infinite alternate;
}

.hg-hero--gradient::after {
  content: '';
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 32%, rgba(255,255,255,.06) 0%, transparent 14%),
    radial-gradient(circle at 12% 68%, rgba(201,168,76,.08) 0%, transparent 18%),
    radial-gradient(circle at 52% 50%, rgba(123,79,168,.14) 0%, transparent 28%);
  filter: blur(46px);
  opacity: .8;
  transform: translate3d(0,0,0);
  animation: hg-aurora-drift-2 36s ease-in-out infinite alternate;
}

.hg-hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: .42;
  transform: translate3d(0,0,0);
  animation: hg-skyline-float 18s ease-in-out infinite alternate;
}

.hg-hero-skyline svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .92;
}

.hg-hero-skyline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #1a0f3e);
}

/* =====================================================================
   06. ASK THOMAS / HERO SEARCH BOARD
===================================================================== */
.hg-ask-panel {
  background: var(--hg-surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--hg-shadow-lg);
  border: 1px solid rgba(255,255,255,.2);
}

.hg-ask-panel .ask-thomas-shell {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hg-ask-panel .ask-thomas-shell h1,
.hg-ask-panel .ask-thomas-shell h2 {
  font-size: 20px;
  color: var(--hg-text);
}

.hg-ask-panel .ask-thomas-response { border-radius: var(--hg-radius); }

.hg-ask-panel .ask-thomas-response,
.hg-ask-panel .ask-thomas-answer,
.hg-ask-panel .ask-thomas-help,
.hg-ask-panel .ask-thomas-intro,
.hg-ask-panel .ask-thomas-response * { color: var(--hg-text) !important; }

.hg-ask-panel .ask-thomas-help { color: #fff !important; }
.hg-ask-panel .ask-thomas-quick { color: var(--hg-text) !important; }
.hg-ask-panel > .ask-thomas-shell > .ask-thomas-actions { display: none; }
.hg-ask-panel .ask-thomas-typing-bubble { background: #f4eef9; border-color: #c9b8e8; }
.hg-ask-panel .ask-thomas-typing-avatar { background: var(--hg-purple); }

/* Compact chip-only panel under the search board */
.hg-ask-panel--compact {
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hg-ask-panel--compact .hg-chips { margin-top: 0; }

.hg-ask-panel--compact .hg-hero-note {
  margin-top: 12px;
  color: rgba(255,255,255,.76);
}

/* Prompt chips */
.hg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  transition: opacity .2s ease;
}

.hg-chip {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--hg-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--hg-transition);
}

.hg-chip:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}

.hg-hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--hg-muted);
}

/* Ask Thomas hero shortcode context */
.hg-hero-shortcode { margin-top: 28px; }

.hg-hero-shortcode .ask-thomas-intro {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.88) !important;
  margin-bottom: 10px;
}

.hg-hero-shortcode .ask-thomas-form input[type=text] {
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.3);
  color: #18212b;
}

.hg-hero-shortcode .ask-thomas-form input[type=text]::placeholder { color: #7a8691; }

.hg-hero-shortcode .ask-thomas-form button {
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  font-weight: 800;
}

.hg-hero-shortcode .ask-thomas-form button:hover { background: #b8952f; }

.hg-hero-shortcode .ask-thomas-form button:disabled {
  background: rgba(201,168,76,.5);
  color: rgba(61,26,96,.7);
}

.hg-hero-shortcode .ask-thomas-quick {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.hg-hero-shortcode .ask-thomas-quick:hover { background: rgba(255,255,255,.2); }

.hg-hero-shortcode .ask-thomas-response {
  background: rgba(255,255,255,.97);
  border-color: rgba(255,255,255,.3);
  color: #18212b;
  margin-top: 18px;
}

.hg-hero-shortcode .ask-thomas-typing { color: var(--hg-purple); }
.hg-hero-shortcode .ask-thomas-disclaimer { color: #8a9099; }

/* Legacy visual intent tabs */
.hg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.hg-tab {
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  padding: 9px 18px;
  border-radius: var(--hg-radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--hg-transition);
}

.hg-tab:hover { background: rgba(255,255,255,.12); color: #fff; }

.hg-tab.is-active {
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  border-color: var(--hg-gold);
}

/* Hero search board */
.hg-tw-board {
  --tw-bg:#3d1a60;
  --tw-tab:#c9a84c;
  --tw-text:#ffffff;
  background: var(--tw-bg);
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--hg-shadow-lg);
  border: 1px solid rgba(255,255,255,.2);
  width: 100%;
}

.hg-tw-board--search {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: #3b1d63;
  backdrop-filter: blur(4px);
  box-shadow:
    0 18px 44px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.04) inset;
}

.hg-tw-topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 20px 0 4px;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.hg-tw-board--search .hg-tw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px 13px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
}

.hg-tw-tabs { display: flex; align-items: stretch; gap: 0; }

.hg-tw-board--search .hg-tw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hg-tw-tab {
  padding: 16px 20px 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--hg-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color var(--hg-transition), border-color var(--hg-transition);
  white-space: nowrap;
  line-height: 1;
}

.hg-tw-tab:hover { color: rgba(255,255,255,.85); }

.hg-tw-tab.is-active {
  color: var(--tw-text);
  font-weight: 700;
  border-bottom-color: var(--tw-tab);
}

.hg-tw-board--search .hg-tw-tab {
  position: relative;
  padding: 0 4px 2px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.hg-tw-board--search .hg-tw-tab:hover { color: rgba(255,255,255,.92); }

.hg-tw-board--search .hg-tw-tab.is-active {
  color: #fff;
  font-weight: 700;
}

.hg-tw-board--search .hg-tw-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 3px;
  border-radius: 999px;
  background: var(--hg-gold);
  box-shadow: 0 0 14px rgba(201,168,76,.45);
}

.hg-tw-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.hg-tw-board--search .hg-tw-info {
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hg-tw-city {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hg-tw-sep { color: rgba(255,255,255,.2); font-weight: 300; }

.hg-tw-clock {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  letter-spacing: .02em;
}

.hg-tw-temp {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}

.hg-tw-board--search .hg-tw-clock,
.hg-tw-board--search .hg-tw-temp {
  color: #fff;
  letter-spacing: .08em;
}

.hg-tw-weather-icon { display: flex; align-items: center; color: rgba(255,255,255,.7); }

/* Search board layout */
.hg-tw-search-shell {
  display: grid;
  grid-template-columns: 352px minmax(0,1fr);
  background: #ece9ea;
}

.hg-tw-search-left {
  border-right: 1px solid #d8d1d8;
  padding: 16px 18px;
  display: flex;
  align-items: center;
}

.hg-tw-search-right { padding: 12px 14px; }

.hg-tw-search-link {
  width: 100%;
  min-height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 46px 0 18px;
  border-radius: 16px;
  background: var(--hg-gold);
  color: #2f1656;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}

.hg-tw-search-link span {
  display: block;
  width: 100%;
  text-align: center;
}

.hg-tw-search-link svg {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
}

.hg-tw-search-link:hover {
  color: #2f1656;
  filter: brightness(1.02);
}

.hg-tw-query-form { margin: 0; }

.hg-tw-query-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 16px;
  border: 1px solid #d4ced4;
  border-radius: 999px;
  background: #f8f7f6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.hg-tw-query-inner:focus-within {
  border-color: var(--hg-purple);
  box-shadow: 0 0 0 3px rgba(85,37,131,.10);
}

.hg-tw-query-icon { color: #7a7380; display: inline-flex; align-items: center; }

.hg-tw-query-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #6d6672;
  font-size: 14px;
}

.hg-tw-query-input::placeholder { color: #6d6672; opacity: 1; }

.hg-tw-query-submit {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: var(--hg-gold);
  color: #2f1656;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 22px;
  cursor: pointer;
  min-height: 48px !important;
  box-shadow: none !important;
}

.hg-tw-query-submit:hover { filter: brightness(1.02); }
.hg-tw-query-submit:disabled { opacity: .65; cursor: default; }

/* Legacy transfer board rules kept for compatibility with other templates */
.hg-tw-panel { display: none; padding: 18px 20px 20px; }
.hg-tw-panel.is-active { display: block; }

.hg-tw-form {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
}

.hg-tw-field-wrap {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  border: 2px solid var(--hg-border);
  border-right: none;
  background: #fff;
}

.hg-tw-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: transparent;
}

.hg-tw-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--hg-muted);
  padding: 10px 16px 2px;
  pointer-events: none;
}

.hg-tw-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 2px 16px 10px;
  font-family: var(--hg-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-text);
  background: transparent;
  cursor: pointer;
  width: 100%;
  appearance: auto;
}

.hg-tw-input:focus { background: #fdfaff; }

.hg-tw-swap {
  flex: 0 0 auto;
  width: 44px;
  background: transparent;
  border: none;
  border-left: 1.5px solid var(--hg-border);
  border-right: 1.5px solid var(--hg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hg-purple-light);
  cursor: pointer;
  transition: background var(--hg-transition), color var(--hg-transition);
}

.hg-tw-swap svg { transition: transform .3s; }

.hg-tw-swap:hover {
  background: var(--hg-purple-wash);
  color: var(--hg-purple);
}

.hg-tw-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border: none;
  border-radius: 0 16px 16px 0;
  background: var(--tw-tab);
  color: var(--hg-purple-deep);
  font-family: var(--hg-font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: filter var(--hg-transition), transform var(--hg-transition);
  flex-shrink: 0;
  min-height: 64px;
  align-self: stretch;
  margin-top: 0;
}

.hg-tw-cta:hover {
  filter: brightness(1.07);
  transform: translateX(1px);
  color: var(--hg-purple-deep);
  text-decoration: none;
}

.hg-tw-cta svg { opacity: .75; flex-shrink: 0; }

.hg-tw-badge {
  background: rgba(0,0,0,.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--hg-radius-pill);
  white-space: nowrap;
  letter-spacing: .02em;
}

.hg-tw-placeholder-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hg-tw-placeholder-note {
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.hg-tw-placeholder-row .hg-tw-cta {
  border-radius: 16px;
  min-height: 52px;
  padding: 0 22px;
}

.hg-tw-response {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(85,37,131,.12);
  background: rgba(255,255,255,.88);
  color: #1b1730;
}

.hg-tw-error {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(198,40,40,.12);
  color: #8f2222;
  border: 1px solid rgba(198,40,40,.18);
  font-size: 14px;
}

/* Ask Thomas fused input style */
.hg-ask-panel .ask-thomas-form,
.hg-hero-shortcode .ask-thomas-form {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
  align-items: stretch;
  background: rgba(255,255,255,.97);
  border: 2px solid var(--hg-border);
  border-radius: var(--hg-radius-pill);
  overflow: hidden;
  padding: 0;
  transition: border-color var(--hg-transition), box-shadow var(--hg-transition);
}

.hg-ask-panel .ask-thomas-form:focus-within,
.hg-hero-shortcode .ask-thomas-form:focus-within {
  border-color: var(--hg-purple);
  box-shadow: 0 0 0 3px rgba(85,37,131,.12);
}

.hg-ask-panel .ask-thomas-form input[type="text"],
.hg-hero-shortcode .ask-thomas-form input[type="text"] {
  flex: 1 1 0;
  min-width: 0;
  min-height: 54px;
  padding: 0 6px 0 20px;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 15px;
  font-family: var(--hg-font);
  color: var(--hg-text);
  caret-color: var(--hg-purple);
}

.hg-ask-panel .ask-thomas-form input[type="text"]::placeholder,
.hg-hero-shortcode .ask-thomas-form input[type="text"]::placeholder {
  color: #9a9aaa;
  font-weight: 400;
  font-size: 14px;
}

.hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn,
.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn,
.hg-ask-panel .ask-thomas-form button[type="submit"],
.hg-hero-shortcode .ask-thomas-form button[type="submit"],
.ask-thomas-shell--fallback .ask-thomas-form button.ask-thomas-submit-btn {
  flex-shrink: 0;
  min-height: 54px;
  padding: 0 20px !important;
  margin: 4px 4px 4px 0;
  border: none !important;
  border-radius: var(--hg-radius-pill) !important;
  background: var(--hg-purple) !important;
  color: #fff !important;
  font-family: var(--hg-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--hg-transition), transform var(--hg-transition);
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 7px;
}

.hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn:hover,
.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn:hover,
.hg-ask-panel .ask-thomas-form button[type="submit"]:hover,
.hg-hero-shortcode .ask-thomas-form button[type="submit"]:hover {
  background: var(--hg-purple-deep) !important;
  transform: none;
}

.hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn:disabled,
.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn:disabled,
.hg-ask-panel .ask-thomas-form button[type="submit"]:disabled,
.hg-hero-shortcode .ask-thomas-form button[type="submit"]:disabled {
  background: rgba(201,168,76,.45) !important;
  color: rgba(61,26,96,.65) !important;
}

.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn,
.hg-hero-shortcode .ask-thomas-form button[type="submit"] {
  background: var(--hg-gold) !important;
  color: var(--hg-purple-deep) !important;
  font-weight: 800 !important;
}

.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn:hover,
.hg-hero-shortcode .ask-thomas-form button[type="submit"]:hover {
  background: #b8952f !important;
}

.hg-ask-panel .ask-thomas-intro,
.ask-thomas-shell--fallback .ask-thomas-intro {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--hg-text) !important;
  margin-bottom: 10px;
}

.ask-thomas-shell--fallback { display: grid; gap: 12px; }

.ask-thomas-shell--fallback .ask-thomas-help {
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.ask-thomas-shell--fallback .ask-thomas-error {
  background: rgba(198,40,40,.12);
  color: #ffd7d7;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}

.ask-thomas-shell--fallback .ask-thomas-response[hidden] { display: none !important; }
.ask-thomas-shell--fallback .ask-thomas-answer p { margin: 0; }

/* =====================================================================
   07. SHARED SECTIONS / CARDS / GRIDS
===================================================================== */
.hg-section { padding: 72px 0; }
.hg-section-alt { background: var(--hg-surface); }
.hg-section-purple { background: var(--hg-purple); color: #fff; }
.hg-section-purple .hg-section-sub { color: rgba(255,255,255,.7); }

.hg-section-head {
  margin-bottom: 36px;
  max-width: 620px;
}

.hg-section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hg-section-sub {
  font-size: 17px;
  color: var(--hg-muted);
  margin: 0;
  line-height: 1.6;
}

.hg-section-head.has-icon {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 980px;
}

.hg-section-head-text,
.hg-section-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hg-section-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}

.hg-section-header-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 980px;
}

.hg-card {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 28px;
  box-shadow: var(--hg-shadow);
  transition: all var(--hg-transition);
}

.hg-card:hover {
  box-shadow: var(--hg-shadow-lg);
  transform: translateY(-2px);
}

.hg-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.hg-card p {
  margin: 0;
  color: var(--hg-muted);
  line-height: 1.6;
}

.hg-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--hg-purple);
}

.hg-card-link:hover {
  color: var(--hg-purple-deep);
  text-decoration: none;
}

.hg-card-link::after {
  content: '\2192';
  transition: transform var(--hg-transition);
}

.hg-card-link:hover::after { transform: translateX(4px); }

.hg-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--hg-radius-pill);
  background: var(--hg-purple-wash);
  color: var(--hg-purple);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hg-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hg-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =====================================================================
   08. QUICK STRIP / VALUE STRIP / POPULAR / STEPS
===================================================================== */
.hg-quick-strip {
  background: var(--hg-surface);
  border-bottom: 1px solid var(--hg-border);
  padding: 0;
  margin-top: -32px;
  position: relative;
  z-index: 10;
}

.hg-quick-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.hg-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  text-align: center;
  border-right: 1px solid var(--hg-border);
  cursor: pointer;
  transition: all var(--hg-transition);
  color: var(--hg-text);
  text-decoration: none !important;
}

.hg-quick-item:last-child { border-right: 0; }

.hg-quick-item:hover {
  background: var(--hg-purple-wash);
  transform: translateY(-2px);
}

.hg-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hg-purple-wash);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--hg-purple);
  will-change: transform;
  transform-origin: center center;
}

.hg-quick-item:hover .hg-quick-icon {
  animation: at-pulse .55s cubic-bezier(.4,0,.2,1) forwards;
  background: var(--hg-purple);
  color: #fff;
}

.hg-quick-item strong {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hg-quick-item span {
  font-size: 12px;
  color: var(--hg-muted);
  line-height: 1.4;
}

.hg-funnel-card {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--hg-shadow);
}

.hg-funnel-top { padding: 28px 28px 0; }
.hg-funnel-embed { padding: 0 28px 28px; }

.hg-funnel-embed .atf-wrap {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hg-funnel-embed .atf-card { border-radius: var(--hg-radius-sm); }
.hg-funnel-embed .atf-btn { border-radius: var(--hg-radius-sm); background: var(--hg-purple); }

.hg-value-strip {
  padding: 48px 0;
  background: var(--hg-purple-deep);
  color: #fff;
}

.hg-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.hg-value-item { text-align: center; }

.hg-value-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.hg-value-item span {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

.hg-popular-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 20px 24px;
  cursor: pointer;
  transition: all var(--hg-transition);
  width: 100%;
  text-align: left;
  font-family: var(--hg-font);
}

.hg-popular-card:hover {
  border-color: var(--hg-purple);
  box-shadow: 0 0 0 2px var(--hg-purple);
  background: var(--hg-purple-wash);
  transform: translateY(-2px);
}

.hg-popular-card:hover strong { color: var(--hg-purple-deep); }
.hg-popular-card:hover::after { transform: translateX(4px); }

.hg-popular-card:focus-visible {
  outline: 2px solid var(--hg-purple);
  outline-offset: 2px;
}

.hg-popular-card strong {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
  color: var(--hg-text);
  transition: color var(--hg-transition);
}

.hg-popular-card span {
  font-size: 13px;
  color: var(--hg-purple);
  font-weight: 700;
  white-space: nowrap;
}

.hg-popular-card::after {
  content: '\2192';
  color: var(--hg-purple);
  font-size: 18px;
  transition: transform var(--hg-transition);
}

.hg-step-card {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  padding: 32px 28px;
  text-align: center;
}

.hg-step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--hg-purple);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}

.hg-step-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.hg-step-card p { margin: 0; color: var(--hg-muted); }

/* =====================================================================
   09. TOP PICKS CAROUSEL
===================================================================== */
.hg-top-picks {
  background: var(--hg-surface);
  padding: 52px 0 48px;
  border-bottom: 1px solid var(--hg-border);
}

.hg-top-picks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.hg-top-picks-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hg-gold);
  margin: 0 0 6px;
}

.hg-top-picks-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0;
  color: var(--hg-text);
}

.hg-tp-nav { display: flex; gap: 8px; }

.hg-tp-navbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--hg-border);
  background: var(--hg-surface);
  color: var(--hg-text);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--hg-transition);
  flex-shrink: 0;
}

.hg-tp-navbtn:hover {
  background: var(--hg-purple);
  color: #fff;
  border-color: var(--hg-purple);
}

.hg-tp-navbtn:disabled {
  opacity: .35;
  cursor: default;
}

.hg-tp-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-left: max(20px, calc((100vw - var(--hg-container)) / 2));
  padding-right: 40px;
  padding-bottom: 8px;
  padding-top: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hg-tp-track::-webkit-scrollbar { display: none; }

.hg-tp-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

.hg-tp-card-inner {
  display: block;
  border-radius: var(--hg-radius);
  overflow: hidden;
  height: 360px;
  position: relative;
  text-decoration: none;
  box-shadow: var(--hg-shadow);
  transition: transform var(--hg-transition), box-shadow var(--hg-transition);
}

.hg-tp-card-inner:hover {
  transform: translateY(-5px);
  box-shadow: var(--hg-shadow-lg);
  text-decoration: none;
}

.hg-tp-img {
  position: absolute;
  inset: 0;
}

.hg-tp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.hg-tp-card-inner:hover .hg-tp-img img { transform: scale(1.04); }

.hg-tp-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--hg-purple-deep) 0%, var(--hg-purple-light) 100%);
}

.hg-tp-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.08) 40%,
    rgba(10,4,26,.60) 70%,
    rgba(10,4,26,.92) 100%
  );
}

.hg-tp-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--hg-radius-pill);
  z-index: 2;
  white-space: nowrap;
}

.hg-tp-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 14px 16px;
  z-index: 2;
  color: #fff;
}

.hg-tp-subtitle {
  font-size: 10px;
  font-weight: 600;
  opacity: .8;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.hg-tp-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 92%;
}

.hg-tp-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--hg-radius-pill);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background var(--hg-transition), transform var(--hg-transition);
}

.hg-tp-card-inner:hover .hg-tp-cta {
  background: #fff;
  transform: translateX(3px);
}

.hg-tp-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.hg-tp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--hg-border);
  cursor: pointer;
  padding: 0;
  transition: all var(--hg-transition);
}

.hg-tp-dot.is-active {
  background: var(--hg-purple);
  width: 22px;
  border-radius: 4px;
}

/* CRITICAL SAFETY OVERRIDE:
   Beats inline/global [class$="-title"] { ... !important; } rules. */
.hg-top-picks .hg-tp-title {
  font-size: 14px !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 10px !important;
  max-width: 92% !important;
  color: #fff !important;
}

.hg-top-picks .hg-tp-subtitle {
  font-size: 10px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  letter-spacing: .08em !important;
  margin: 0 0 6px !important;
  opacity: .8 !important;
  color: #fff !important;
}

.hg-top-picks .hg-tp-overlay {
  padding: 14px 14px 16px !important;
}

/* =====================================================================
   10. FEEDBACK TAB
===================================================================== */
.at-fb-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

.at-fb-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hg-purple);
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px 10px 12px;
  cursor: pointer;
  font-family: var(--hg-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: background var(--hg-transition), padding var(--hg-transition);
  box-shadow: -3px 0 16px rgba(85,37,131,.18);
  min-height: 110px;
  justify-content: center;
}

.at-fb-trigger:hover,
.at-fb-trigger.is-open { background: var(--hg-purple-deep); }

.at-fb-trigger-icon { transform: rotate(180deg); flex-shrink: 0; }
.at-fb-trigger-label { flex-shrink: 0; }

.at-fb-panel {
  position: absolute;
  right: 44px;
  bottom: 0;
  width: 320px;
  background: var(--hg-surface);
  border-radius: var(--hg-radius) 0 0 var(--hg-radius);
  box-shadow: -4px 4px 36px rgba(0,0,0,.18);
  padding: 20px 20px 16px;
  animation: at-fb-slide-in .22s cubic-bezier(.4,0,.2,1);
}

@keyframes at-fb-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.at-fb-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hg-border);
}

.at-fb-panel-head strong { font-size: 15px; color: var(--hg-text); }

.at-fb-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--hg-muted);
  padding: 0;
  transition: color var(--hg-transition);
}

.at-fb-close:hover { color: var(--hg-text); }

.at-fb-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-text);
  margin: 0 0 14px;
  line-height: 1.4;
}

.at-fb-hint {
  font-size: 12px;
  color: var(--hg-muted);
  margin: 8px 0 0;
}

.at-fb-stars { display: flex; gap: 6px; }

.at-fb-star {
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--hg-border);
  padding: 2px;
  transition: color .12s, transform .12s;
  line-height: 1;
}

.at-fb-star.is-hovered,
.at-fb-star.is-selected { color: var(--hg-gold); }

.at-fb-star:hover { transform: scale(1.2); }

.at-fb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-fb-cat-btn {
  background: var(--hg-bg);
  border: 1.5px solid var(--hg-border);
  border-radius: var(--hg-radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-text);
  cursor: pointer;
  font-family: var(--hg-font);
  transition: all var(--hg-transition);
}

.at-fb-cat-btn:hover {
  border-color: var(--hg-purple);
  color: var(--hg-purple);
  background: var(--hg-purple-wash);
}

.at-fb-cat-btn.is-selected {
  background: var(--hg-purple);
  color: #fff;
  border-color: var(--hg-purple);
}

.at-fb-textarea {
  width: 100%;
  border: 1.5px solid var(--hg-border);
  border-radius: var(--hg-radius-sm);
  padding: 10px 12px;
  font-family: var(--hg-font);
  font-size: 13px;
  color: var(--hg-text);
  resize: vertical;
  min-height: 90px;
  transition: border-color var(--hg-transition);
  box-sizing: border-box;
}

.at-fb-textarea:focus {
  outline: none;
  border-color: var(--hg-purple);
}

.at-fb-submit-btn {
  width: 100%;
  margin-top: 12px;
  background: var(--hg-purple);
  color: #fff;
  border: none;
  border-radius: var(--hg-radius-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--hg-font);
  transition: background var(--hg-transition);
}

.at-fb-submit-btn:hover { background: var(--hg-purple-deep); }
.at-fb-submit-btn:disabled { opacity: .6; cursor: wait; }

.at-fb-thanks {
  text-align: center;
  padding: 20px 10px 10px;
}

.at-fb-thanks-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hg-purple);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.at-fb-thanks strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.at-fb-thanks p {
  font-size: 13px;
  color: var(--hg-muted);
  margin: 0;
}

.at-fb-progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hg-border);
}

.at-fb-prog-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hg-border);
  transition: background var(--hg-transition);
}

.at-fb-prog-dot.is-active { background: var(--hg-purple); }
.at-fb-error { color: #c62828; font-size: 13px; margin: 8px 0 0; }

/* =====================================================================
   11. LANGUAGE SWITCHER
===================================================================== */
.at-lang-switcher { position: relative; display: inline-block; }

.at-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--hg-radius-pill);
  color: rgba(255,255,255,.9);
  padding: 5px 10px 5px 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--hg-font);
  transition: background var(--hg-transition);
  white-space: nowrap;
}

.at-lang-btn:hover,
.at-lang-btn[aria-expanded="true"] { background: rgba(255,255,255,.22); }

.at-lang-flag { font-size: 16px; line-height: 1; }

.at-lang-caret {
  transition: transform var(--hg-transition);
  flex-shrink: 0;
}

.at-lang-btn[aria-expanded="true"] .at-lang-caret { transform: rotate(180deg); }

.at-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 9990;
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: var(--hg-radius);
  box-shadow: var(--hg-shadow-lg);
  padding: 6px;
  min-width: 180px;
  max-height: 340px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  animation: at-lang-drop-in .15s cubic-bezier(.4,0,.2,1);
}

@keyframes at-lang-drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.at-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--hg-radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--hg-text);
  transition: background var(--hg-transition);
  user-select: none;
}

.at-lang-option:hover {
  background: var(--hg-purple-wash);
  color: var(--hg-purple);
}

.at-lang-option.is-active {
  background: var(--hg-purple-wash);
  color: var(--hg-purple);
  font-weight: 700;
}

.at-lang-option svg {
  margin-left: auto;
  color: var(--hg-purple);
}

.at-translate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hg-gold);
  z-index: 99999;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .4s ease;
  pointer-events: none;
}

.at-translate-bar.is-loading { transform: scaleX(.7); }
.at-translate-bar.is-done { transform: scaleX(1); opacity: 0; transition: transform .2s, opacity .3s .2s; }

html[dir="rtl"] .at-lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .at-lang-btn { flex-direction: row-reverse; }

/* =====================================================================
   12. ICON MOTION
===================================================================== */
@keyframes at-heartbeat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.12); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.08); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes at-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  60%  { transform: scale(0.96); }
  80%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes at-pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,.60); }
  60%  { box-shadow: 0 0 0 10px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

.hg-hero-icon,
.hg-section-icon,
.hg-quick-icon {
  will-change: transform;
  transform-origin: center center;
}

.hg-hero-icon:hover,
.hg-hero-title-wrap:hover .hg-hero-icon {
  animation: at-heartbeat .7s cubic-bezier(.4,0,.2,1) forwards;
}

.hg-hero-icon:hover img,
.hg-hero-title-wrap:hover .hg-hero-icon img {
  filter: drop-shadow(0 0 10px rgba(201,168,76,.5)) brightness(1.06);
}

.hg-section-icon { transition: filter .25s; }

.hg-section-head:hover .hg-section-icon,
.hg-section-header-with-icon:hover .hg-section-icon {
  animation: at-heartbeat .7s cubic-bezier(.4,0,.2,1) forwards;
}

.hg-section-head:hover .hg-section-icon img,
.hg-section-header-with-icon:hover .hg-section-icon img {
  filter: drop-shadow(0 0 8px rgba(85,37,131,.35));
}

.hg-nav-cta {
  transition: background var(--hg-transition), box-shadow var(--hg-transition), transform var(--hg-transition) !important;
}

.hg-nav-cta:hover {
  animation: at-pulse-ring .75s ease-out forwards !important;
  transform: translateY(-1px) scale(1.03) !important;
}

/* =====================================================================
   13. BLOG ARCHIVE
===================================================================== */
.hg-blog-main { background: var(--hg-bg); }

.hg-blog-header {
  background: var(--hg-purple-deep);
  padding: 40px 0 36px;
}

.hg-blog-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hg-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 16px;
}

.hg-breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.hg-breadcrumb a:hover { color: #fff; }

.hg-blog-h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.hg-blog-desc {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.hg-blog-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}

.hg-blog-stat { text-align: center; }

.hg-blog-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--hg-gold);
  line-height: 1;
  margin-bottom: 4px;
}

.hg-blog-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}

.hg-blog-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--hg-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.hg-filter-scroll {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.hg-filter-scroll::-webkit-scrollbar { display: none; }

.hg-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: var(--hg-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--hg-muted);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: all var(--hg-transition);
  background: var(--hg-bg);
  flex-shrink: 0;
}

.hg-filter-pill:hover {
  color: var(--hg-purple);
  border-color: var(--hg-purple);
  background: var(--hg-purple-wash);
  text-decoration: none;
}

.hg-filter-pill.is-active {
  color: #fff;
  background: var(--hg-purple);
  border-color: var(--hg-purple);
}

.hg-filter-count {
  font-size: 11px;
  font-weight: 700;
  opacity: .6;
}

.hg-filter-pill.is-active .hg-filter-count { opacity: .75; }

.hg-blog-hero-post {
  padding: 40px 0 0;
  background: var(--hg-bg);
}

.hg-hero-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--hg-surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hg-border);
  box-shadow: var(--hg-shadow-lg);
  min-height: 360px;
}

.hg-hero-img-link { display: block; }

.hg-hero-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
  transition: transform .4s ease;
}

.hg-hero-article:hover .hg-hero-img { transform: scale(1.02); }
.hg-hero-img--placeholder { background: linear-gradient(135deg, var(--hg-purple) 0%, var(--hg-purple-deep) 100%); }

.hg-hero-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.hg-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hg-hero-readtime {
  font-size: 13px;
  color: var(--hg-muted);
  font-weight: 500;
}

.hg-hero-title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--hg-text);
}

.hg-hero-title a {
  color: inherit;
  text-decoration: none;
}

.hg-hero-title a:hover { color: var(--hg-purple); }

.hg-hero-excerpt {
  font-size: 16px;
  color: var(--hg-muted);
  line-height: 1.65;
  margin: 0 0 28px;
}

.hg-hero-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

.hg-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--hg-purple);
  color: #fff;
  border-radius: var(--hg-radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--hg-transition), transform var(--hg-transition);
}

.hg-hero-cta span { transition: transform var(--hg-transition); }

.hg-hero-cta:hover {
  background: var(--hg-purple-deep);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.hg-hero-cta:hover span { transform: translateX(3px); }

.hg-post-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--hg-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--purple { background: var(--hg-purple-wash); color: var(--hg-purple); }
.badge--blue   { background: #e8f0fe; color: #1a56db; }
.badge--green  { background: #d1fae5; color: #065f46; }
.badge--gold   { background: #fef9c3; color: #92400e; }
.badge--teal   { background: #ccfbf1; color: #0f766e; }
.badge--pink   { background: #fce7f3; color: #9d174d; }
.badge--orange { background: #ffedd5; color: #9a3412; }

.hg-post-badge--img {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.hg-blog-grid-section { padding-top: 40px; }

.hg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.hg-blog-card {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--hg-shadow);
  transition: box-shadow var(--hg-transition), transform var(--hg-transition);
  display: flex;
  flex-direction: column;
}

.hg-blog-card:hover {
  box-shadow: var(--hg-shadow-lg);
  transform: translateY(-3px);
}

.hg-bc-img-link { display: block; overflow: hidden; }

.hg-bc-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hg-purple-wash);
}

.hg-bc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.hg-blog-card:hover .hg-bc-img img { transform: scale(1.04); }

.hg-bc-img--empty {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--hg-purple-wash) 0%, #e0d4f0 100%);
  position: relative;
}

.hg-bc-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hg-bc-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hg-purple);
  margin-bottom: 8px;
}

.hg-bc-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--hg-text);
  flex-shrink: 0;
}

.hg-bc-title a {
  color: inherit;
  text-decoration: none;
}

.hg-bc-title a:hover { color: var(--hg-purple); }

.hg-bc-excerpt {
  font-size: 13.5px;
  color: var(--hg-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hg-bc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--hg-border);
}

.hg-bc-meta { display: flex; align-items: center; gap: 8px; }

.hg-bc-readtime {
  font-size: 12px;
  color: var(--hg-muted);
  font-weight: 500;
}

.hg-bc-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--hg-purple);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--hg-transition), gap var(--hg-transition);
}

.hg-bc-link:hover {
  color: var(--hg-purple-deep);
  text-decoration: none;
}

.hg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 0;
  flex-wrap: wrap;
}

.hg-pagination a,
.hg-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--hg-radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-purple);
  border: 1.5px solid var(--hg-border);
  background: #fff;
  text-decoration: none;
  transition: all var(--hg-transition);
}

.hg-pagination a:hover {
  background: var(--hg-purple);
  color: #fff;
  border-color: var(--hg-purple);
  text-decoration: none;
}

.hg-pagination .current {
  background: var(--hg-purple);
  color: #fff;
  border-color: var(--hg-purple);
}

.hg-pagination .dots {
  border: none;
  background: transparent;
  color: var(--hg-muted);
}

.hg-blog-thomas-cta { padding: 52px 0; }

.hg-blog-thomas-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hg-blog-thomas-h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}

.hg-blog-thomas-cta p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.hg-blog-thomas-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  border-radius: var(--hg-radius-pill);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter var(--hg-transition), transform var(--hg-transition);
}

.hg-blog-thomas-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--hg-purple-deep);
}

/* =====================================================================
   14. HOTEL PAGES
===================================================================== */
.hg-hotel-main { background: var(--hg-bg); }

.hg-hotel-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--hg-border);
  padding: 10px 0;
}

.hg-hotel-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  padding: 32px 0 60px;
}

.hg-hotel-gallery {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--hg-purple-wash);
}

.hg-hg-main-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hg-hg-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

.hg-hg-thumbs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0,0,0,.04);
  flex-wrap: wrap;
}

.hg-hg-thumb {
  flex: 1 1 80px;
  max-width: 120px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color var(--hg-transition);
}

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

.hg-hg-thumb.is-active { border-color: var(--hg-purple); }
.hg-hg-thumb:hover { border-color: var(--hg-purple-light); }

.hg-hg-placeholder {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hg-purple-wash), #e8d8f8);
  color: var(--hg-muted);
}

.hg-hg-placeholder span {
  font-size: 48px;
  margin-bottom: 8px;
}

.hg-hotel-header {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.hg-hotel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hg-hotel-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hg-hotel-type-badge {
  background: var(--hg-purple-wash);
  color: var(--hg-purple);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: var(--hg-radius-pill);
}

.hg-hotel-stars span {
  color: var(--hg-gold);
  font-size: 15px;
}

.hg-hotel-area {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--hg-muted);
}

.hg-hotel-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--hg-text);
}

.hg-hotel-score-badge {
  background: var(--hg-purple);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}

.hg-score-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.hg-score-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
  opacity: .9;
}

.hg-score-count {
  display: block;
  font-size: 11px;
  opacity: .6;
  margin-top: 2px;
}

.hg-hotel-price-bar {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hg-border);
}

.hg-hotel-price-from { font-size: 13px; color: var(--hg-muted); }
.hg-hotel-price-num { font-size: 28px; font-weight: 800; color: var(--hg-purple-deep); letter-spacing: -.02em; }
.hg-hotel-price-per { font-size: 14px; font-weight: 600; color: var(--hg-muted); }
.hg-hotel-price-note { font-size: 12px; color: var(--hg-muted); }

.hg-hotel-section {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.hg-hotel-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--hg-text);
}

.hg-hotel-description {
  line-height: 1.75;
  color: var(--hg-text);
}

.hg-facility-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.hg-facility-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--hg-text);
  padding: 8px 12px;
  background: var(--hg-bg);
  border-radius: 8px;
  border: 1px solid var(--hg-border);
}

.hg-facility-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.hg-transport-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-transport-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--hg-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--hg-border);
}

.hg-transport-item:last-child { border-bottom: none; }

.hg-transport-icon {
  color: var(--hg-purple);
  flex-shrink: 0;
  margin-top: 1px;
}

.hg-hotel-thomas-cta {
  background: var(--hg-purple-wash);
  border: 1px solid rgba(85,37,131,.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.hg-hotel-thomas-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hg-hotel-thomas-inner strong {
  font-size: 15px;
  color: var(--hg-purple-deep);
  display: block;
  margin-bottom: 4px;
}

.hg-hotel-thomas-inner p {
  font-size: 13px;
  color: var(--hg-muted);
  margin: 0;
}

.hg-hotel-thomas-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  background: var(--hg-purple);
  color: #fff;
  border-radius: var(--hg-radius-pill);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--hg-transition);
}

.hg-hotel-thomas-btn:hover {
  background: var(--hg-purple-deep);
  text-decoration: none;
  color: #fff;
}

.hg-hotel-widget-sticky {
  position: sticky;
  top: 80px;
}

.at-booking-widget {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--hg-shadow-lg);
  margin-bottom: 16px;
}

.at-bw-header {
  background: var(--hg-purple-deep);
  padding: 18px 22px 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.at-bw-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.at-bw-from { font-size: 12px; color: rgba(255,255,255,.6); }
.at-bw-price { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.at-bw-per { font-size: 13px; color: rgba(255,255,255,.6); }

.at-bw-source {
  font-size: 11px;
  font-weight: 700;
  color: var(--hg-gold);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.at-bw-form { padding: 20px 20px 16px; }

.at-bw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.at-bw-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.at-bw-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--hg-muted);
}

.at-bw-date,
.at-bw-adults,
.at-bw-rooms {
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--hg-border);
  border-radius: 10px;
  font-family: var(--hg-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--hg-text);
  background: #fff;
  transition: border-color var(--hg-transition);
  cursor: pointer;
}

.at-bw-date:focus,
.at-bw-adults:focus,
.at-bw-rooms:focus {
  outline: none;
  border-color: var(--hg-purple);
}

.at-bw-nights-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--hg-purple-wash);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.at-bw-nights-label {
  color: var(--hg-muted);
  font-weight: 600;
}

.at-bw-nights-total {
  color: var(--hg-purple-deep);
}

.at-bw-nights-total strong {
  font-size: 15px;
  font-weight: 800;
}

.at-bw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: var(--hg-purple);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--hg-font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--hg-transition), transform var(--hg-transition);
  box-shadow: 0 4px 16px rgba(85,37,131,.30);
}

.at-bw-cta:hover {
  background: var(--hg-purple-deep);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.at-bw-disclaimer {
  font-size: 11px;
  color: var(--hg-muted);
  text-align: center;
  margin: 10px 0 0;
}

.hg-hotel-why {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 16px;
  padding: 18px 20px;
}

.hg-hotel-why-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--hg-text);
}

.hg-hotel-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hg-hotel-why-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--hg-muted);
  line-height: 1.5;
}

.hg-hotel-why-list span {
  color: var(--hg-success);
  font-weight: 700;
  flex-shrink: 0;
}

.hg-hotels-grid .hg-hotel-card-img img {
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.hg-hotel-card-placeholder {
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  background:#f4f7fb;
}

.hg-hotel-card-meta-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.hg-hotel-card-stars {
  color:#d6a100;
  font-weight:700;
  letter-spacing:.03em;
  font-size:14px;
}

.hg-hotel-card-summary {
  margin:0 0 14px;
  color:#5e6f89;
  line-height:1.7;
}

.hg-hotels-pagination { margin-top:24px; }

.hg-hotels-pagination .page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  margin:0 6px 6px 0;
  border-radius:999px;
  border:1px solid #d9e4f8;
  background:#fff;
  color:#173c73;
  text-decoration:none;
  font-weight:700;
}

.hg-hotels-pagination .page-numbers.current,
.hg-hotels-pagination .page-numbers:hover { background:#ebf3ff; }

/* =====================================================================
   15. EMAIL CAPTURE / AFFILIATE CTAS / PAGE TEMPLATES / FOOTER
===================================================================== */
.hg-trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--hg-border);
  padding: 14px 0;
}

.hg-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.hg-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--hg-text);
  white-space: nowrap;
}

.hg-trust-item strong { color: var(--hg-purple-deep); }
.hg-trust-icon { font-size: 16px; color: var(--hg-gold); flex-shrink: 0; }
.hg-trust-divider { width: 1px; height: 28px; background: var(--hg-border); flex-shrink: 0; }

.hg-email-heading {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.hg-email-form {
  max-width: 480px;
  margin: 0 auto;
}

.hg-email-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hg-email-input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--hg-radius-pill);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: var(--hg-font);
  font-size: 15px;
  transition: border-color var(--hg-transition), background var(--hg-transition);
}

.hg-email-input::placeholder { color: rgba(255,255,255,.55); }

.hg-email-input:focus {
  outline: none;
  border-color: var(--hg-gold);
  background: rgba(255,255,255,.18);
}

.hg-email-btn {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: var(--hg-radius-pill);
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  font-family: var(--hg-font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--hg-transition), transform var(--hg-transition);
  white-space: nowrap;
}

.hg-email-btn:hover {
  background: #d4b45a;
  transform: translateY(-1px);
}

.hg-email-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.hg-email-legal {
  font-size: 12px;
  color: rgba(255,255,255,.45);
  margin: 10px 0 0;
  text-align: center;
}

.hg-email-success {
  text-align: center;
  color: var(--hg-gold);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 0;
}

.entry-content .hg-aff-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 22px !important;
  background: var(--hg-purple) !important;
  color: #fff !important;
  border-radius: var(--hg-radius-pill) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: background var(--hg-transition), transform var(--hg-transition);
  margin: 4px 0 16px;
  box-shadow: 0 3px 12px rgba(85,37,131,.25);
}

.entry-content .hg-aff-cta:hover {
  background: var(--hg-purple-deep) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
  color: #fff !important;
}

.entry-content .hg-aff-cta .hg-aff-price {
  background: var(--hg-gold);
  color: var(--hg-purple-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--hg-radius-pill);
  white-space: nowrap;
}

.entry-content p:has(> .hg-aff-cta) { margin-bottom: 8px; }

.hg-page-shell { padding: 60px 0; }

.hg-page-card {
  background: var(--hg-surface);
  border: 1px solid var(--hg-border);
  border-radius: 20px;
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--hg-shadow);
}

.hg-page-card h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -.02em;
}

.hg-page-card .atf-wrap,
.hg-funnel-embed .atf-wrap {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hg-page-card .atf-btn,
.hg-funnel-embed .atf-btn {
  background: var(--hg-purple);
  border-radius: var(--hg-radius-sm);
}

.at-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.at-admin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 16px;
}

.site-footer {
  background: var(--hg-purple-deep);
  color: rgba(255,255,255,.75);
  padding: 48px 0 32px;
  font-size: 14px;
}

.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }

.hg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.hg-footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.hg-footer-brand span { color: var(--hg-gold); }

.hg-footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 14px;
  font-weight: 700;
}

.hg-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-footer-col li { margin-bottom: 8px; }

.hg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.hg-disclosure {
  color: rgba(255,255,255,.5);
  font-size: 13px;
  margin-top: 20px;
  line-height: 1.6;
}

/* Unified gold button standard */
.hg-nav-cta,
.hg-blog-thomas-btn,
.hg-hotel-thomas-btn,
.hg-tw-search-link,
.hg-tw-query-submit,
.hg-footer-trust__thomas,
.hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn,
.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn,
.hg-ask-panel .ask-thomas-form button[type="submit"],
.hg-hero-shortcode .ask-thomas-form button[type="submit"],
.ask-thomas-shell--fallback .ask-thomas-form button.ask-thomas-submit-btn {
  background: var(--hg-gold) !important;
  color: var(--hg-purple-deep) !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  border-radius: var(--hg-radius-pill) !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background var(--hg-transition), transform var(--hg-transition), box-shadow var(--hg-transition) !important;
  position: relative;
  overflow: hidden;
}

.hg-nav-cta::after,
.hg-tw-query-submit::after,
.hg-footer-trust__thomas::after,
.hg-tw-search-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 58%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.18) 48%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: hg-gold-sheen 9s ease-in-out infinite;
}

.hg-nav-cta:hover,
.hg-blog-thomas-btn:hover,
.hg-hotel-thomas-btn:hover,
.hg-tw-search-link:hover,
.hg-tw-query-submit:hover,
.hg-footer-trust__thomas:hover,
.hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn:hover,
.hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn:hover,
.hg-ask-panel .ask-thomas-form button[type="submit"]:hover,
.hg-hero-shortcode .ask-thomas-form button[type="submit"]:hover,
.ask-thomas-shell--fallback .ask-thomas-form button.ask-thomas-submit-btn:hover {
  background: #d4b45a !important;
  color: var(--hg-purple-deep) !important;
  text-decoration: none !important;
}

/* =====================================================================
   16. POST FEATURED IMAGE
===================================================================== */
.hg-post-hero {
  margin: 20px 0 32px;
  border-radius: var(--hg-radius);
  overflow: hidden;
  max-height: 480px;
}

.hg-post-hero-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* =====================================================================
   17. KEYFRAMES FOR HERO ATMOSPHERE + STATUS + SHEEN
===================================================================== */
@keyframes hg-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  60%  { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

@keyframes hg-aurora-drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.04); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(4%, -2%, 0) scale(1.06); }
}

@keyframes hg-aurora-drift-2 {
  0%   { transform: translate3d(2%, 1%, 0) scale(1.02); opacity: .62; }
  50%  { transform: translate3d(-2%, -1.5%, 0) scale(1.06); opacity: .82; }
  100% { transform: translate3d(-4%, 2%, 0) scale(1.03); opacity: .68; }
}

@keyframes hg-skyline-float {
  0%   { transform: translate3d(0,0,0); opacity: .38; }
  100% { transform: translate3d(-10px,4px,0); opacity: .48; }
}

@keyframes hg-thomas-glow {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .90; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes hg-gold-sheen {
  0%, 78%, 100% { left: -130%; }
  88% { left: 155%; }
}

/* =====================================================================
   18. RESPONSIVE RULES
===================================================================== */
@media (max-width: 1024px) {
  .hg-grid-3,
  .hg-grid-4 { grid-template-columns: 1fr 1fr; }

  .hg-quick-row { grid-template-columns: repeat(3, 1fr); }
  .hg-value-grid { grid-template-columns: 1fr 1fr; }
  .hg-footer-grid { grid-template-columns: 1fr 1fr; }
  .hg-hotel-layout { grid-template-columns: 1fr 300px; gap: 24px; }
}

@media (max-width: 980px) {
  .hg-tw-board--search .hg-tw-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hg-tw-board--search .hg-tw-info { align-self: flex-end; }
  .hg-tw-search-shell { grid-template-columns: 1fr; }

  .hg-tw-search-left {
    border-right: 0;
    border-bottom: 1px solid #d8d1d8;
  }
}

@media (max-width: 900px) {
  .hg-blog-grid { grid-template-columns: 1fr 1fr; }
  .hg-hero-article { grid-template-columns: 1fr; min-height: auto; }
  .hg-hero-img { min-height: 260px; }
  .hg-hero-body { padding: 28px 28px 32px; }
  .hg-blog-header-inner { align-items: flex-start; }
  .hg-blog-stats { gap: 20px; }
}

@media (max-width: 780px) {
  .hg-nav { display: none; }
  .hg-top-bar { display: none; }
  .hg-hero { min-height: auto; padding: 28px 0; }
  .hg-meta-bar { margin: 10px 0 16px; gap: 8px; }
  .hg-hero-skyline { height: 120px; }

  .hg-tw-tab { padding: 14px 14px 12px; font-size: 13px; }
  .hg-tw-info { gap: 7px; font-size: 11px; }
  .hg-tw-clock,
  .hg-tw-temp { font-size: 12px; }
  .hg-tw-city { display: none; }
  .hg-tw-topbar { padding-right: 12px; }

  .hg-hotel-layout { grid-template-columns: 1fr; }
  .hg-hotel-sidebar { order: -1; }
  .hg-hotel-widget-sticky { position: static; }
  .at-booking-widget { margin-bottom: 20px; }
  .hg-hotel-header { padding: 18px 20px; }
  .hg-hotel-section { padding: 18px 20px; }
  .hg-hotel-title-row { flex-direction: column; gap: 14px; }
  .hg-hotel-score-badge { align-self: flex-start; }
}

@media (max-width: 680px) {
  .hg-section { padding: 48px 0; }

  .hg-grid-3,
  .hg-grid-4,
  .hg-grid-2 { grid-template-columns: 1fr; }

  .hg-quick-row { grid-template-columns: 1fr 1fr; }
  .hg-value-grid { grid-template-columns: 1fr; }
  .hg-footer-grid { grid-template-columns: 1fr; }
  .hg-ask-panel { padding: 16px; }
  .hg-hero-title { font-size: 32px; }

  .hg-section-head.has-icon,
  .hg-section-header-with-icon { gap: 12px; }

  .hg-section-icon,
  .hg-hero-icon { width: 56px; height: 56px; }

  .hg-tp-card { flex: 0 0 220px; }
  .hg-tp-card-inner { height: 300px; }
  .hg-top-picks-head { flex-direction: column; align-items: flex-start; gap: 12px; }

  .hg-top-picks .hg-tp-title {
    font-size: 13px !important;
    line-height: 1.10 !important;
  }

  .hg-top-picks .hg-tp-subtitle {
    font-size: 9px !important;
  }

  .hg-top-picks .hg-tp-overlay {
    padding: 12px 12px 14px !important;
  }
}

@media (max-width: 640px) {
  .hg-hero-icon { width: 68px; height: 68px; }

  .hg-tw-board--search .hg-tw-topbar { padding: 14px 14px 12px; }
  .hg-tw-board--search .hg-tw-tabs { gap: 14px; }
  .hg-tw-board--search .hg-tw-tab { font-size: 13px; }

  .hg-tw-search-left,
  .hg-tw-search-right { padding: 12px; }

  .hg-tw-query-inner {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 12px;
  }

  .hg-tw-query-input { width: 100%; }
  .hg-tw-query-submit { width: 100%; justify-content: center; }
  .hg-tw-field-grid,
  .at-bw-row { grid-template-columns: 1fr; }

  [class$="-shell"] {
    padding: calc(var(--hg-plugin-shell-padding, 28px) * 0.65) !important;
    border-radius: calc(var(--hg-plugin-shell-radius, 24px) * 0.6) !important;
  }

  [class$="-panel"],
  [class$="-sidebox"],
  [class$="-faq"],
  [class$="-result"] {
    padding: calc(var(--hg-plugin-panel-padding, 22px) * 0.7) !important;
  }

  [class*="-wrap"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 620px) {
  .hg-tw-topbar { flex-wrap: wrap; padding: 0 0 0 4px; }

  .hg-tw-info {
    width: 100%;
    justify-content: flex-end;
    padding: 8px 16px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .hg-tw-field-wrap {
    border-radius: 16px 16px 0 0;
    border-right: 2px solid var(--hg-border);
    border-bottom: none;
  }

  .hg-tw-cta {
    border-radius: 0 0 16px 16px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  .hg-tw-swap { width: 38px; }
}

@media (max-width: 600px) {
  .hg-blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .hg-hero-body { padding: 22px 20px 26px; }
  .hg-hero-title { font-size: 22px; }
  .hg-blog-stats { display: none; }
  .hg-blog-thomas-inner { flex-direction: column; text-align: center; }
  .hg-blog-thomas-btn { width: 100%; justify-content: center; }
}

@media (max-width: 520px) {
  .at-fb-tab {
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    align-items: flex-end;
  }

  .at-fb-trigger {
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 8px 8px 0 0;
    min-height: auto;
    padding: 10px 16px;
  }

  .at-fb-trigger-icon { transform: none; }

  .at-fb-panel {
    right: auto;
    bottom: 52px;
    left: 0;
    width: calc(100vw - 24px);
    margin: 0 12px;
    border-radius: var(--hg-radius);
  }

  .hg-ask-panel .ask-thomas-form,
  .hg-hero-shortcode .ask-thomas-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0;
  }

  .hg-ask-panel .ask-thomas-form input[type="text"],
  .hg-hero-shortcode .ask-thomas-form input[type="text"] {
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hg-ask-panel .ask-thomas-form button.ask-thomas-submit-btn,
  .hg-hero-shortcode .ask-thomas-form button.ask-thomas-submit-btn,
  .hg-ask-panel .ask-thomas-form button[type="submit"],
  .hg-hero-shortcode .ask-thomas-form button[type="submit"] {
    margin: 0 4px 4px 4px;
    min-height: 46px;
    justify-content: center;
    width: calc(100% - 8px);
    border-radius: 12px !important;
  }

  .hg-email-input { min-height: 48px; }
  .hg-email-btn { width: 100%; min-height: 48px; }
}

@media (max-width: 500px) {
  .hg-trust-row { justify-content: flex-start; }
  .hg-trust-item { flex: 0 0 50%; padding: 6px 10px; }
}

@media (max-width: 480px) {
  .hg-meta-bar__sep { display: none; }
  .hg-meta-bar { gap: 12px; }
  .hg-hero-skyline { display: none; }
}

@media (max-width: 440px) {
  .hg-tw-tabs { overflow-x: auto; scrollbar-width: none; }
  .hg-tw-tabs::-webkit-scrollbar { display: none; }
  .hg-tw-tab { padding: 13px 12px 11px; font-size: 12px; }
  .hg-tw-sep { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hg-hero-icon:hover,
  .hg-hero-title-wrap:hover .hg-hero-icon,
  .hg-section-head:hover .hg-section-icon,
  .hg-section-header-with-icon:hover .hg-section-icon,
  .hg-quick-item:hover .hg-quick-icon,
  .hg-nav-cta:hover {
    animation: none !important;
    transform: scale(1.06) !important;
  }

  .hg-hero--gradient::before,
  .hg-hero--gradient::after,
  .hg-hero-skyline,
  .hg-hero-title-wrap::before,
  .hg-nav-cta::after,
  .hg-tw-query-submit::after,
  .hg-footer-trust__thomas::after,
  .hg-tw-search-link::after {
    animation: none !important;
  }
}

/* =====================================================================
   HERO BACKGROUND UPGRADE — PREMIUM CINEMATIC ATMOSPHERE
   Paste at the very end of style.css

   PURPOSE
   - Makes the hero background feel more premium, dimensional, and memorable.
   - Creates a stronger focal zone behind Thomas + headline.
   - Improves separation between the purple hero background and the search board.
   - Keeps the brand palette intact: deep purple + restrained gold.

   NOTES
   - This block is intentionally appended late so it wins the cascade.
   - It does not require HTML changes.
   - Safe to remove independently if you ever want to revert.
===================================================================== */

/* ---------------------------------------------------------------------
   1. HERO BASE: richer purple atmosphere
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 20%, rgba(128, 92, 255, 0.18) 0%, transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(201, 168, 76, 0.08) 0%, transparent 16%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.05) 0%, transparent 16%),
    radial-gradient(circle at 50% 74%, rgba(92, 58, 192, 0.18) 0%, transparent 24%),
    linear-gradient(
      135deg,
      #11092b 0%,
      #1a0d3a 18%,
      #26124b 38%,
      #35175d 62%,
      #28124c 82%,
      #170c36 100%
    ) !important;
}

/* ---------------------------------------------------------------------
   2. LARGE ATMOSPHERIC LIGHT BLOOMS
   Soft drifting light to prevent flatness
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgba(134, 96, 255, 0.20) 0%, transparent 22%),
    radial-gradient(circle at 76% 26%, rgba(255, 255, 255, 0.05) 0%, transparent 12%),
    radial-gradient(circle at 50% 34%, rgba(201, 168, 76, 0.10) 0%, transparent 12%),
    radial-gradient(circle at 58% 70%, rgba(112, 73, 216, 0.18) 0%, transparent 20%),
    radial-gradient(circle at 32% 78%, rgba(255, 255, 255, 0.04) 0%, transparent 12%);
  filter: blur(42px);
  opacity: 1;
  transform: translate3d(0,0,0) scale(1.04);
  animation: hg-hero-lux-drift 24s ease-in-out infinite alternate;
}

/* ---------------------------------------------------------------------
   3. FINE LUXURY TEXTURE / DEPTH GRID
   Very subtle so the gradient does not feel digitally flat
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px;
}

/* ---------------------------------------------------------------------
   4. CENTRAL FOCAL HALO
   Stronger premium spotlight behind Thomas + heading
--------------------------------------------------------------------- */
.hg-hero-inner {
  position: relative;
  z-index: 3;
}

.hg-hero-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 820px;
  height: 430px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(255,255,255,0.09) 0%,
      rgba(201,168,76,0.08) 18%,
      rgba(123,79,168,0.10) 38%,
      rgba(71,41,129,0.06) 54%,
      transparent 74%
    );
  filter: blur(34px);
}

/* keep hero content above focal halo */
.hg-hero-top,
.hg-tw-board,
.hg-ask-panel--compact {
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------------------
   5. THOMAS ICON ENHANCEMENT
   Makes the icon feel more intentionally anchored in the composition
--------------------------------------------------------------------- */
.hg-hero-title-wrap::before {
  width: 160px !important;
  height: 160px !important;
  background:
    radial-gradient(
      circle,
      rgba(201,168,76,.28) 0%,
      rgba(201,168,76,.14) 28%,
      rgba(123,79,168,.10) 54%,
      transparent 74%
    ) !important;
  filter: blur(22px) !important;
  opacity: .95;
}

.hg-hero-icon {
  box-shadow:
    0 12px 34px rgba(0,0,0,.20),
    0 0 0 1px rgba(255,255,255,.08),
    0 0 28px rgba(201,168,76,.16);
}

/* ---------------------------------------------------------------------
   6. HEADLINE / COPY TUNING
   Slightly more premium contrast and clarity against the new background
--------------------------------------------------------------------- */
.hg-hero-title {
  text-shadow: 0 2px 18px rgba(0,0,0,.14);
}

.hg-hero-title em {
  text-shadow: 0 2px 18px rgba(0,0,0,.10);
}

.hg-hero-copy {
  color: rgba(255,255,255,.88);
}

.hg-eyebrow {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------------------------------------------------------------------
   7. META BAR
   Give the live strip a more refined editorial feel
--------------------------------------------------------------------- */
.hg-meta-bar {
  opacity: 1;
}

.hg-meta-bar__item {
  color: rgba(255,255,255,.68);
}

.hg-meta-bar__sep {
  color: rgba(255,255,255,.22);
}

/* ---------------------------------------------------------------------
   8. SEARCH BOARD INTEGRATION
   Helps the board feel embedded into the atmosphere rather than pasted on
--------------------------------------------------------------------- */
.hg-tw-board.hg-tw-board--search {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg, rgba(78,44,128,.90) 0%, rgba(59,29,99,.92) 100%);
  box-shadow:
    0 22px 54px rgba(0,0,0,.22),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 48px rgba(110,72,216,.16);
}

/* glow field behind search board */
.hg-tw-board.hg-tw-board--search::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 92%;
  height: 140px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(110,72,216,.24) 0%,
    rgba(110,72,216,.12) 32%,
    transparent 72%
  );
  filter: blur(24px);
  z-index: -1;
  pointer-events: none;
}

/* stronger topbar refinement */
.hg-tw-board--search .hg-tw-topbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hg-tw-board--search .hg-tw-tab {
  color: rgba(255,255,255,.74);
}

.hg-tw-board--search .hg-tw-tab:hover {
  color: rgba(255,255,255,.96);
}

.hg-tw-board--search .hg-tw-tab.is-active::after {
  box-shadow:
    0 0 14px rgba(201,168,76,.42),
    0 0 28px rgba(201,168,76,.18);
}

/* ---------------------------------------------------------------------
   9. COMPACT CHIP AREA
   Better continuity with the upgraded hero
--------------------------------------------------------------------- */
.hg-ask-panel--compact .hg-chip {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.11);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}

.hg-ask-panel--compact .hg-chip:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.hg-ask-panel--compact .hg-hero-note {
  color: rgba(255,255,255,.64);
}

/* ---------------------------------------------------------------------
   10. SKYLINE / LOWER ATMOSPHERE
   Make the bottom edge feel richer and less abrupt
--------------------------------------------------------------------- */
.hg-hero-skyline {
  opacity: .24;
  animation: hg-hero-skyline-float 18s ease-in-out infinite alternate;
}

.hg-hero-skyline::after {
  background:
    linear-gradient(to bottom, transparent, rgba(17,9,43,.82) 70%, rgba(17,9,43,1) 100%);
}

/* ---------------------------------------------------------------------
   11. OPTIONAL SOFT VIGNETTE
   Tightens the visual focus to the center
--------------------------------------------------------------------- */
.hg-hero .hg-container {
  position: relative;
}

.hg-hero .hg-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 48%, rgba(10, 5, 24, .16) 100%);
}

/* ---------------------------------------------------------------------
   12. ANIMATION KEYFRAMES
--------------------------------------------------------------------- */
@keyframes hg-hero-lux-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1.03);
    opacity: .95;
  }
  50% {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate3d(3%, -1.6%, 0) scale(1.04);
    opacity: .96;
  }
}

@keyframes hg-hero-skyline-float {
  0% {
    transform: translate3d(0,0,0);
    opacity: .22;
  }
  100% {
    transform: translate3d(-8px, 4px, 0);
    opacity: .28;
  }
}

/* ---------------------------------------------------------------------
   13. RESPONSIVE TUNING
--------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hg-hero-inner::before {
    width: 680px;
    height: 360px;
  }
}

@media (max-width: 780px) {
  .hg-hero.hg-hero--gradient::after {
    opacity: 0.05;
    background-size: 90px 90px, 90px 90px;
  }

  .hg-hero-inner::before {
    width: 560px;
    height: 300px;
    top: 18px;
  }

  .hg-tw-board.hg-tw-board--search::before {
    width: 96%;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .hg-hero-inner::before {
    width: 420px;
    height: 240px;
  }

  .hg-hero .hg-container::after {
    background:
      radial-gradient(circle at center, transparent 42%, rgba(10, 5, 24, .12) 100%);
  }
}

/* ---------------------------------------------------------------------
   14. REDUCED MOTION
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hg-hero.hg-hero--gradient::before,
  .hg-hero-skyline {
    animation: none !important;
  }
}

/* =====================================================================
   HERO FOREGROUND POLISH — MATCHES THE PREMIUM BACKGROUND UPGRADE
   Paste AFTER the hero background upgrade block

   PURPOSE
   - Tightens spacing and hierarchy in the hero
   - Makes the headline feel more editorial and premium
   - Improves board proportions, chip polish, and overall rhythm
   - Pushes the hero closer to a true 9.9/10 presentation
===================================================================== */

/* ---------------------------------------------------------------------
   1. HERO SECTION SPACING
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient {
  padding-top: 36px;
  padding-bottom: 54px;
}

.hg-hero-inner {
  max-width: 1140px;
}

/* ---------------------------------------------------------------------
   2. HERO TOP BLOCK
--------------------------------------------------------------------- */
.hg-hero-top {
  margin-bottom: 26px;
}

.hg-eyebrow {
  margin-bottom: 16px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}

.hg-hero-title-wrap {
  gap: 18px;
  margin-bottom: 14px;
}

.hg-hero-icon {
  width: 78px;
  height: 78px;
}

.hg-hero-title {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hg-hero-title em {
  margin-top: 4px;
  font-size: .98em;
  letter-spacing: -.04em;
}

.hg-hero-copy {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.58;
  color: rgba(255,255,255,.84);
}

/* ---------------------------------------------------------------------
   3. LIVE META BAR
--------------------------------------------------------------------- */
.hg-meta-bar {
  margin-top: 16px;
  margin-bottom: 24px;
  gap: 12px;
}

.hg-meta-bar__item {
  font-size: 12px;
  font-weight: 600;
}

.hg-meta-bar__dot {
  width: 8px;
  height: 8px;
}

/* ---------------------------------------------------------------------
   4. SEARCH BOARD OVERALL PROPORTIONS
--------------------------------------------------------------------- */
.hg-tw-board.hg-tw-board--search {
  max-width: 1040px;
  border-radius: 22px;
}

.hg-tw-board--search .hg-tw-topbar {
  padding: 16px 22px 15px;
}

.hg-tw-board--search .hg-tw-tabs {
  gap: 16px;
}

.hg-tw-board--search .hg-tw-tab {
  font-size: 15px;
  line-height: 1;
}

.hg-tw-board--search .hg-tw-tab.is-active::after {
  bottom: -15px;
  height: 3px;
}

.hg-tw-board--search .hg-tw-info {
  font-size: 11px;
  gap: 9px;
  opacity: .92;
}

/* ---------------------------------------------------------------------
   5. LEFT CTA + INPUT AREA
--------------------------------------------------------------------- */
.hg-tw-search-shell {
  grid-template-columns: 330px minmax(0, 1fr);
}

.hg-tw-search-left {
  padding: 18px 18px;
}

.hg-tw-search-link {
  min-height: 50px;
  padding: 0 46px 0 20px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 6px 16px rgba(0,0,0,.08);
}

.hg-tw-search-right {
  padding: 14px 16px;
}

.hg-tw-query-inner {
  min-height: 58px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  border: 1px solid #d7d1d8;
  background: rgba(255,255,255,.96);
}

.hg-tw-query-icon {
  color: #776f7d;
}

.hg-tw-query-input {
  font-size: 15px;
  color: #5f5868;
}

.hg-tw-query-input::placeholder {
  color: #7b7480;
}

.hg-tw-query-submit {
  min-height: 48px !important;
  padding: 0 22px !important;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* ---------------------------------------------------------------------
   6. CHIPS UNDER THE BOARD
--------------------------------------------------------------------- */
.hg-ask-panel--compact {
  max-width: 1040px;
  margin-top: 16px;
}

.hg-chips {
  gap: 10px;
}

.hg-chip {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.hg-hero-note {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------
   7. VISUAL BALANCE: NARROW THE HERO CONTENT BAND
--------------------------------------------------------------------- */
.hg-hero-top,
.hg-tw-board.hg-tw-board--search,
.hg-ask-panel--compact {
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------------------
   8. MOBILE + TABLET REFINEMENT
--------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hg-hero-title {
    font-size: clamp(38px, 6vw, 54px);
  }

  .hg-hero-copy {
    max-width: 760px;
    font-size: 16px;
  }

  .hg-tw-board.hg-tw-board--search,
  .hg-ask-panel--compact {
    max-width: 100%;
  }

  .hg-tw-search-shell {
    grid-template-columns: 1fr;
  }

  .hg-tw-search-left {
    border-right: 0;
    border-bottom: 1px solid #d8d1d8;
  }
}

@media (max-width: 780px) {
  .hg-hero.hg-hero--gradient {
    padding-top: 30px;
    padding-bottom: 42px;
  }

  .hg-eyebrow {
    margin-bottom: 14px;
  }

  .hg-hero-title-wrap {
    gap: 14px;
  }

  .hg-hero-icon {
    width: 68px;
    height: 68px;
  }

  .hg-hero-title {
    font-size: clamp(34px, 8vw, 46px);
  }

  .hg-hero-copy {
    font-size: 15.5px;
    line-height: 1.55;
  }

  .hg-meta-bar {
    gap: 10px;
    margin-bottom: 20px;
  }

  .hg-tw-board--search .hg-tw-topbar {
    padding: 14px 16px 13px;
  }

  .hg-tw-board--search .hg-tw-tabs {
    gap: 14px;
  }

  .hg-tw-board--search .hg-tw-tab {
    font-size: 14px;
  }

  .hg-tw-search-left,
  .hg-tw-search-right {
    padding: 12px;
  }

  .hg-chip {
    font-size: 12.5px;
    padding: 8px 14px;
  }
}

@media (max-width: 520px) {
  .hg-hero-title-wrap {
    flex-direction: column;
    gap: 10px;
  }

  .hg-hero-title {
    font-size: 32px;
    line-height: 1.04;
  }

  .hg-hero-copy {
    font-size: 15px;
  }

  .hg-tw-query-inner {
    border-radius: 18px;
    padding: 10px 10px 10px 14px;
  }

  .hg-tw-query-submit {
    width: 100%;
  }

  .hg-chip {
    width: auto;
    max-width: 100%;
  }
}
/* =====================================================================
   HERO ART-DIRECTION PASS
   Paste AFTER the "HERO FOREGROUND POLISH" block

   PURPOSE
   - Introduces premium depth, atmosphere, and brand character
   - Adds runway-light / skyline / luxury-night-travel mood
   - Keeps performance reasonable and fully CSS-driven
   - Designed to elevate the hero from polished to memorable
===================================================================== */

/* ---------------------------------------------------------------------
   1. HERO MASTER COMPOSITION
   Adds layered color depth and a more cinematic base
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient {
  position: relative;
  background:
    radial-gradient(circle at 14% 18%, rgba(139, 92, 246, .18) 0%, transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(201,168,76,.10) 0%, transparent 16%),
    radial-gradient(circle at 84% 76%, rgba(107, 63, 160, .14) 0%, transparent 24%),
    linear-gradient(180deg, #2a1450 0%, #1d0f3f 46%, #170c36 100%) !important;
}

/* ---------------------------------------------------------------------
   2. SOFT GRAIN
   Adds subtle luxury texture so the background does not feel digitally flat
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient > .hg-container::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle at 80% 30%, #fff 0 1px, transparent 1.7px),
    radial-gradient(circle at 40% 70%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 65% 55%, #fff 0 1px, transparent 1.8px);
  background-size: 120px 120px, 160px 160px, 140px 140px, 180px 180px;
}

/* ---------------------------------------------------------------------
   3. RUNWAY / HORIZON GLOW
   Creates a premium airport-night feel without being literal
--------------------------------------------------------------------- */
.hg-hero.hg-hero--gradient::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.02) 18%,
      rgba(201,168,76,.06) 48%,
      rgba(85,37,131,.10) 78%,
      rgba(0,0,0,0) 100%);
  filter: blur(14px);
  opacity: .8;
}

/* ---------------------------------------------------------------------
   4. LOWER ATMOSPHERIC LIGHT BAND
   Gives the lower hero a richer base so the board sits in a believable scene
--------------------------------------------------------------------- */
.hg-hero-inner::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: min(1200px, 96vw);
  height: 220px;
  transform: translateX(-50%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(106, 162, 255, .10) 0%,
      rgba(110, 84, 199, .10) 24%,
      rgba(61,26,96,.06) 48%,
      rgba(0,0,0,0) 72%);
  filter: blur(28px);
  opacity: .95;
}

/* ---------------------------------------------------------------------
   5. IMPROVE SKYLINE TREATMENT
   Make the skyline feel more premium and intentional
--------------------------------------------------------------------- */
.hg-hero-skyline {
  height: 230px;
  opacity: .34;
  filter: blur(.15px);
}

.hg-hero-skyline svg {
  opacity: .95;
}

/* subtle fade into center for a more art-directed composition */
.hg-hero-skyline::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(23,12,54,.70) 0%,
      rgba(23,12,54,.08) 12%,
      rgba(23,12,54,0) 24%,
      rgba(23,12,54,0) 76%,
      rgba(23,12,54,.08) 88%,
      rgba(23,12,54,.70) 100%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   6. SPOTLIGHT BEHIND MAIN CONTENT
   Creates a focal zone behind the headline and board
--------------------------------------------------------------------- */
.hg-hero-top::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(920px, 88vw);
  height: 320px;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center,
      rgba(122, 162, 255, .10) 0%,
      rgba(255,255,255,.05) 18%,
      rgba(85,37,131,.08) 36%,
      rgba(0,0,0,0) 68%);
  filter: blur(26px);
}

/* ensure positioning context */
.hg-hero-top {
  position: relative;
}

/* ---------------------------------------------------------------------
   7. THOMAS ICON HALO REFINED
   Less cartoon glow, more premium focal treatment
--------------------------------------------------------------------- */
.hg-hero-title-wrap::before {
  width: 150px;
  height: 150px;
  background:
    radial-gradient(circle,
      rgba(201,168,76,.22) 0%,
      rgba(201,168,76,.10) 28%,
      rgba(255,255,255,.03) 44%,
      transparent 72%);
  filter: blur(22px);
}

/* ---------------------------------------------------------------------
   8. HEADLINE TREATMENT
   Stronger luxury/editorial hierarchy
--------------------------------------------------------------------- */
.hg-hero-title {
  text-shadow:
    0 1px 0 rgba(255,255,255,.04),
    0 12px 36px rgba(0,0,0,.22);
}

.hg-hero-title em {
  text-shadow:
    0 1px 0 rgba(255,255,255,.06),
    0 10px 26px rgba(0,0,0,.18);
}

.hg-hero-copy {
  text-shadow: 0 6px 22px rgba(0,0,0,.18);
}

/* ---------------------------------------------------------------------
   9. BOARD PREMIUM GLASS REFINEMENT
--------------------------------------------------------------------- */
.hg-tw-board.hg-tw-board--search {
  background:
    linear-gradient(180deg, rgba(76,40,124,.88) 0%, rgba(54,27,94,.92) 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 24px 70px rgba(5, 5, 18, .34),
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(255,255,255,.03) inset;
}

.hg-tw-board--search .hg-tw-topbar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.hg-tw-search-shell {
  background:
    linear-gradient(180deg, rgba(241,238,243,.96), rgba(233,228,236,.98));
}

/* ---------------------------------------------------------------------
   10. SEARCH FIELD DEPTH
--------------------------------------------------------------------- */
.hg-tw-query-inner {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(247,244,247,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.8),
    0 1px 0 rgba(255,255,255,.45);
}

.hg-tw-query-inner:focus-within {
  border-color: rgba(85,37,131,.65);
  box-shadow:
    0 0 0 3px rgba(85,37,131,.12),
    inset 0 1px 0 rgba(255,255,255,.85);
}

/* ---------------------------------------------------------------------
   11. LEFT CTA BALANCE
--------------------------------------------------------------------- */
.hg-tw-search-link {
  background:
    linear-gradient(180deg, #d5b35a 0%, #c9a84c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 8px 18px rgba(0,0,0,.10);
}

.hg-tw-search-link:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------
   12. CHIPS AS "LUXURY TAGS"
--------------------------------------------------------------------- */
.hg-ask-panel--compact .hg-chip {
  background:
    linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.11);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 16px rgba(0,0,0,.06);
}

.hg-ask-panel--compact .hg-chip:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  border-color: rgba(255,255,255,.18);
}

/* ---------------------------------------------------------------------
   13. NOTE TEXT SOFTENING
--------------------------------------------------------------------- */
.hg-hero-note {
  color: rgba(255,255,255,.62);
}

/* ---------------------------------------------------------------------
   14. DESKTOP WIDTH TUNING
--------------------------------------------------------------------- */
@media (min-width: 1200px) {
  .hg-hero-inner {
    max-width: 1160px;
  }

  .hg-tw-board.hg-tw-board--search,
  .hg-ask-panel--compact {
    max-width: 1060px;
  }
}

/* ---------------------------------------------------------------------
   15. TABLET / MOBILE GRACEFUL FALLBACKS
--------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hg-hero-skyline {
    height: 180px;
    opacity: .28;
  }

  .hg-hero-top::before {
    width: min(760px, 94vw);
    height: 280px;
  }
}

@media (max-width: 780px) {
  .hg-hero.hg-hero--gradient::after {
    bottom: 26px;
    height: 120px;
    opacity: .65;
  }

  .hg-hero-inner::before {
    height: 160px;
    bottom: -8px;
    opacity: .75;
  }

  .hg-hero-skyline {
    height: 140px;
  }
}

@media (max-width: 520px) {
  .hg-hero-top::before,
  .hg-hero-inner::before,
  .hg-hero.hg-hero--gradient::after {
    opacity: .55;
    filter: blur(20px);
  }

  .hg-hero-skyline {
    display: none;
  }
}

/* ---------------------------------------------------------------------
   16. REDUCED MOTION
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hg-hero-top::before,
  .hg-hero-inner::before {
    animation: none !important;
  }
}



/* =====================================================================
   PREMIUM CLEAN HOMEPAGE OVERRIDES — v5.19.0
   Applied after legacy theme rules so the plugin-driven homepage feels
   lighter, cleaner, and more editorially premium.
===================================================================== */
body.home,
body.page-template-default.page .hg-plugin-home {
  background: #f6f8fb;
}
.site-header {
  background: rgba(255,255,255,.88);
  color: var(--hg-text);
  border-bottom: 1px solid rgba(15,23,42,.07);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(15,23,42,.04);
}
.hg-top-bar {
  border-bottom: 1px solid rgba(15,23,42,.06);
  color: var(--hg-muted);
}
.hg-top-bar a {
  color: #617086;
}
.hg-top-bar a:hover {
  color: var(--hg-purple-deep);
}
.site-branding a {
  color: var(--hg-text) !important;
}
.hg-nav a {
  color: #334155;
  border-radius: 999px;
}
.hg-nav a:hover {
  background: rgba(85,37,131,.08);
  color: var(--hg-purple-deep);
}
.hg-nav-cta {
  box-shadow: 0 10px 24px rgba(85,37,131,.14);
}
.hg-plugin-home {
  padding-top: 8px;
}
body.home .site-header + .hg-plugin-home,
body.home .site-header + main.hg-plugin-home {
  min-height: 50vh;
}
.site-footer {
  background: linear-gradient(180deg, var(--hg-purple-deep) 0%, var(--hg-purple) 100%);
  color: rgba(255,255,255,.82);
  padding: 56px 0 34px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer a {
  color: rgba(255,255,255,.82);
}
.site-footer a:hover {
  color: #fff;
}
.hg-footer-grid {
  gap: 36px;
}
.hg-footer-brand {
  font-size: 26px;
  letter-spacing: -.03em;
}
.hg-footer-col h4 {
  color: rgba(255,255,255,.96);
}
.hg-footer-trust {
  margin: 22px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}
.hg-footer-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.hg-footer-trust__links li {
  margin: 0;
}
.hg-footer-trust__note {
  margin: 0 0 14px;
  color: rgba(255,255,255,.72);
  max-width: 900px;
}
.hg-footer-trust__thomas {
  box-shadow: 0 12px 28px rgba(201,168,76,.18);
}
.hg-footer-bottom {
  border-top-color: rgba(255,255,255,.10);
}
@media (max-width: 767px) {
  .site-header {
    background: rgba(255,255,255,.94);
  }
  .hg-nav-main {
    min-height: 62px;
  }
  .site-branding a {
    font-size: 22px;
  }
}


/* =====================================================================
   PREMIUM RESPONSIVE HEADER + HOMEPAGE SHELL OVERRIDES (v5.20.0)
===================================================================== */
body.hg-nav-open { overflow: hidden; }
body.home .site-header { background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(15,23,42,.06); box-shadow: 0 10px 24px rgba(15,23,42,.05); color: #0f172a; }
body.home .site-header.is-scrolled { box-shadow: 0 14px 30px rgba(15,23,42,.08); }
body.home .hg-top-bar-wrap { background: #f8fafc; border-bottom: 1px solid rgba(15,23,42,.05); }
body.home .hg-top-bar { min-height: 40px; align-items: center; }
body.home .hg-top-bar a, body.home .hg-top-bar .at-lang-switcher, body.home .hg-top-bar .at-lang-toggle { color: #526074 !important; }
body.home .hg-top-bar a:hover { color: #163a5f !important; }
body.home .site-branding a { color: #0f172a !important; }
body.home .site-branding span { color: #b88a2b; }
body.home .hg-nav a { color: #24354b; border-radius: 999px; padding: 10px 14px; }
body.home .hg-nav a:hover { background: #f1f5f9; color: #102d49; }
body.home .hg-nav-cta { background: linear-gradient(180deg, #e1c679 0%, #c8a652 100%) !important; color: #102d49 !important; box-shadow: 0 10px 24px rgba(200,166,82,.28); border: 1px solid rgba(200,166,82,.38); }
body.home .hg-nav-main { min-height: 78px; }
.hg-header-actions { display: flex; align-items: center; gap: 12px; }
.hg-mobile-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(15,23,42,.08); background: #fff; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,.06); }
.hg-mobile-toggle span { width: 18px; height: 2px; background: #163a5f; border-radius: 99px; display: block; }
.hg-mobile-nav { position: fixed; inset: 0; background: rgba(2,6,23,.42); z-index: 120; padding: 18px 12px; }
.hg-mobile-nav-inner { background: rgba(255,255,255,.98); backdrop-filter: blur(18px); border: 1px solid rgba(226,232,240,.96); border-radius: 28px; box-shadow: 0 24px 70px rgba(15,23,42,.18); padding: 18px; max-width: 720px; margin: 0 auto; }
.hg-mobile-nav-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #e2e8f0; }
.hg-mobile-nav-title { font-size: 14px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: #163a5f; }
.hg-mobile-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; font-size: 28px; line-height: 1; color: #163a5f; cursor: pointer; }
.hg-mobile-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; }
.hg-mobile-nav-links a { display: block; padding: 14px 16px; border-radius: 16px; background: #f8fafc; color: #0f172a; font-weight: 700; text-decoration: none; border: 1px solid #e2e8f0; }
.hg-mobile-nav-links a:hover { background: #eef4f8; }
.hg-mobile-nav-actions { padding-top: 16px; }
.hg-nav-cta-mobile { width: 100%; }
body.home .hghe-homepage { overflow-x: clip; }
body.home .hghe-section { padding: clamp(54px, 7vw, 88px) 0; }
body.home .hghe-container { padding: 0 28px; }
body.home .hghe-hero-wrap { padding-top: 54px; }
body.home .hghe-hero-grid { grid-template-columns: minmax(0,1.04fr) minmax(360px,.96fr); gap: 38px; align-items: stretch; }
body.home .hghe-h1 { max-width: 12ch; }
body.home .hghe-subhead { max-width: 62ch; }
body.home .hghe-hero-panel, body.home .hghe-card, body.home .hghe-ask-panel, body.home .hghe-newsletter-card { border-radius: 24px; }
body.home .hghe-hero-panel { position: sticky; top: 108px; }
body.home .hghe-card, body.home .hghe-tool-card, body.home .hghe-mini-card, body.home .hghe-shortcut-card { min-height: 100%; }
body.home .hghe-grid-4, body.home .hghe-grid-5 { align-items: stretch; }
body.home .hghe-chip-row { row-gap: 12px; }
body.home .hghe-btn { min-height: 52px; }
body.home .hghe-shortcut-card { min-height: 112px; }
body.home .hghe-newsletter-card { grid-template-columns: 1.2fr .9fr; }
body.home .site-footer { background: linear-gradient(180deg, var(--hg-purple-deep) 0%, var(--hg-purple) 100%); border-top: 1px solid rgba(255,255,255,.08); }
body.home .site-footer, body.home .site-footer a { color: rgba(255,255,255,.82); }
body.home .site-footer a:hover { color: #fff; }
body.home .hg-footer-col h4, body.home .hg-footer-brand { color: #fff; }
body.home .hg-footer-brand span { color: var(--hg-gold); }
body.home .hg-footer-trust { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.10); }
body.home .hg-footer-trust__note { color: rgba(255,255,255,.72); }
body.home .hg-footer-bottom { border-top-color: rgba(255,255,255,.10); }
@media (max-width: 1200px) {
  body.home .hghe-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  body.home .hghe-hero-panel { position: relative; top: auto; }
}
@media (max-width: 1024px) {
  .hg-top-bar { gap: 14px; font-size: 12px; }
  body.home .hg-nav a { padding: 9px 11px; font-size: 13px; }
  body.home .hg-nav-main { min-height: 72px; }
  body.home .hghe-container { padding: 0 22px; }
  body.home .hghe-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.home .hghe-grid-5 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.home .hghe-newsletter-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hg-top-bar-wrap { display: none; }
  .hg-nav { display: none !important; }
  .hg-mobile-toggle { display: inline-flex; }
  .hg-nav-main { min-height: 70px; }
  .site-branding a { font-size: 24px; }
  .hg-header-actions .hg-nav-cta { display: none; }
  body.home .hghe-section-head { text-align: left; margin-left: 0; margin-right: 0; }
  body.home .hghe-grid-3, body.home .hghe-grid-4, body.home .hghe-grid-5 { grid-template-columns: 1fr 1fr; }
  body.home .hghe-form-grid { grid-template-columns: 1fr; }
  body.home .hghe-ask-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hg-container { width: min(var(--hg-container), calc(100% - 28px)); }
  .site-header { position: sticky; }
  .hg-mobile-nav { padding: 10px; }
  .hg-mobile-nav-links { grid-template-columns: 1fr; }
  body.home .hghe-container { padding: 0 14px; }
  body.home .hghe-hero-wrap { padding-top: 30px; }
  body.home .hghe-h1 { font-size: clamp(34px, 10vw, 44px); }
  body.home .hghe-subhead { font-size: 16px; line-height: 1.55; }
  body.home .hghe-cta-row, body.home .hghe-chip-row { display: grid; grid-template-columns: 1fr; }
  body.home .hghe-cta-row .hghe-btn, body.home .hghe-chip { width: 100%; }
  body.home .hghe-grid-3, body.home .hghe-grid-4, body.home .hghe-grid-5 { grid-template-columns: 1fr; gap: 16px; }
  body.home .hghe-card, body.home .hghe-hero-panel, body.home .hghe-ask-panel, body.home .hghe-newsletter-card { padding: 20px; border-radius: 20px; }
  body.home .hghe-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  body.home .hghe-tabs::-webkit-scrollbar { display: none; }
  body.home .hghe-tab { white-space: nowrap; }
  body.home .hghe-shortcut-card { min-height: 84px; }
}

/* Gold CTA alignment v5.20.1 */
.hg-nav-cta, .hg-nav-cta-mobile { background: linear-gradient(180deg, #e1c679 0%, #c8a652 100%) !important; color: #102d49 !important; border: 1px solid rgba(200,166,82,.38) !important; box-shadow: 0 10px 24px rgba(200,166,82,.28) !important; }
.hg-nav-cta:hover, .hg-nav-cta-mobile:hover { background: linear-gradient(180deg, #e7cf8d 0%, #cfaf5e 100%) !important; color: #102d49 !important; }


/* Footer consistency override v5.22.2.7 */
.site-footer {
  background: linear-gradient(180deg, var(--hg-purple-deep) 0%, var(--hg-purple) 100%) !important;
  color: rgba(255,255,255,.82) !important;
  padding: 56px 0 34px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
}
.site-footer a { color: rgba(255,255,255,.82) !important; }
.site-footer a:hover { color: #fff !important; }
.hg-footer-grid {
  gap: 36px !important;
  margin-bottom: 40px !important;
}
.hg-footer-brand {
  font-size: 26px !important;
  letter-spacing: -.03em !important;
  color: #fff !important;
}
.hg-footer-brand span { color: var(--hg-gold) !important; }
.hg-footer-col h4 { color: rgba(255,255,255,.96) !important; }
.hg-footer-trust {
  margin: 22px 0 28px !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.06) !important;
}
.hg-footer-trust__links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px 18px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}
.hg-footer-trust__links li { margin: 0 !important; }
.hg-footer-trust__note {
  margin: 0 0 14px !important;
  color: rgba(255,255,255,.72) !important;
  max-width: 900px !important;
}
.hg-footer-bottom {
  border-top-color: rgba(255,255,255,.10) !important;
  padding-top: 24px !important;
}


/* =====================================================================
   TECHNEST / FIXED_THEME_NOASK SUPER MENU REFINEMENT (v5.22.2.9)
   Flatsome-inspired dropdowns: narrower, easier to hover, cleaner columns.
===================================================================== */
/* =====================================================================
   Technest / fixed_theme_noask super menu — v5.22.3.1
   Flatsome-inspired dropdown styling.

   Goal:
   - make desktop dropdowns look much closer to the Flatsome Explore demo
   - keep them narrower and easier to hover
   - use a clean white panel with a small arrow notch
   - support both short single-column menus and longer two-column menus
===================================================================== */
.site-header,
.hg-nav-main,
.hg-nav,
.hg-nav > div {
  overflow: visible;
}

.hg-nav-menu,
.hg-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Desktop menu bar */
.hg-nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.hg-nav-menu > .menu-item {
  position: relative;
}

.hg-nav-menu > .menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #3f4854;
  white-space: nowrap;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.hg-nav-menu > .menu-item:hover > a,
.hg-nav-menu > .menu-item:focus-within > a,
.hg-nav-menu > .menu-item.is-hover > a {
  color: #162334;
  background: rgba(15,23,42,.045);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}

.hg-nav-menu > .menu-item-has-children > a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .7;
}

/* Desktop dropdown panel */
.hg-nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  width: min(280px, calc(100vw - 32px));
  max-width: 280px;
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 14px 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 9999;
}

/* Arrow notch at the top of dropdown */
.hg-nav-menu .sub-menu::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.08);
  border-top: 1px solid rgba(0,0,0,.08);
  transform: translateX(-50%) rotate(45deg);
}

/* Invisible hover bridge so the dropdown is easier to reach */
.hg-nav-menu .sub-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

/* Wider two-column variant for longer lists */
.hg-nav-menu .sub-menu.is-menu-wide {
  width: min(560px, calc(100vw - 40px));
  min-width: 520px;
  max-width: 560px;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0;
  padding: 18px 22px;
}

/* Edge-safe positioning for the first and last items */
.hg-nav-menu > .menu-item:first-child > .sub-menu {
  left: 0;
  transform: translateX(0) translateY(8px);
}
.hg-nav-menu > .menu-item:first-child > .sub-menu::after {
  left: 28px;
  transform: rotate(45deg);
}
.hg-nav-menu > .menu-item:last-child > .sub-menu,
.hg-nav-menu > .menu-item:nth-last-child(2) > .sub-menu {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}
.hg-nav-menu > .menu-item:last-child > .sub-menu::after,
.hg-nav-menu > .menu-item:nth-last-child(2) > .sub-menu::after {
  left: auto;
  right: 28px;
  transform: rotate(45deg);
}

.hg-nav-menu .menu-item:hover > .sub-menu,
.hg-nav-menu .menu-item:focus-within > .sub-menu,
.hg-nav-menu .menu-item.is-hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.hg-nav-menu > .menu-item:first-child:hover > .sub-menu,
.hg-nav-menu > .menu-item:first-child:focus-within > .sub-menu,
.hg-nav-menu > .menu-item:first-child.is-hover > .sub-menu,
.hg-nav-menu > .menu-item:last-child:hover > .sub-menu,
.hg-nav-menu > .menu-item:last-child:focus-within > .sub-menu,
.hg-nav-menu > .menu-item:last-child.is-hover > .sub-menu,
.hg-nav-menu > .menu-item:nth-last-child(2):hover > .sub-menu,
.hg-nav-menu > .menu-item:nth-last-child(2):focus-within > .sub-menu,
.hg-nav-menu > .menu-item:nth-last-child(2).is-hover > .sub-menu {
  transform: translateX(0) translateY(0);
}

.hg-nav-menu .sub-menu > .menu-item {
  min-width: 0;
}

.hg-nav-menu .sub-menu > .menu-item > a {
  display: block;
  padding: 13px 30px;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #ececec;
  transition: color .15s ease, background .15s ease, padding-left .15s ease;
}

.hg-nav-menu .sub-menu > .menu-item:last-child > a,
.hg-nav-menu .sub-menu.is-menu-wide > .menu-item:nth-last-child(-n+2) > a {
  border-bottom: 0;
}

.hg-nav-menu .sub-menu > .menu-item > a:hover,
.hg-nav-menu .sub-menu > .menu-item > a:focus-visible {
  color: #1f2b38;
  background: #fafafa;
  padding-left: 34px;
}

/* mobile menu supports nested submenus */
.hg-mobile-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 14px;
}

.hg-mobile-menu > .menu-item {
  position: relative;
}

.hg-mobile-menu > .menu-item > a {
  display: block;
  padding: 14px 16px;
  padding-right: 52px;
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.hg-mobile-sub-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
}

.hg-mobile-sub-toggle span,
.hg-mobile-sub-toggle span::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #163a5f;
  border-radius: 99px;
  transform: translate(-50%, -50%);
}

.hg-mobile-sub-toggle span::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.hg-mobile-sub-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.hg-mobile-menu .sub-menu {
  grid-column: 1 / -1;
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 4px 0;
}

.hg-mobile-menu .sub-menu li + li {
  margin-top: 8px;
}

.hg-mobile-menu .sub-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #24354b;
  font-weight: 600;
  text-decoration: none;
}

.hg-mobile-menu .menu-item.is-open > a {
  background: #eef4f8;
}

@media (max-width: 1180px) {
  .hg-nav-menu {
    gap: 4px;
  }

  .hg-nav-menu > .menu-item > a {
    padding: 0 11px;
    font-size: 14px;
  }

  .hg-nav-menu .sub-menu {
    width: clamp(300px, 28vw, 340px);
    min-width: 300px;
    max-width: 340px;
  }
}

@media (max-width: 980px) {
  .hg-nav-menu .sub-menu {
    display: none !important;
  }
}


/* =====================================================================
   Technest premium mega menu — v5.22.4.0
   Flatsome-style dropdowns with compact single panels and richer mega panels
===================================================================== */
.hg-nav-menu--premium {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-nav-menu--premium > .menu-item {
  position: relative;
}

.hg-nav-menu--premium > .menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #4a4f57;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.hg-nav-menu--premium > .menu-item:hover > a,
.hg-nav-menu--premium > .menu-item:focus-within > a,
.hg-nav-menu--premium > .menu-item.is-hover > a {
  color: #1a2431;
  background: rgba(15,23,42,.05);
}

.hg-nav-menu--premium > .menu-item-has-children > a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: .75;
}

.hg-premium-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10020;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.hg-nav-menu--premium > .menu-item:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item.is-hover > .hg-premium-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hg-nav-menu--premium > .menu-item:first-child > .hg-premium-dropdown {
  left: 0;
  transform: translateX(0) translateY(10px);
}
.hg-nav-menu--premium > .menu-item:first-child:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:first-child:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:first-child.is-hover > .hg-premium-dropdown {
  transform: translateX(0) translateY(0);
}
.hg-nav-menu--premium > .menu-item:last-child > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2) > .hg-premium-dropdown {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(10px);
}
.hg-nav-menu--premium > .menu-item:last-child:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:last-child:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:last-child.is-hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2):hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2):focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2).is-hover > .hg-premium-dropdown {
  transform: translateX(0) translateY(0);
}

.hg-premium-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.hg-premium-notch {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.10);
  border-top: 1px solid rgba(0,0,0,.10);
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
}
.hg-nav-menu--premium > .menu-item:first-child > .hg-premium-dropdown .hg-premium-notch {
  left: 30px;
  transform: rotate(45deg);
}
.hg-nav-menu--premium > .menu-item:last-child > .hg-premium-dropdown .hg-premium-notch,
.hg-nav-menu--premium > .menu-item:nth-last-child(2) > .hg-premium-dropdown .hg-premium-notch {
  left: auto;
  right: 30px;
  transform: rotate(45deg);
}

.hg-premium-dropdown--simple {
  min-width: 260px;
  width: 260px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.hg-premium-dropdown--mega {
  min-width: 760px;
  width: min(760px, calc(100vw - 40px));
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.hg-premium-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 230px;
  align-items: stretch;
}

.hg-premium-col {
  padding: 28px 28px 22px;
  border-right: 1px solid #ececec;
  min-width: 0;
}

.hg-premium-col-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #111;
  letter-spacing: .01em;
}

.hg-premium-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hg-premium-links > li > a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid #ececec;
  color: #5e5e5e;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s ease;
}

.hg-premium-links > li:last-child > a {
  border-bottom: 0;
}

.hg-premium-links > li > a:hover,
.hg-premium-links > li > a:focus-visible {
  color: #1f2b38;
  text-decoration: none;
}

.hg-premium-dropdown--simple .hg-premium-links {
  padding: 18px 28px;
}
.hg-premium-dropdown--simple .hg-premium-links > li > a {
  font-size: 17px;
}

.hg-premium-promo {
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.02)),
    linear-gradient(135deg, #f5f6f8 0%, #eceef2 100%);
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

.hg-premium-promo-inner {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hg-premium-promo-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(200,169,107,.28) 0%, rgba(200,169,107,0) 34%),
    linear-gradient(180deg, rgba(22,58,95,.05) 0%, rgba(22,58,95,.12) 100%);
  pointer-events: none;
}
.hg-premium-promo-eyebrow,
.hg-premium-promo-title,
.hg-premium-promo p,
.hg-premium-promo-btn {
  position: relative;
  z-index: 1;
}
.hg-premium-promo-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c7786;
}
.hg-premium-promo-title {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #172131;
}
.hg-premium-promo p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #526074;
}
.hg-premium-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7bb83 0%, #c8a96b 100%);
  color: #182338;
  text-decoration: none;
  font-weight: 800;
  align-self: flex-start;
}

@media (max-width: 1180px) {
  .hg-premium-dropdown--mega {
    min-width: 680px;
    width: min(680px, calc(100vw - 34px));
  }
  .hg-premium-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) 210px;
  }
}

@media (max-width: 980px) {
  .hg-premium-dropdown {
    display: none !important;
  }
}


/* =====================================================================
   5.22.4.1 — mega menu layout hardening
   Fixes cases where cached/legacy nav styles leave dropdown content inline.
===================================================================== */
.hg-nav,
.hg-nav-main,
.site-header,
.site-header .hg-container {
  overflow: visible;
}

.hg-nav-menu--premium,
.hg-nav-menu--premium ul,
.hg-nav-menu--premium li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.hg-nav-menu--premium > .menu-item {
  display: flex;
  align-items: center;
}

/* Hide legacy WP submenus in the desktop premium nav renderer */
.hg-nav-menu--premium > .menu-item > .sub-menu {
  display: none !important;
}

/* Premium dropdowns must never affect layout flow */
.hg-nav-menu--premium > .menu-item > .hg-premium-dropdown {
  display: block !important;
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(10px) !important;
  z-index: 10020 !important;
}

.hg-nav-menu--premium > .menu-item:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item.is-hover > .hg-premium-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.hg-nav-menu--premium > .menu-item:first-child > .hg-premium-dropdown {
  left: 0 !important;
  transform: translateX(0) translateY(10px) !important;
}
.hg-nav-menu--premium > .menu-item:first-child:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:first-child:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:first-child.is-hover > .hg-premium-dropdown {
  transform: translateX(0) translateY(0) !important;
}

.hg-nav-menu--premium > .menu-item:last-child > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2) > .hg-premium-dropdown {
  left: auto !important;
  right: 0 !important;
  transform: translateX(0) translateY(10px) !important;
}
.hg-nav-menu--premium > .menu-item:last-child:hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:last-child:focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:last-child.is-hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2):hover > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2):focus-within > .hg-premium-dropdown,
.hg-nav-menu--premium > .menu-item:nth-last-child(2).is-hover > .hg-premium-dropdown {
  transform: translateX(0) translateY(0) !important;
}

/* Match the narrower Flatsome-style proportions better */
.hg-premium-dropdown--mega {
  min-width: 640px !important;
  width: min(640px, calc(100vw - 40px)) !important;
}
.hg-premium-grid {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) 190px !important;
}
.hg-premium-col {
  padding: 22px 24px 18px !important;
}
.hg-premium-promo-inner {
  padding: 22px 18px !important;
}
.hg-premium-promo-title {
  font-size: 22px !important;
}

/* Narrow single-column dropdowns */
.hg-premium-dropdown--simple {
  min-width: 280px !important;
  width: 280px !important;
}
.hg-premium-dropdown--simple .hg-premium-links {
  padding: 14px 20px !important;
}
.hg-premium-dropdown--simple .hg-premium-links > li > a {
  font-size: 15px !important;
  padding: 10px 0 !important;
}

/* Mobile: never let desktop dropdown panels render inline */
@media (max-width: 980px) {
  .hg-nav-menu--premium > .menu-item > .hg-premium-dropdown {
    display: none !important;
  }
}
