/* Health Hero Network - Home hero (Kadence version).
   Fixed Welcome panel on the left + sliding show carousel on the right.
   Sizes follow the client's design tokens: --hhn-hero-h, --hhn-slide-w, --hhn-slide-gap (see hhn-tokens.css). */

/* Outer row: welcome + stage side by side */
.hhn-hero > .kt-row-column-wrap {
	display: flex !important;
	align-items: stretch;
	gap: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}
.hhn-hero .hhn-hero__welcome {
	flex: 0 0 560px;
	max-width: 560px;
	border-right: 1px solid var(--hhn-rule);
}
.hhn-hero .hhn-hero__welcome > .kt-inside-inner-col {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hhn-hero .hhn-hero__stage {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.hhn-hero .hhn-hero__stage > .kt-inside-inner-col { padding-left: 16px; }

/* The sliding rail */
.hhn-hero .hhn-hero__track,
.hhn-hero .hhn-hero__track > .kt-row-column-wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.hhn-hero .hhn-hero__rail {
	display: flex !important;
	gap: var(--hhn-slide-gap) !important;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
	will-change: transform;
}

/* One slide */
.hhn-hero .hhn-slide {
	position: relative;
	flex: none;
	width: var(--hhn-slide-w);
	height: var(--hhn-hero-h);
	border-radius: 10px;
	overflow: hidden;
	background-color: var(--hhn-ink-2, #171C23);
}
.hhn-hero .hhn-slide > .kt-inside-inner-col { height: 100%; padding: 0 !important; }

/* Slide name: read by screen readers and used for the carousel label (the Section's own link makes the slide clickable) */
.hhn-slide__name {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	margin: 0 !important;
}
.hhn-slide .kb-section-link-overlay { z-index: 5; border-radius: 10px; }
.hhn-slide .kb-section-link-overlay:focus-visible { outline: 3px solid var(--hhn-orange); outline-offset: -3px; }

/* Split slides: title panel + photo */
.hhn-slide .hhn-slide__split,
.hhn-slide .hhn-slide__split > .kt-row-column-wrap { height: 100%; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.hhn-slide .hhn-slide__split > .kt-row-column-wrap {
	display: flex !important;
	gap: 0 !important;
}
.hhn-slide .hhn-slide__title {
	flex: 0 0 36%;
	overflow: hidden;
}
.hhn-slide .hhn-slide__title > .kt-inside-inner-col {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.hhn-slide .hhn-slide__photo { flex: 1 1 auto; min-width: 0; }
/* Background images sit on the Section's inner wrapper, so it must fill the panel */
.hhn-slide .hhn-slide__photo > .kt-inside-inner-col,
.hhn-slide .hhn-slide__title > .kt-inside-inner-col,
.hhn-hero .hhn-slide > .kt-inside-inner-col { flex: 1 1 auto; width: 100%; height: 100%; }
.hhn-slide__logo-92 img { width: 92% !important; margin: 0 auto; }
.hhn-slide__tvfav img { border-radius: 4px; }
.hhn-slide__tvkicker { margin: 14px 0 0 !important; font-size: 11px !important; letter-spacing: .16em !important; }
.hhn-slide__caption { padding: 48px 28px 24px; background: linear-gradient(to top, rgba(15, 19, 24, .92), rgba(15, 19, 24, 0)); }
.hhn-slide__caption .hhn-kicker { font-size: 12px; letter-spacing: .16em; margin-bottom: 6px; }
.hhn-slide .hhn-slide__title figure,
.hhn-slide .hhn-slide__title .wp-block-image { margin: 0; }
.hhn-slide .hhn-slide__title img { display: block; width: 100%; height: auto; }

/* Full-image slide (Awareness Specials): caption sits at the bottom */
.hhn-slide.hhn-slide--full > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

/* Controls bar */
.hhn-hero__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px 20px 0;
}
.hhn-hero__label { font-weight: 700; font-size: 15px; color: var(--hhn-text-soft); }
.hhn-hero__controls { display: flex; align-items: center; gap: 16px; }
.hhn-hero__dots { display: flex; gap: 8px; align-items: center; }
.hhn-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(245, 241, 234, .35);
	border: 0;
	padding: 0;
	cursor: pointer;
	transition: width .2s, background .2s;
}
.hhn-hero__dot.is-active { width: 28px; background: var(--hhn-orange); }
.hhn-hero__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(245, 241, 234, .45);
	background: transparent;
	color: var(--hhn-ivory);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	cursor: pointer;
}
.hhn-hero__arrow:hover { border-color: var(--hhn-orange); color: var(--hhn-orange); }

/* Welcome panel pieces */
.hhn-pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 !important; padding: 0 !important; list-style: none; }
.hhn-pillars li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hhn-ivory);
	border: 1px solid var(--hhn-rule);
	border-radius: 999px;
	padding: 7px 12px;
	margin: 0;
}
.hhn-pillars li::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--dot);
}
.hhn-pillars li:nth-child(1) { --dot: #5C86B8; }
.hhn-pillars li:nth-child(2) { --dot: #6FA383; }
.hhn-pillars li:nth-child(3) { --dot: #D9CEBC; }
.hhn-pillars li:nth-child(4) { --dot: #9B83B5; }
.hhn-pillars li:nth-child(5) { --dot: #E0703A; }

/* Tablet and phone: welcome stacks above the carousel */
@media (max-width: 1024px) {
	.hhn-hero > .kt-row-column-wrap { flex-direction: column; }
	.hhn-hero .hhn-hero__welcome { flex: none; max-width: none; border-right: 0; }
	.hhn-hero .hhn-hero__stage > .kt-inside-inner-col { padding: 24px 0 0 var(--hhn-gutter); }
	.hhn-slide .hhn-slide__title { flex-basis: 40%; }
}
@media (max-width: 767px) {
	.hhn-slide .hhn-slide__title { flex-basis: 44%; }
	.hhn-hero__dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.hhn-hero .hhn-hero__rail { transition: none; }
}

/* Welcome panel: exact spacing from the design (flex column, so margins do not collapse) */
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > * { margin: 0 !important; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > .hhn-kicker { line-height: normal; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > h1 { margin-top: 14px !important; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > .hhn-lead { margin-top: 18px !important; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > .hhn-small { margin-top: 12px !important; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > .hhn-pillars { margin-top: 18px !important; }
.hhn-hero .hhn-hero__welcome .kt-inside-inner-col > .hhn-closing { margin-top: 20px !important; }
.hhn-hero .hhn-pillars li { line-height: normal; }
.hhn-docs.hhn-docs > .kt-row-column-wrap { padding-bottom: 16px; }

@media (min-width: 768px) and (max-width: 1024px) {
	.hhn-banner.hhn-banner > .kt-row-column-wrap, .hhn-tvfav.hhn-tvfav > .kt-row-column-wrap, .hhn-docs.hhn-docs > .kt-row-column-wrap { padding-top: 44px; }
	.hhn-originals .kt-row-column-wrap:has(> .hhn-card) { gap: 28px; }
	.entry-content .hhn-hero .hhn-hero__welcome .hhn-small { font-size: 16px; }
	.hhn-slide__caption h2.wp-block-kadence-advancedheading { font-size: 28px !important; }
}

@media (min-width: 768px) { .hhn-docs__row.hhn-docs__row > .kt-row-column-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7778fr); } }
.hhn-docs__row h3.wp-block-kadence-advancedheading { line-height: normal !important; }
.entry-content .hhn-docs__row .hhn-logline { margin-top: 4px; }
@media (max-width: 767px) {
	.entry-content .hhn-hero .hhn-hero__welcome .hhn-small { font-size: 16px; }
	.hhn-slide__caption h2.wp-block-kadence-advancedheading { font-size: 22px !important; }
	.hhn-originals .kt-row-column-wrap:has(> .hhn-card) { gap: 28px; }
}
.hhn-tvfav h3.wp-block-kadence-advancedheading, .hhn-docs h2.wp-block-kadence-advancedheading { line-height: normal !important; }
.entry-content .hhn-tvfav .hhn-logline { margin-top: 4px; }
.hhn-docs h2.wp-block-kadence-advancedheading { margin-bottom: 18px !important; }
@media (max-width: 767px) {
	.hhn-tvfav .kb-row-layout-wrap > .kt-row-column-wrap, .hhn-docs__row.hhn-docs__row > .kt-row-column-wrap { row-gap: 28px; }
}

/* Carousel panels: the design's padded logo panels are 36% plus their padding (content-box), the Updates panel is 46% */
.hhn-slide .hhn-slide__title:has(img[src*="health-hero-stories"]), .hhn-slide .hhn-slide__title:has(img[src*="the-dr-nandi-show"]), .hhn-slide .hhn-slide__title:has(.hhn-slide__tvfav) { flex-basis: calc(36% + 44px); }
.hhn-slide .hhn-slide__title:not(:has(img)) { flex-basis: 46%; }
@media (max-width: 1024px) {
	.hhn-slide .hhn-slide__title:has(img[src*="health-hero-stories"]), .hhn-slide .hhn-slide__title:has(img[src*="the-dr-nandi-show"]), .hhn-slide .hhn-slide__title:has(.hhn-slide__tvfav) { flex-basis: calc(40% + 32px); }
	.hhn-slide .hhn-slide__title:has(img[src*="the-dr-nandi-show"]) > .kt-inside-inner-col, .hhn-slide .hhn-slide__title:has(.hhn-slide__tvfav) > .kt-inside-inner-col { padding-left: 16px !important; padding-right: 16px !important; }
	.hhn-slide .hhn-slide__title:not(:has(img)) { flex-basis: 48%; }
}
@media (max-width: 767px) {
	.hhn-slide .hhn-slide__title:has(img[src*="health-hero-stories"]), .hhn-slide .hhn-slide__title:has(img[src*="the-dr-nandi-show"]), .hhn-slide .hhn-slide__title:has(.hhn-slide__tvfav) { flex-basis: calc(44% + 32px); }
	.hhn-slide .hhn-slide__title:not(:has(img)) { flex-basis: 60%; }
	.hhn-slide__caption.hhn-slide__caption { padding: 36px 18px 18px !important; }
}
.hhn-docs__row .kt-inside-inner-col > div:first-child { margin-bottom: 12px !important; }

/* ---------- Nov 18: full-picture carousel slides (logo is part of the image) ---------- */
.hhn-hero .hhn-slide.hhn-slide--square { width: var(--hhn-hero-h); }
.hhn-slide.hhn-slide--square > .kt-inside-inner-col { background-size: cover !important; background-position: 50% 50% !important; }

/* ---------- Nov 18: Health Hero Awareness Specials block (replaces the monthly banner) ---------- */
.hhn-awareness > .kt-row-column-wrap { display: flex !important; flex-direction: row; align-items: center !important; gap: 56px !important; }
.hhn-awareness .hhn-awareness__img { flex: 0 0 360px; width: 360px; max-width: 100%; }
.hhn-awareness .hhn-awareness__text { flex: 1 1 0; min-width: 0; }
.hhn-awareness__img figure, .hhn-awareness__img .wp-block-kadence-image { margin: 0; }
.hhn-awareness__img a { display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #071044; }
.hhn-awareness__img img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.entry-content .hhn-awareness .hhn-awareness__kicker { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--hhn-orange); line-height: normal; }
.entry-content .hhn-awareness .hhn-awareness__copy { margin: 0; font-size: 18px; line-height: 1.65; color: #D8D2C7; }
.hhn-awareness .hhn-btns { margin-top: 24px !important; }
@media (max-width: 1024px) { .hhn-awareness > .kt-row-column-wrap { gap: 36px !important; } .hhn-awareness .hhn-awareness__img { flex-basis: 260px; width: 260px; } }
@media (max-width: 767px) { .hhn-awareness > .kt-row-column-wrap { flex-direction: column; gap: 28px !important; } .hhn-awareness .hhn-awareness__img { flex-basis: auto; width: 100%; } }


/* 19 Nov: Kali asked to remove the small slide-name caption under the carousel (the artwork already carries each title). Space is kept so the dots and arrows stay put. */
.hhn-hero__label { visibility: hidden; }
