:root {
  --soryqex-header-bg: #ffffff;
  --soryqex-header-ink: #1f2437;
  --soryqex-header-muted: #5b627a;
  --soryqex-header-accent: #dd183b;
  --soryqex-header-border: rgba(31, 36, 55, 0.12);
  --soryqex-header-shadow: 0 8px 28px rgba(31, 36, 55, 0.08);
}

/* Global SORYQEX header: one layout and one interaction language site-wide. */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--soryqex-header-bg);
  border-bottom: 1px solid var(--soryqex-header-border);
  box-shadow: var(--soryqex-header-shadow);
}

#masthead .ast-builder-grid-row {
  min-height: 76px;
  column-gap: 28px;
}

#masthead .site-logo-img {
  max-height: 44px;
  width: auto;
}

#masthead .main-header-menu   .menu-item   .menu-link {
  color: var(--soryqex-header-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  padding: 28px 14px;
  transition: color 180ms ease, background-color 180ms ease;
}

#masthead .main-header-menu   .menu-item:hover   .menu-link,
#masthead .main-header-menu   .menu-item.current-menu-item   .menu-link,
#masthead .main-header-menu   .menu-item.current-menu-ancestor   .menu-link {
  color: var(--soryqex-header-accent);
}

#masthead .main-header-menu .sub-menu {
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--soryqex-header-border);
  border-radius: 12px;
  background: var(--soryqex-header-bg);
  box-shadow: 0 18px 40px rgba(31, 36, 55, 0.14);
}

#masthead .main-header-menu .sub-menu .menu-link {
  color: var(--soryqex-header-ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  padding: 11px 14px;
  transition: color 180ms ease, background-color 180ms ease;
}

#masthead .main-header-menu .sub-menu .menu-link:hover,
#masthead .main-header-menu .sub-menu .menu-item.current-menu-item   .menu-link {
  color: var(--soryqex-header-accent);
  background: rgba(221, 24, 59, 0.07);
}

#masthead [class*="ast-header-button-"] .ast-custom-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--soryqex-header-accent);
  box-shadow: 0 8px 18px rgba(221, 24, 59, 0.22);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

#masthead [class*="ast-header-button-"] .ast-custom-button:hover {
  background: #c91838;
  box-shadow: 0 10px 22px rgba(221, 24, 59, 0.28);
  transform: translateY(-1px);
}

#masthead .ast-mobile-header-wrap {
  background: var(--soryqex-header-bg);
}

@media (max-width: 921px) {
  #masthead .ast-builder-grid-row {
    min-height: 68px;
    column-gap: 14px;
  }
  #masthead .site-logo-img {
    max-height: 38px;
  }
  #masthead .main-header-menu   .menu-item   .menu-link {
    padding: 15px 18px;
  }
}

@media (max-width: 782px) {
  body.admin-bar #masthead {
    top: 46px;
  }
  #masthead .ast-builder-grid-row {
    min-height: 62px;
  }
  #masthead [class*="ast-header-button-"] .ast-custom-button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 12px;
  }
}

/* Normalize transparent-header templates, including /products/, to the global header. */
body.ast-theme-transparent-header #masthead{position:sticky!important;top:0!important;background:var(--soryqex-header-bg)!important}
body.ast-theme-transparent-header #masthead .main-header-bar,body.ast-theme-transparent-header #masthead .ast-primary-header-bar,body.ast-theme-transparent-header #masthead .site-primary-header-wrap{background:var(--soryqex-header-bg)!important}
body.ast-theme-transparent-header #masthead .main-header-menu .menu-item .menu-link,body.ast-theme-transparent-header #masthead .site-title a,body.ast-theme-transparent-header #masthead .ast-site-identity a{color:var(--soryqex-header-ink)!important}
body.ast-theme-transparent-header #masthead .main-header-menu .menu-item:hover .menu-link,body.ast-theme-transparent-header #masthead .main-header-menu .menu-item.current-menu-item .menu-link,body.ast-theme-transparent-header #masthead .main-header-menu .menu-item.current-menu-ancestor .menu-link{color:var(--soryqex-header-accent)!important}
@media(max-width:782px){body.ast-theme-transparent-header #masthead{top:0!important}body.admin-bar.ast-theme-transparent-header #masthead{top:46px!important}}


/* Global banner rhythm: all content banners share one desktop/mobile height. */
:where(.soryqex-page-hero,.soryqex-obs-hero,.soryqex-bcs-hero,.soryqex-cp-hero,.soryqex-app-hero,.soryqex-sol-hero,.soryqex-ccv-hero,.soryqex-cbc-hero,.soryqex-cbu-hero,.soryqex-fys-hero,.soryqex-gi-hero,.soryqex-ind-hero,.soryqex-ip-hero,.soryqex-od-hero,.soryqex-og-hero,.soryqex-pj-hero,.soryqex-res-hero,.soryqex-rm-hero,.soryqex-rp-hero,.soryqex-ss-hero,.soryqex-wp-hero,.soryqex-sp-hero,.soryqex-cc-hero){height:600px!important;min-height:600px!important;max-height:600px!important;box-sizing:border-box!important;overflow:hidden!important}
:where(.soryqex-page-hero img,.soryqex-obs-hero img,.soryqex-bcs-hero img,.soryqex-cp-hero img,.soryqex-app-hero img,.soryqex-sol-hero img,.soryqex-ccv-hero img,.soryqex-cbc-hero img,.soryqex-cbu-hero img,.soryqex-fys-hero img,.soryqex-gi-hero img,.soryqex-ind-hero img,.soryqex-ip-hero img,.soryqex-od-hero img,.soryqex-og-hero img,.soryqex-pj-hero img,.soryqex-res-hero img,.soryqex-rm-hero img,.soryqex-rp-hero img,.soryqex-ss-hero img,.soryqex-wp-hero img,.soryqex-sp-hero img,.soryqex-cc-hero img){height:100%!important;object-fit:cover!important}
@media(max-width:782px){:where(.soryqex-page-hero,.soryqex-obs-hero,.soryqex-bcs-hero,.soryqex-cp-hero,.soryqex-app-hero,.soryqex-sol-hero,.soryqex-ccv-hero,.soryqex-cbc-hero,.soryqex-cbu-hero,.soryqex-fys-hero,.soryqex-gi-hero,.soryqex-ind-hero,.soryqex-ip-hero,.soryqex-od-hero,.soryqex-og-hero,.soryqex-pj-hero,.soryqex-res-hero,.soryqex-rm-hero,.soryqex-rp-hero,.soryqex-ss-hero,.soryqex-wp-hero,.soryqex-sp-hero,.soryqex-cc-hero){height:420px!important;min-height:420px!important;max-height:420px!important}}


/* Global breadcrumb visibility: keep inner-page breadcrumbs consistent. */
body:not(.home) .ast-breadcrumbs-wrapper{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:24px;overflow:visible!important;position:relative!important}
body:not(.home) .ast-breadcrumbs,body:not(.home) .ast-breadcrumbs-inner{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:24px;overflow:visible!important}
/* === SORYQEX VIDEOS PAGE START === */
/* Videos page — follow global solid white header; banner below; wide 2-up grid */

html:has(.soryqex-videos-page),
body.soryqex-template-videos,
body.soryqex-template-videos .site,
body.soryqex-template-videos .site-content,
body.soryqex-template-videos #content,
body.soryqex-template-videos .entry-content,
body.soryqex-template-videos article,
body.soryqex-template-videos #primary {
	background-color: #ffffff !important;
	background-image: none !important;
}

/* Do NOT override global sticky white header colors.
   Keep site header as: white bg + dark ink (same as /home-battery/, /news/). */

body.soryqex-template-videos #content.site-content   .ast-container,
body.soryqex-template-videos .site-content   .ast-container,
body.soryqex-template-videos #primary,
body.soryqex-template-videos .site-main,
body.soryqex-template-videos article,
body.soryqex-template-videos.ast-separate-container .ast-article-single {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.soryqex-template-videos .entry-header,
body.soryqex-template-videos .entry-title,
body.page-id-449 .entry-header,
body.page-id-449 .entry-title {
	display: none !important;
}

/* Full-width hero under sticky header */
body.page-id-449 .entry-content   .soryqex-page-hero,
body.soryqex-template-videos .soryqex-page-hero {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	height: 600px;
	min-height: 600px;
	max-height: 600px;
	padding: 0 24px;
	box-sizing: border-box;
	overflow: hidden;
	display: grid;
	place-items: center;
	text-align: center;
	color: #fff;
	background-color: #141830;
	isolation: isolate;
}

body.page-id-449 .soryqex-page-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	z-index: 0;
}

body.page-id-449 .soryqex-page-hero__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(15, 18, 32, 0.48) 0%,
		rgba(15, 18, 32, 0.42) 42%,
		rgba(15, 18, 32, 0.18) 72%,
		rgba(255, 255, 255, 0) 100%
	);
	pointer-events: none;
}

body.page-id-449 .soryqex-page-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.35) 35%,
		rgba(255, 255, 255, 0.78) 68%,
		#ffffff 100%
	);
}

body.page-id-449 .soryqex-page-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 820px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

body.page-id-449 .soryqex-page-hero__title {
	margin: 0 0 18px;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.12;
	font-weight: 700;
	color: #fff;
}

body.page-id-449 .soryqex-page-hero__lead {
	margin: 0 auto;
	max-width: 680px;
	font-size: 17px;
	line-height: 1.8;
	color: #fff;
}

body.page-id-449 .soryqex-page-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

body.page-id-449 .soryqex-page-hero__ctas .btn {
	margin-top: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 24px;
	border-radius: 10px;
	border: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

body.page-id-449 .soryqex-page-hero__ctas .btn-primary {
	background: #dd183b;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(221, 24, 59, 0.22);
}

body.page-id-449 .soryqex-page-hero__ctas .btn-primary:hover {
	background: #c41434;
	transform: translateY(-1px);
}

body.page-id-449 .soryqex-page-hero__ctas .btn-ghost {
	background: transparent;
	color: #fff !important;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
}

body.page-id-449 .soryqex-page-hero__ctas .btn-ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Wide video grid */
body.page-id-449 .entry-content   .soryqex-videos-page,
body.page-id-449 .soryqex-videos-page {
	margin: 0 auto;
	padding: 28px 24px 88px;
	background: transparent;
	width: 100%;
	max-width: 1560px;
	box-sizing: border-box;
}

body.page-id-449 .soryqex-videos-grid {
	width: 100%;
	max-width: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 28px;
	list-style: none;
	padding: 0;
	scroll-margin-top: 96px;
}

body.page-id-449 .soryqex-video-card {
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e6edf5;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(15, 23, 40, 0.06);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.page-id-449 .soryqex-video-card:hover {
	transform: translateY(-3px);
	border-color: #d4deea;
	box-shadow: 0 16px 36px rgba(15, 23, 40, 0.1);
}

body.page-id-449 .soryqex-video-card__media,
body.page-id-449 .soryqex-video-card__video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	object-fit: cover;
	background: #143a63;
	vertical-align: middle;
}

body.page-id-449 .soryqex-video-card__body {
	position: relative;
	padding: 20px 22px 22px;
}

body.page-id-449 .soryqex-video-card__body h2 {
	margin: 0 0 8px;
	padding-right: 42px;
	color: #19487c;
	font-size: 1.12rem;
	font-weight: 650;
	line-height: 1.35;
	text-transform: none;
}

body.page-id-449 .soryqex-video-card__body p {
	margin: 0;
	color: #5b6778;
	font-size: 0.98rem;
	line-height: 1.65;
}

body.page-id-449 .soryqex-video-card__index {
	position: absolute;
	top: 18px;
	right: 20px;
	color: #94a0b0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

@media (max-width: 720px) {
	body.page-id-449 .entry-content   .soryqex-page-hero,
	body.soryqex-template-videos .soryqex-page-hero {
		height: 420px;
		min-height: 420px;
		max-height: 420px;
		padding: 0 16px;
	}

	body.page-id-449 .soryqex-videos-page {
		padding: 16px 16px 48px;
	}

	body.page-id-449 .soryqex-videos-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

/* Videos: force dark ink on sticky white header (beat Astra transparent white text) */
body.soryqex-template-videos.ast-theme-transparent-header #masthead .main-header-menu   .menu-item   .menu-link,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .main-header-menu .menu-link,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .ast-builder-menu .main-header-menu,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .ast-builder-menu .main-header-menu .menu-link,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .site-title a,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .ast-site-identity a,
body.page-id-449.ast-theme-transparent-header #masthead .main-header-menu .menu-link,
body.page-id-449.ast-theme-transparent-header #masthead .site-title a {
	color: #1f2437 !important;
}
body.soryqex-template-videos.ast-theme-transparent-header #masthead .main-header-menu   .menu-item:hover   .menu-link,
body.soryqex-template-videos.ast-theme-transparent-header #masthead .main-header-menu .current-menu-item   .menu-link,
body.page-id-449.ast-theme-transparent-header #masthead .main-header-menu .current-menu-item   .menu-link {
	color: #dd183b !important;
}
body.soryqex-template-videos.ast-theme-transparent-header #masthead .ast-arrow-svg path,
body.page-id-449.ast-theme-transparent-header #masthead .ast-arrow-svg path {
	fill: #1f2437 !important;
}
/* === SORYQEX VIDEOS PAGE END === */

/* === SORYQEX GLOBAL HEADER INK FIX START === */
/* Normalize transparent-header templates to global solid white header + dark ink */
body.ast-theme-transparent-header #masthead{position:sticky!important;top:0!important;background:var(--soryqex-header-bg)!important;z-index:999}
body.ast-theme-transparent-header #masthead .main-header-bar,
body.ast-theme-transparent-header #masthead .ast-primary-header-bar,
body.ast-theme-transparent-header #masthead .site-primary-header-wrap{background:var(--soryqex-header-bg)!important;background-image:none!important}
body.ast-theme-transparent-header #masthead .main-header-menu   .menu-item   .menu-link,
body.ast-theme-transparent-header #masthead .main-header-menu .menu-link,
body.ast-theme-transparent-header #masthead .ast-builder-menu .main-header-menu,
body.ast-theme-transparent-header #masthead .ast-builder-menu .main-header-menu .menu-link,
body.ast-theme-transparent-header #masthead .site-title a,
body.ast-theme-transparent-header #masthead .ast-site-identity a,
body.ast-theme-transparent-header #masthead .site-title,
body.ast-theme-transparent-header #masthead .site-title a span{color:var(--soryqex-header-ink)!important}
body.ast-theme-transparent-header #masthead .main-header-menu   .menu-item:hover   .menu-link,
body.ast-theme-transparent-header #masthead .main-header-menu   .menu-item.current-menu-item   .menu-link,
body.ast-theme-transparent-header #masthead .main-header-menu   .menu-item.current-menu-ancestor   .menu-link,
body.ast-theme-transparent-header #masthead .main-header-menu .menu-item:hover   .menu-link,
body.ast-theme-transparent-header #masthead .main-header-menu .current-menu-item   .menu-link{color:var(--soryqex-header-accent)!important}
body.ast-theme-transparent-header #masthead .ast-header-navigation-arrow svg,
body.ast-theme-transparent-header #masthead .ast-arrow-svg path{fill:var(--soryqex-header-ink)!important}
@media(max-width:782px){body.ast-theme-transparent-header #masthead{top:0!important}body.admin-bar.ast-theme-transparent-header #masthead{top:46px!important}}
/* === SORYQEX GLOBAL HEADER INK FIX END === */

/* SORYQEX NAV LAYOUT FIX 2026-10-30 */
#masthead .site-primary-header-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  box-sizing: border-box;
}
#masthead .ast-builder-grid-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
  column-gap: 28px;
}
#masthead .site-header-primary-section-left,
#masthead .site-header-primary-section-right,
#masthead .ast-builder-menu-1,
#masthead .main-header-bar-navigation {
  min-width: 0;
}
#masthead .site-header-primary-section-right {
  justify-content: flex-end;
  overflow: visible;
}
#masthead .main-header-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  white-space: nowrap;
}
#masthead .main-header-menu > .menu-item > .menu-link {
  white-space: nowrap;
  padding-inline: clamp(8px, 1vw, 14px);
}
@media (max-width: 1100px) and (min-width: 769px) {
  #masthead .ast-builder-grid-row { column-gap: 14px; }
  #masthead .main-header-menu > .menu-item > .menu-link {
    font-size: 13px;
    padding-inline: 7px;
  }
}
@media (max-width: 782px) {
  #masthead .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
  }
  #masthead .main-header-menu { white-space: normal; }
}
/* END SORYQEX NAV LAYOUT FIX */
@media (max-width: 782px) {
  #masthead .main-header-menu {
    display: block;
    flex-wrap: initial;
    justify-content: initial;
    white-space: normal;
  }
  #masthead .main-header-menu > .menu-item {
    display: block;
    width: 100%;
  }
}

/* SORYQEX ABOVE-HEADER ALIGN 2026-10-30 */
/* Keep Videos/Cases/Blog in the same 1240 column as the primary nav (not screen-edge). */
#masthead .ast-above-header-wrap,
#masthead .site-above-header-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
#masthead .ast-above-header-bar .ast-builder-grid-row {
  min-height: 40px;
  column-gap: 28px;
  align-items: center;
}
#masthead .ast-above-header-bar .site-header-above-section-right {
  justify-content: flex-end;
}
/* Breadcrumbs sit under the menu row inside the primary bar — keep them full-width of the same column. */
#masthead .ast-primary-header-bar > .ast-breadcrumbs-wrapper {
  max-width: 1240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
