/* HomyGod static-site layer: accessibility, touch-ups, and replacements for WordPress-only UI. */

/* Heebo, self-hosted (the WordPress OMGF plugin stopped emitting its @font-face rules). */
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 200; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-200.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 300; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-300.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-500.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-600.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-700.woff2") format("woff2"); }
@font-face { font-family: "Heebo"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/wp-content/uploads/omgf/google-fonts-1-ul-hb7kp/heebo-normal-700.woff2") format("woff2"); }
:root {
  --hg-navy: #1D3E5F;
  --hg-blue: #2C6FAA;
  --hg-orange: #FF8700;
  --hg-orange-ink: #A35500; /* orange that passes 4.5:1 on white */
  --hg-ink: #1f2a37;
  --hg-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Focus visibility (WCAG 2.4.7) ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--hg-navy) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff !important;
  border-radius: 2px;
}
.elementor-location-footer :where(a, button, input):focus-visible { outline-color: var(--hg-orange) !important; }
::selection { background: var(--hg-orange); color: #fff; }

/* Skip link: visible when focused (Astra hides it off-screen). */
.skip-link.screen-reader-text:focus {
  inset-inline-start: 12px; top: 12px; z-index: 100000;
  clip: auto !important; clip-path: none !important; width: auto; height: auto;
  padding: 12px 20px; background: var(--hg-navy); color: #fff !important; font-weight: 700; text-decoration: none;
}

/* ---------- Contrast fixes (WCAG 1.4.3) ---------- */
/* Elementor's default body grey (#7A7A7A) is 4.3:1 on white. */
body, .elementor-widget-text-editor { color: #555b62; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--hg-orange-ink) !important; }

/* Grey text that sits on the dark footer keeps its original light tone. */
.elementor-25926 .elementor-element.elementor-element-3b53a85 { color: #ADADAD !important; }
.ld_course_grid .ribbon, .ld-course-list-items .ribbon { color: #1D3E5F !important; }
.wp-block-button__link[style*="fcb900" i], .wp-block-button__link[style*="fcb900" i] *, .has-luminous-vivid-amber-background-color, .has-luminous-vivid-amber-background-color * { color: #1D3E5F !important; }
.has-luminous-vivid-amber-color { color: #996D00 !important; }
.woocommerce del, .woocommerce del .woocommerce-Price-amount, del .woocommerce-Price-amount bdi { color: #6b5232 !important; }
.elementor-toc__list-item-text.elementor-item-active { color: #9A5200 !important; }
.elementor-tab-title.elementor-active, .elementor-tab-title.elementor-active a { color: #9A5200 !important; }
.elementor-element-6f94daae p { color: #6b6f73 !important; }
.has-vivid-cyan-blue-color { color: #057CC0 !important; }
.wp-block-button__link.has-luminous-vivid-orange-color { color: #fff !important; }
.wp-block-button__link * { color: inherit !important; }
.wp-block-button__link.has-luminous-vivid-amber-background-color, .wp-block-button__link[style*="fcb900" i] { color: #1D3E5F !important; }
.woocommerce del { opacity: 1 !important; }
.wp-block-button__link[style*="ba0c49" i] { color: #fff !important; }
.elementor-location-footer a[href*="bmf360.co.il"], a[href="https://bmf360.co.il/"] { color: #d9d9d9 !important; }

/* Inline links inside running text must not rely on color alone (WCAG 1.4.1). */
:is(.entry-content, .elementor-widget-theme-post-content, .elementor-widget-text-editor, .elementor-text-editor, .elementor-tab-content, .elementor-toggle-item) :is(p, li, span, td, strong, b, em, figcaption) a:not(.button):not(.elementor-button):not(.wp-block-button__link):not(.hg-step):not(.hg-btn):not(.hg-pod-card-link) {
  text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* Visitor-irrelevant WooCommerce/LearnDash leftovers on the static site. */
.ast-woo-product-category, .ld-progress, .learndash-wrapper .ld-progress { display: none !important; }

/* ---------- WhatsApp enquiry buttons (replace WooCommerce checkout) ---------- */
a.button.hg-enquire {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 10px 22px !important;
  background: #118748 !important; color: #fff !important; border-radius: 4px; font-weight: 700; text-decoration: none;
  transition: transform .25s var(--hg-ease), box-shadow .25s var(--hg-ease);
}
a.button.hg-enquire:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(18, 140, 74, .55); }
a.button.hg-enquire:active { transform: translateY(0); box-shadow: none; }
.woocommerce div.product a.single_add_to_cart_button.hg-enquire { margin-top: 8px; float: none; }

/* ---------- Header login: members area no longer exists on the static site ---------- */
.elementor-widget-login { display: none !important; }

/* Statically embedded YouTube testimonials. */
.elementor-widget-video .elementor-wrapper:has(> .hg-yt) { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.elementor-wrapper > iframe.hg-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Course grid row uses bootstrap negative margins that overflow tablets by 15px. */
.ld-course-list-items.row { margin-inline: 0; }
body { overflow-x: clip; }

/* ---------- Header nav: keep the desktop menu on one line (it wrapped "יצירת קשר") ---------- */
@media (min-width: 1025px) {
  .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap: nowrap; }
  .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu > li > .elementor-item { white-space: nowrap; padding-inline: clamp(8px, .9vw, 15px); }
}

/* ---------- Form feedback ---------- */
.hg-form-message { width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: 4px; font-weight: 600; line-height: 1.5; }
.hg-form-message.elementor-message-success { background: #e8f6ee; color: #0d5c31; }
.hg-form-message.elementor-message-danger { background: #fdecec; color: #8a1c1c; }
.hg-form-message::before { display: none; }
form.elementor-form[aria-busy="true"] [type="submit"] { opacity: .7; cursor: progress; }

/* ---------- Touch targets on small screens (WCAG 2.5.5 advisory) ---------- */
@media (pointer: coarse) {
  .elementor-icon-list-item > a, .elementor-nav-menu--dropdown a, .elementor-social-icon { min-height: 44px; }
  .elementor-icon-list-item > a { display: inline-flex; align-items: center; }
}

/* ---------- Accessibility statement page ---------- */
.hg-statement-title { text-align: center; color: var(--hg-navy); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 1.5em 0 .8em; }
.hg-statement { max-width: 70ch; margin: 0 auto 4em; line-height: 1.75; color: var(--hg-ink); }
.hg-statement h2 { font-size: 1.35rem; color: var(--hg-navy); margin: 1.8em 0 .5em; }
.hg-statement ul { margin: 0 1.2em 1em 0; }
.hg-statement a { color: var(--hg-blue); text-decoration: underline; text-underline-offset: 3px; }
.hg-a11y-link { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accessibility menu ---------- */
#hg-a11y { position: fixed; inset-inline-end: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 99998; font-family: "Heebo", Arial, sans-serif; direction: rtl; }
#hg-a11y .hg-a11y-toggle {
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%;
  background: var(--hg-navy); color: #fff; cursor: pointer;
  box-shadow: 0 2px 4px rgba(29, 62, 95, .2), 0 10px 24px -8px rgba(29, 62, 95, .45);
  transition: transform .3s var(--hg-ease);
}
#hg-a11y .hg-a11y-toggle:hover { transform: scale(1.06); }
#hg-a11y .hg-a11y-toggle:active { transform: scale(.96); }
#hg-a11y .hg-a11y-panel {
  position: absolute; inset-inline-end: 0; bottom: 64px; width: min(300px, calc(100vw - 32px));
  background: #fff; color: var(--hg-ink); border-radius: 12px; padding: 16px;
  box-shadow: 0 4px 10px rgba(29, 62, 95, .12), 0 24px 48px -12px rgba(29, 62, 95, .35);
  display: grid; gap: 8px;
}
#hg-a11y .hg-a11y-panel[hidden] { display: none; }
#hg-a11y .hg-a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
#hg-a11y h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--hg-navy); letter-spacing: 0; }
#hg-a11y button { font: inherit; letter-spacing: 0; text-transform: none; }
#hg-a11y .hg-a11y-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--hg-ink); border-radius: 8px; cursor: pointer; padding: 0; }
#hg-a11y .hg-a11y-close:hover { background: #eef2f6; }
#hg-a11y .hg-a11y-row { display: flex; align-items: center; gap: 8px; padding: 4px 0 8px; }
#hg-a11y .hg-a11y-label { flex: 1; font-size: 15px; }
#hg-a11y .hg-a11y-level { min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
#hg-a11y .hg-a11y-step,
#hg-a11y .hg-a11y-opt,
#hg-a11y .hg-a11y-reset {
  min-height: 44px; border: 1.5px solid #c9d3de; background: #fff; color: var(--hg-ink); border-radius: 8px; cursor: pointer; font-size: 15px; padding: 0 14px;
  transition: background-color .2s var(--hg-ease), border-color .2s var(--hg-ease);
}
#hg-a11y .hg-a11y-step { min-width: 48px; font-weight: 700; }
#hg-a11y .hg-a11y-opt { text-align: start; display: flex; align-items: center; justify-content: space-between; }
#hg-a11y .hg-a11y-opt::after { content: ""; width: 34px; height: 20px; border-radius: 10px; background: #c9d3de; box-shadow: inset -15px 0 0 2px #c9d3de, inset -15px 0 0 3px #fff; transition: box-shadow .2s var(--hg-ease), background-color .2s var(--hg-ease); }
#hg-a11y .hg-a11y-opt[aria-pressed="true"] { border-color: var(--hg-navy); background: #eef3f8; }
#hg-a11y .hg-a11y-opt[aria-pressed="true"]::after { background: var(--hg-navy); box-shadow: inset 15px 0 0 2px var(--hg-navy), inset 15px 0 0 3px #fff; }
#hg-a11y :is(.hg-a11y-step, .hg-a11y-opt, .hg-a11y-reset):hover { border-color: var(--hg-navy); }
#hg-a11y :is(.hg-a11y-step, .hg-a11y-opt, .hg-a11y-reset):active { background: #e2e9f1; }
#hg-a11y .hg-a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
#hg-a11y .hg-a11y-foot a { color: var(--hg-blue); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; padding: 10px 0; }

/* Modes toggled from the menu */
html.hg-links a:not(#hg-a11y a) { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 1px; }
html.hg-readable body *:not(i):not([class*="fa-"]):not([class*="eicon"]):not([class*="icon"]) { font-family: Arial, "Heebo", sans-serif !important; letter-spacing: .01em !important; }
html.hg-still *, html.hg-still *::before, html.hg-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.hg-still .elementor-invisible { visibility: visible !important; opacity: 1 !important; }
html.hg-contrast body { background: #000 !important; }
/* :not(#hg-x) lifts these above per-element Elementor rules that use !important. */
html.hg-contrast:not(#hg-x) body :where(*:not(#hg-a11y, #hg-a11y *, img, video, svg, svg *, iframe)) {
  background-color: transparent !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important; box-shadow: none !important;
}
html.hg-contrast:not(#hg-x) body :where(.elementor-popup-modal .dialog-widget-content, .elementor-nav-menu--dropdown, .sub-menu, .elementor-menu-toggle + nav, .elementor-sticky, .elementor-sticky--active, .elementor-location-header > *) { background-color: #000 !important; }
/* Keep photos (hero, backgrounds) visible but dimmed so overlaid text stays readable. */
html.hg-contrast .elementor-background-overlay { background: rgba(0, 0, 0, .55) !important; opacity: 1 !important; }
html.hg-contrast:not(#hg-x) body :where(a:not(#hg-a11y a)), html.hg-contrast:not(#hg-x) body :where(a:not(#hg-a11y a) *) { color: #ffe600 !important; }
html.hg-contrast:not(#hg-x) body :where(.elementor-button, button, input[type=submit]) { border: 2px solid #fff !important; }
/* Dark logo artwork on black: give it a light plate. */
html.hg-contrast :is(.elementor-widget-theme-site-logo, .elementor-widget-image) img[alt*="הומאיגד"] { background: #fff !important; padding: 4px; border-radius: 4px; }

/* ---------- Reduced motion: keep content, drop entrance and carousel motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { visibility: visible !important; }
  .animated { animation-duration: 1ms !important; animation-delay: 0s !important; }
  html { scroll-behavior: auto !important; }
}

@media print { #hg-a11y { display: none !important; } }

/* Product reviews need WordPress accounts, which the static site no longer has. */
.woocommerce-tabs .reviews_tab, .woocommerce-tabs #tab-reviews { display: none !important; }
.woocommerce-tabs:not(:has(.description_tab, .additional_information_tab)) { display: none !important; }

/* Home hero: new event photo (2026-11), responsive sources. */
.elementor-26324 .elementor-element.elementor-element-42f36218:not(.elementor-motion-effects-element-type-background),
.elementor-26324 .elementor-element.elementor-element-42f36218 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: image-set(url("/wp-content/uploads/2026/11/homygod-hero-2400.webp") type("image/webp"), url("/wp-content/uploads/2026/11/homygod-hero-2400.jpg") type("image/jpeg")) !important;
  background-position: center 40% !important;
}
@media (max-width: 767px) {
  .elementor-26324 .elementor-element.elementor-element-42f36218:not(.elementor-motion-effects-element-type-background),
  .elementor-26324 .elementor-element.elementor-element-42f36218 > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: image-set(url("/wp-content/uploads/2026/11/homygod-hero-1200.webp") type("image/webp"), url("/wp-content/uploads/2026/11/homygod-hero-1200.jpg") type("image/jpeg")) !important;
    background-position: 22% 40% !important;
  }
}

/* ---------- Student area (login, my courses, lesson player) ---------- */
.hg-app { --hg-line: #dde3ea; color: var(--hg-ink); font-size: 17px; line-height: 1.7; }
.hg-app h1 { color: var(--hg-navy); font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.25; margin: .4em 0 .6em; }
.hg-app h2 { color: var(--hg-navy); }
.hg-card { background: #fff; border-radius: 14px; padding: clamp(20px, 4vw, 36px); box-shadow: 0 1px 3px rgba(29, 62, 95, .08), 0 16px 36px -22px rgba(29, 62, 95, .4); }
.hg-narrow { max-width: 560px; margin: 2em auto; }
.hg-muted { color: #5b6673; }
.hg-alert { background: #fdecec; color: #8a1c1c; padding: 10px 14px; border-radius: 8px; }
.hg-success { background: #e8f6ee; color: #0d5c31; padding: 12px 16px; border-radius: 10px; font-weight: 500; }
.hg-form { display: grid; gap: 8px; margin-top: 1em; }
.hg-form label { font-weight: 600; }
.hg-form input { font: inherit; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c4d0; border-radius: 8px; width: 100%; }
.hg-form input:focus { border-color: var(--hg-navy); outline: 3px solid var(--hg-navy); outline-offset: 1px; }
.hg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 2px solid var(--hg-navy);
  background: var(--hg-navy); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: transform .25s var(--hg-ease), box-shadow .25s var(--hg-ease); }
.hg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(29, 62, 95, .7); }
.hg-btn:active { transform: translateY(0); box-shadow: none; }
.hg-btn-ghost { background: #fff; color: var(--hg-navy) !important; }
.hg-link { background: none; border: 0; padding: 6px 2px; color: var(--hg-blue); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.hg-inline { display: inline; margin: 0; }
.hg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.hg-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; }
.hg-course-grid { list-style: none; margin: 1em 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.hg-course-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(29, 62, 95, .08), 0 16px 36px -24px rgba(29, 62, 95, .45); }
.hg-course-card img, .hg-course-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e8eef3; display: block; }
.hg-course-ph { background: radial-gradient(120% 90% at 85% 15%, rgba(247, 134, 30, .55), transparent 60%), linear-gradient(135deg, #1d3e5f, #2b5a86); }
.hg-course-body { padding: 16px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.hg-course-body h2 { font-size: 1.15rem; margin: 0; line-height: 1.35; }
.hg-course-body .hg-btn { justify-self: start; margin-top: 4px; }
.hg-progress { height: 8px; border-radius: 999px; background: #e3e9ef; overflow: hidden; }
.hg-progress span { display: block; height: 100%; background: var(--hg-navy); border-radius: inherit; }
.hg-learn { display: grid; grid-template-columns: minmax(250px, 320px) 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin-top: 1em; }
.hg-outline { position: sticky; top: 90px; background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 1px 3px rgba(29, 62, 95, .08); max-height: calc(100vh - 120px); overflow: auto; }
.hg-outline > summary { font-weight: 700; color: var(--hg-navy); cursor: pointer; padding: 6px 4px 10px; list-style: none; min-height: 44px; display: flex; align-items: center; gap: 6px; }
.hg-outline > summary::-webkit-details-marker { display: none; }
.hg-outline-list, .hg-outline-list ol { list-style: none; margin: 0; padding: 0; }
.hg-outline-list ol { padding-inline-start: 18px; }
.hg-step { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--hg-ink) !important; text-decoration: none !important; font-size: 15px; line-height: 1.45; min-height: 40px; }
.hg-step .hg-ico { flex: none; margin-top: 2px; color: #7a8796; }
.hg-step.is-done .hg-ico { color: #128c4a; }
.hg-step:hover { background: #f1f5f9; }
.hg-step[aria-current="page"] { background: #e8eff7; font-weight: 700; color: var(--hg-navy) !important; }
.hg-sub { font-size: 14px; }
.hg-lesson { min-width: 0; }
.hg-crumbs { font-size: 15px; margin: 0; }
.hg-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1724; margin: 0 0 1.2em; box-shadow: 0 12px 32px -18px rgba(11, 23, 36, .7); }
.hg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hg-content { max-width: 72ch; }
.hg-content img { max-width: 100%; height: auto; border-radius: 8px; }
.hg-content a { color: var(--hg-blue); text-decoration: underline; text-underline-offset: 3px; }
.hg-content .wp-block-button__link { display: inline-block; background: var(--hg-navy); color: #fff !important; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
.hg-complete { margin: 1.6em 0 1em; }
.hg-pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--hg-line); padding-top: 12px; font-size: 15px; }
.hg-buy-form { margin: 8px 0 0; }
.hg-buy { min-height: 48px; padding: 10px 26px !important; font-weight: 700 !important; }
.hg-buy-note { font-size: 14px; color: #5b6673; margin-top: 8px; max-width: 46ch; }
@media (max-width: 900px) {
  .hg-learn { grid-template-columns: 1fr; }
  .hg-outline { position: static; max-height: none; }
  /* Phones: course title / start button (or the lesson video) first, the long outline after it. */
  .hg-learn > .hg-lesson { order: -1; }
}

/* Student pages sit in the page template's article: tighten its empty top space. */
article:has(.hg-app) { padding-top: clamp(16px, 3vw, 32px) !important; }
article:has(.hg-app) .entry-header { display: none; }
.hg-app > :first-child { margin-top: 0; }
.hg-popup-off { display: none !important; }

/* ---------- Podcast section (/podcast/) ---------- */
.hg-pod { color: var(--hg-ink); font-size: 17px; line-height: 1.7; }
.hg-pod h1 { color: var(--hg-navy); font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.2; margin: .2em 0 .5em; }
.hg-pod h2 { color: var(--hg-navy); font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.01em; margin: 1.8em 0 .7em; }
.hg-pod-hero { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.hg-pod-logo { width: 100%; height: auto; }
.hg-pod-lead { font-size: 1.12em; max-width: 60ch; }
.hg-pod-stats { color: #4b5563; }
.hg-pod-stats strong { color: var(--hg-navy); }
.hg-pod-listen { display: flex; flex-wrap: wrap; gap: 10px; margin: 1em 0; }
.hg-pod-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border-radius: 999px; font-weight: 700; text-decoration: none !important;
  border: 2px solid var(--hg-navy); transition: transform .25s var(--hg-ease), box-shadow .25s var(--hg-ease); }
.hg-pod-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(29, 62, 95, .6); }
.hg-pod-btn:active { transform: translateY(0); box-shadow: none; }
.hg-pod-spotify { background: var(--hg-navy); color: #fff !important; }
.hg-pod-spotify .hg-pod-ico { color: #1DB954; }
.hg-pod-ghost { background: #fff; color: var(--hg-navy) !important; }
.hg-pod-ghost .hg-pod-ico { color: #8e44ad; }
.hg-pod-player { margin: 1.4em 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px -20px rgba(11, 23, 36, .6); }
.hg-pod-player iframe { display: block; border: 0; }
.hg-pod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.hg-pod-card-link { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 14px; overflow: hidden; color: var(--hg-ink) !important; text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(29, 62, 95, .08), 0 14px 32px -24px rgba(29, 62, 95, .5); transition: transform .3s var(--hg-ease), box-shadow .3s var(--hg-ease); }
.hg-pod-card-link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 62, 95, .08), 0 22px 40px -22px rgba(29, 62, 95, .55); }
.hg-pod-card-link:active { transform: translateY(-1px); }
.hg-pod-card-link img, .hg-pod-card-ph { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; background: #e8eef3; }
.hg-pod-card-body { display: grid; gap: 4px; padding: 14px 16px 18px; }
.hg-pod-num { font-size: 14px; font-weight: 700; color: #9a5200; }
.hg-pod-card-title { font-size: 1.08rem; font-weight: 700; color: var(--hg-navy); line-height: 1.35; }
.hg-pod-date { font-size: 14px; color: #5b6673; }
.hg-pod-excerpt { font-size: 15px; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hg-pod-host { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; margin-top: 2.4em; }
.hg-pod-host img { width: 100%; height: auto; border-radius: 14px; }
.hg-pod-host h2 { margin-top: 0; }
.hg-pod-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.hg-pod-videos .hg-video { margin-bottom: .5em; }
.hg-pod-press figure { display: flex; align-items: center; gap: 16px; margin: 0; }
.hg-pod-press img { width: 160px; height: auto; border-radius: 8px; }
.hg-pod-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 2.4em 0; padding: 20px 24px; border-radius: 14px; background: #eef3f8; }
.hg-pod-cta > div { flex: 1 1 260px; }
.hg-pod-cta h2 { margin: 0 0 .2em; font-size: 1.25rem; }
.hg-pod-cta p { margin: 0; }
.hg-pod-cta > .hg-pod-ico { color: var(--hg-navy); width: 40px; height: 40px; }
.hg-pod-signup { margin: 2.4em 0 1em; padding: 24px; border-radius: 14px; background: var(--hg-navy); color: #fff; }
.hg-pod-signup h2 { color: #fff; margin: 0 0 .3em; }
.hg-pod-signup label { display: block; font-weight: 600; margin: .6em 0 .3em; }
.hg-pod-form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.hg-pod-form-row input { flex: 1 1 240px; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 2px solid #fff; font: inherit; }
.hg-pod-signup .hg-btn { background: #FF8700; border-color: #FF8700; color: #1D3E5F !important; }
.hg-pod-signup .hg-form-message.elementor-message-success { background: #e8f6ee; color: #0d5c31; }
.hg-pod-episode { max-width: 820px; }
.hg-pod-cover { width: 100%; height: auto; border-radius: 14px; margin: .6em 0 1em; }
.hg-pod-notes ol, .hg-pod-notes ul { padding-inline-start: 1.4em; }
.hg-pod-steps { padding-inline-start: 1.4em; }
.hg-pod-ask { display: grid; gap: 6px; max-width: 560px; margin: 1.4em 0 2em; padding: clamp(18px, 3vw, 28px); background: #fff; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(29, 62, 95, .08), 0 18px 40px -24px rgba(29, 62, 95, .45); }
.hg-pod-ask label { font-weight: 700; color: var(--hg-navy); margin-top: 6px; }
.hg-pod-ask input, .hg-pod-ask textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid #b9c4cf; font: inherit; background: #fff; color: var(--hg-ink); }
.hg-pod-ask textarea { min-height: 130px; resize: vertical; }
.hg-pod-ask .hg-btn { justify-self: start; margin-top: 10px; }
@media (max-width: 760px) {
  .hg-pod-hero, .hg-pod-host { grid-template-columns: 1fr; }
  .hg-pod-logo { max-width: 240px; }
}
/* The theme stretches iframes to 16:9; Spotify players have fixed heights. */
.hg-pod-player iframe { aspect-ratio: auto !important; width: 100% !important; }
.hg-pod-player--show iframe { height: 352px !important; }
.hg-pod-player--episode iframe { height: 152px !important; }

/* ---------- Free-course landing (/enroll/<product>/) ---------- */
.hg-free { display: grid; grid-template-columns: 1.3fr minmax(300px, .9fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.hg-free-badge { display: inline-block; margin: 0; padding: 4px 12px; border-radius: 999px; background: #e8f6ee; color: #0d5c31; font-weight: 700; font-size: 14px; }
.hg-free-img { width: 100%; height: auto; border-radius: 14px; margin: .2em 0 1em; }
.hg-free-desc { font-size: 1.08em; max-width: 62ch; }
.hg-free h2 { font-size: 1.25rem; margin: 1.2em 0 .5em; }
.hg-free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hg-free-list li { position: relative; padding-inline-start: 28px; }
.hg-free-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: #1D3E5F; box-shadow: inset 0 0 0 4px #e8eff7; }
.hg-free-form { position: sticky; top: 100px; margin: 0; }
.hg-free-form h2 { margin-top: 0; }
.hg-free-form .hg-btn { width: 100%; margin-top: 6px; }
.hg-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; margin-top: 6px; }
.hg-check input { width: 20px !important; height: 20px; min-height: 0 !important; flex: none; margin-top: 4px; accent-color: #1D3E5F; }
.hg-small { font-size: 14px; }
.hg-hp { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .hg-free { grid-template-columns: 1fr; } .hg-free-form { position: static; } }

/* ---------- Course sales page (/product/<slug>/) ---------- */
.hg-sale { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-top: .6em; }
.hg-sale-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: 0 2px 4px rgba(29, 62, 95, .08), 0 24px 48px -28px rgba(29, 62, 95, .6); }
.hg-sale-ph { aspect-ratio: 16 / 10; border-radius: 16px; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(120% 90% at 85% 10%, #2C6FAA 0%, transparent 60%), radial-gradient(90% 80% at 10% 95%, rgba(255, 135, 0, .45) 0%, transparent 60%), #1D3E5F; }
.hg-sale-ph span { color: #fff; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; max-width: 18ch; }
.hg-sale-info h1 { margin: .35em 0 .4em; }
.hg-sale-lead { font-size: 1.1em; color: #374151; max-width: 56ch; }
.hg-sale-facts { display: flex; align-items: center; gap: 8px; color: #4b5563; font-size: 15px; }
.hg-sale-facts .hg-ico { color: var(--hg-navy); }
.hg-sale-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: .8em 0 .6em; }
.hg-sale-now { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; color: var(--hg-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hg-sale-was { color: #6b7280; font-size: 1.15rem; }
.hg-sale-tag { background: #FF8700; color: #1D3E5F; font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 999px; }
.hg-sale-buy { margin: 0; }
.hg-btn-buy { width: 100%; max-width: 420px; min-height: 56px; font-size: 1.1rem; background: var(--hg-navy); }
.hg-sale-trust { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: #374151; }
.hg-sale-trust li { display: flex; align-items: center; gap: 8px; }
.hg-sale-trust .hg-ico { color: #128c4a; flex: none; }
.hg-sale-sec { margin-top: clamp(28px, 5vw, 56px); }
.hg-sale-sec > h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 .7em; }
.hg-sale-cur { list-style: none; counter-reset: les; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 820px; }
.hg-sale-cur li { counter-increment: les; display: flex; align-items: center; gap: 12px; justify-content: space-between; background: #fff; border-radius: 10px; padding: 12px 16px; box-shadow: 0 1px 2px rgba(29, 62, 95, .08); }
.hg-sale-cur li > span:first-child { display: flex; gap: 12px; align-items: baseline; }
.hg-sale-cur li > span:first-child::before { content: counter(les); flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e8eff7; color: var(--hg-navy); font-weight: 700; font-size: 14px; }
.hg-sale-cta { position: fixed; bottom: 12px; inset-inline: 16px; max-width: 880px; margin: 0 auto; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 4px 10px rgba(29, 62, 95, .1), 0 18px 40px -18px rgba(29, 62, 95, .5); }
.hg-sale-cta .hg-btn-buy { width: auto; min-height: 48px; font-size: 1rem; }
.hg-card-title { font-size: 1.05rem; margin: 0; color: var(--hg-navy); line-height: 1.35; }
.hg-sale-mini-price { margin: 0; font-weight: 700; color: var(--hg-navy); }
@media (max-width: 900px) {
  .hg-sale { grid-template-columns: 1fr; }
  .hg-btn-buy { max-width: none; }
  .hg-sale-cta { bottom: 8px; inset-inline: 10px; padding: 10px 12px; }
  .hg-sale-cta > div { display: none; }
  .hg-sale-cta .hg-sale-buy, .hg-sale-cta .hg-btn-buy { width: 100%; }
}
.hg-sale-cta { transition: transform .35s var(--hg-ease), opacity .35s var(--hg-ease); }
.hg-sale-cta.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }
.hg-more-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (prefers-reduced-motion: reduce) { .hg-sale-cta { transition: none; } }
.hg-sale-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.hg-sale-price { margin: .5em 0 .5em; }
@media (max-width: 900px) { body:has(.hg-sale-cta:not(.is-hidden)) #hg-a11y { bottom: 92px; } }
/* lp: big step numbers on the life-planning registration page straddle white and colored boxes: brand navy reads on both. */
.elementor-element-4bf0a65 .elementor-heading-title, .elementor-element-0ac4918 .elementor-heading-title, .elementor-element-330bc4b .elementor-heading-title { color: #1D3E5F !important; }

/* LP signup pages (benefit / financial-engine / whatsapp): on phones the photo only covered the top strip and the
   white headline sat on pale orange. Let the photo cover the whole first screen under a navy scrim instead. */
@media (max-width: 767px) {
  .elementor-element-edc65ce.elementor-top-section {
    background-size: cover !important; background-position: 30% center !important; background-color: #10233a !important;
    min-height: 100svh; box-shadow: inset 0 0 0 100vmax rgba(16, 35, 58, .62); padding-bottom: 96px;
  }
}

/* App pages (sales, free landing, student area): the WP shell's boxed padding left a narrow column. */
@media (min-width: 922px) { article:has(.hg-app, .hg-pod) { padding-inline: clamp(32px, 4vw, 64px) !important; } }
@media (max-width: 921px) { .content-area:has(.hg-app, .hg-pod) { padding-inline: 0 !important; } }
/* Free landing on phones: the signup form right under the course image, details after it. */
@media (max-width: 900px) {
  .hg-free { row-gap: 0; }
  .hg-free-info { display: contents; }
  .hg-free-form { order: 1; margin: 4px 0 8px; }
  .hg-free-desc, .hg-free-info > h2, .hg-free-list, .hg-free-info > .hg-muted { order: 2; }
}

/* Free event registration on a sales page (zero-price product without a course). */
.hg-join { display: grid; gap: 6px; max-width: 420px; }
.hg-join label { font-weight: 700; color: var(--hg-navy); margin-top: 4px; }
.hg-join input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px; border: 1px solid #b9c4cf; font: inherit; background: #fff; color: var(--hg-ink); }
.hg-join .hg-btn-buy { margin-top: 10px; }
