/* HD Nutrition Videos — matches Home Dietitians brand (Inter / #1d4ed8 / 12px cards / pill buttons) */

.hdnv-section {
	--hdnv-blue: #1d4ed8;
	--hdnv-blue-dark: #1e40af;
	--hdnv-blue-mid: #2563eb;
	--hdnv-blue-100: #dbeafe;
	--hdnv-ink: #111827;
	--hdnv-gray: #4b5563;
	--hdnv-muted: #6b7280;
	--hdnv-border: #e5e7eb;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	padding: 48px 32px 56px;
	max-width: 1248px;
	margin: 0 auto;
}
.hdnv-section *, .hdnv-section *::before, .hdnv-section *::after { box-sizing: border-box; }

/* Header row */
.hdnv-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 32px;
}
.hdnv-title {
	font-family: inherit;
	font-size: 30px;
	line-height: 36px;
	font-weight: 700;
	color: var(--hdnv-ink);
	margin: 0 0 10px;
}
.hdnv-sub {
	font-size: 17px;
	line-height: 1.6;
	color: var(--hdnv-gray);
	margin: 0;
	max-width: 620px;
}

/* Buttons — site pill style: radius 9999px, weight 600 */
.hdnv-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 9999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, filter .2s ease;
	white-space: nowrap;
}
.hdnv-btn-primary {
	background-image: linear-gradient(to right, var(--hdnv-blue-dark), var(--hdnv-blue-mid));
	color: #ffffff;
	padding: 10px 24px;
	font-size: 14px;
}
.hdnv-btn-primary:hover {
	color: #ffffff;
	filter: brightness(1.08);
	box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
}
.hdnv-btn-outline {
	background: #ffffff;
	color: var(--hdnv-blue);
	border: 1.5px solid var(--hdnv-blue);
	padding: 11px 28px;
	font-size: 15px;
}
.hdnv-btn-outline:hover {
	background: var(--hdnv-blue);
	color: #ffffff;
	box-shadow: 0 6px 16px rgba(29, 78, 216, .25);
}

/* Toolbar: category filter pills + search */
.hdnv-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.hdnv-pills {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.hdnv-pill {
	background: #ffffff;
	border: 1px solid var(--hdnv-border);
	color: var(--hdnv-gray);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 9999px;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.hdnv-pill:hover {
	border-color: var(--hdnv-blue);
	color: var(--hdnv-blue);
}
.hdnv-pill.is-active {
	background: var(--hdnv-blue-100);
	border-color: var(--hdnv-blue-100);
	color: var(--hdnv-blue-dark);
}
.hdnv-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid var(--hdnv-border);
	border-radius: 9999px;
	padding: 8px 18px;
	color: var(--hdnv-muted);
	min-width: 230px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.hdnv-search-wrap:focus-within {
	border-color: var(--hdnv-blue);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.hdnv-search {
	border: 0;
	outline: 0;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	color: var(--hdnv-ink);
	width: 100%;
	padding: 0;
}
.hdnv-search::placeholder { color: var(--hdnv-muted); }

/* Load more */
.hdnv-more {
	text-align: center;
	margin-top: 32px;
}
.hdnv-more[hidden], .hdnv-results[hidden], .hdnv-empty[hidden], .hdnv-default[hidden], .hdnv-grid[hidden] { display: none; }
.hdnv-empty {
	font-size: 15.5px;
	color: var(--hdnv-gray);
	text-align: center;
	padding: 40px 0;
	margin: 0;
}
.hdnv-results { margin-bottom: 4px; }

/* Hero: featured left + two compact cards right */
.hdnv-hero {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 28px;
	align-items: start;
	margin-bottom: 28px;
}
.hdnv-hero-solo { grid-template-columns: minmax(0, 820px); }
.hdnv-side {
	display: flex;
	flex-direction: column;
	gap: 22px;
	align-self: stretch;
}

/* Cards */
.hdnv-card {
	background: #ffffff;
	border: 1px solid var(--hdnv-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(17, 24, 39, .06);
	transition: box-shadow .25s ease, transform .25s ease;
	display: flex;
	flex-direction: column;
}
.hdnv-card:hover {
	box-shadow: 0 10px 28px rgba(29, 78, 216, .12);
	transform: translateY(-2px);
}

.hdnv-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hdnv-blue-100);
}
.hdnv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
	margin: 0;
}
.hdnv-card:hover .hdnv-thumb img { transform: scale(1.04); }

.hdnv-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--hdnv-blue-100);
	color: var(--hdnv-blue-dark);
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 9999px;
	letter-spacing: .01em;
}

.hdnv-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: rgba(29, 78, 216, .92);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(17, 24, 39, .25);
	transition: transform .25s ease, background-color .25s ease;
}
.hdnv-play svg { width: 24px; height: 24px; margin-left: 3px; }
.hdnv-card:hover .hdnv-play {
	transform: translate(-50%, -50%) scale(1.08);
	background: var(--hdnv-blue);
}
.hdnv-mini .hdnv-play { width: 40px; height: 40px; }
.hdnv-mini .hdnv-play svg { width: 18px; height: 18px; }
.hdnv-mini .hdnv-badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 10px; }

.hdnv-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.hdnv-card-title {
	font-family: inherit;
	font-size: 17px;
	line-height: 1.4;
	font-weight: 700;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hdnv-card-title a { color: var(--hdnv-ink); text-decoration: none; }
.hdnv-card-title a:hover { color: var(--hdnv-blue); }
.hdnv-featured .hdnv-card-title { font-size: 22px; line-height: 1.35; }

.hdnv-desc {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--hdnv-gray);
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hdnv-featured .hdnv-desc { font-size: 15.5px; -webkit-line-clamp: 4; }

.hdnv-actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.hdnv-related {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hdnv-blue);
	text-decoration: none;
}
.hdnv-related:hover { text-decoration: underline; color: var(--hdnv-blue-dark); }

/* Mini cards (right of featured): horizontal layout, sharing the featured card's height */
.hdnv-mini { flex-direction: row; flex: 1; }
.hdnv-mini .hdnv-thumb { width: 44%; flex-shrink: 0; aspect-ratio: auto; min-height: 150px; align-self: stretch; }
.hdnv-mini .hdnv-body { padding: 16px 18px; }
.hdnv-mini .hdnv-card-title { font-size: 15.5px; }
.hdnv-mini .hdnv-desc { font-size: 13.5px; -webkit-line-clamp: 2; margin-bottom: 12px; }
.hdnv-mini .hdnv-btn-primary { padding: 7px 16px; font-size: 13px; }

/* Grid of remaining videos */
.hdnv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Lightbox */
.hdnv-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(17, 24, 39, .88);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.hdnv-lightbox-inner {
	position: relative;
	width: 100%;
	max-width: 960px;
}
.hdnv-lightbox-frame {
	aspect-ratio: 16 / 9;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
}
.hdnv-lightbox-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.hdnv-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}
.hdnv-lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* Responsive */
@media (max-width: 980px) {
	.hdnv-hero { grid-template-columns: 1fr; }
	.hdnv-grid { grid-template-columns: repeat(2, 1fr); }
	.hdnv-title { font-size: 27px; line-height: 33px; }
}
@media (max-width: 640px) {
	.hdnv-section { padding: 32px 20px 40px; }
	.hdnv-grid { grid-template-columns: 1fr; }
	.hdnv-head { align-items: flex-start; }
	.hdnv-toolbar { flex-direction: column; align-items: stretch; }
	.hdnv-search-wrap { min-width: 0; }
	.hdnv-mini { flex-direction: column; }
	.hdnv-mini .hdnv-thumb { width: 100%; aspect-ratio: 16 / 9; min-height: 0; }
	.hdnv-featured .hdnv-card-title { font-size: 19px; }
	.hdnv-sub { font-size: 15.5px; }
	.hdnv-btn-outline { padding: 10px 22px; font-size: 14px; }
}
