/* New Life Videos Public Styles */

.nlv-grid-wrapper {
	padding-top: var(--nlv-pt);
	padding-bottom: var(--nlv-pb);
	font-family: inherit;
}

.nlv-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

/* Box Common Styling */
.nlv-box {
	border-radius: 16px;
	overflow: hidden;
}

/* Intro Box (Slot 1) */
.nlv-intro-box {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 24px 0;
}

.nlv-badge {
	display: inline-flex;
	align-items: center;
	background: #1a1a1a;
	color: #fff;
	padding: 8px 16px;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 24px;
	width: fit-content;
}

.nlv-badge-dot {
	width: 8px;
	height: 8px;
	background: #cc0000;
	border-radius: 50%;
	margin-right: 8px;
}

.nlv-intro-title {
	color: #fff;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

/* Video Box */
.nlv-video-box {
	background: var(--nlv-bg);
	border: 1px solid var(--nlv-border);
	display: flex;
	flex-direction: column;
	transition: border-color 0.3s ease, transform 0.3s ease;
	cursor: pointer;
}

.nlv-video-box:hover {
	border-color: var(--nlv-border-hover);
	transform: translateY(-4px);
}

.nlv-video-header {
	padding: 16px 20px;
}

.nlv-video-title {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.nlv-video-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background-color: #222;
	background-size: cover;
	background-position: center;
}

.nlv-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 60px;
	height: 60px;
	transition: transform 0.2s ease;
}

.nlv-video-box:hover .nlv-play-btn {
	transform: translate(-50%, -50%) scale(1.1);
}

.nlv-play-icon {
	width: 100%;
	height: 100%;
}

.nlv-video-footer {
	padding: 16px 20px;
}

.nlv-video-desc {
	color: #aaa;
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
}

/* Modal Styling */
.nlv-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.nlv-modal-overlay.nlv-active {
	opacity: 1;
	pointer-events: auto;
}

.nlv-modal-content {
	position: relative;
	width: 90%;
	max-width: 1000px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.nlv-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 30px;
	cursor: pointer;
}

.nlv-video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}

.nlv-video-container iframe,
.nlv-video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
	.nlv-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.nlv-intro-title {
		font-size: 32px;
	}
}

@media (max-width: 650px) {
	.nlv-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.nlv-intro-box {
		grid-column: span 2;
		padding: 12px 0 24px;
	}
	.nlv-intro-title {
		font-size: 28px;
	}
	.nlv-video-title {
		font-size: 15px;
	}
}

/* Archive Grid Styling */
.nlv-archive-wrapper {
	width: 100%;
}

.nlv-archive-grid {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.nlv-archive-item {
	position: relative;
	width: 33.3333%;
	overflow: hidden;
	cursor: pointer;
}

.nlv-archive-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #222;
	transition: transform 0.4s ease;
}

.nlv-archive-item:hover .nlv-archive-bg {
	transform: scale(1.05);
}

.nlv-archive-overlay {
	position: absolute;
	inset: 0;
	/* Red/Dark gradient overlay based on the screenshot */
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.85) 100%);
	transition: background 0.3s ease;
}
/* Adding a red tint to the overlay on hover for a dynamic effect matching the screenshot's color themes */
.nlv-archive-item:hover .nlv-archive-overlay {
	background: linear-gradient(to bottom, rgba(100,0,0,0.2) 0%, rgba(200,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%);
}

.nlv-archive-item .nlv-play-btn {
	z-index: 2;
}

.nlv-archive-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 8% 8% 6%; /* Scalable padding based on square tile size */
	z-index: 2;
}

.nlv-archive-title {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.2;
}

.nlv-archive-desc {
	color: #bbb;
	font-size: 13px;
	margin: 0;
	line-height: 1.4;
}

/* Pagination */
.nlv-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 0;
}

.nlv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin: 0 4px;
	background: #777; /* Gray background for inactive numbers */
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 16px;
}

.nlv-pagination .page-numbers.current {
	background: #db2c2c; /* Red background for active page */
}

.nlv-pagination .page-numbers.next,
.nlv-pagination .page-numbers.prev {
	background: transparent;
	border: 1px solid #777; /* Subtle border for arrows */
	color: #fff;
}

.nlv-pagination .page-numbers.next:hover,
.nlv-pagination .page-numbers.prev:hover {
	border-color: #db2c2c;
	color: #db2c2c;
}

.nlv-pagination .page-numbers:hover:not(.current):not(.next):not(.prev) {
	background: #999;
}

/* Archive Responsive */
@media (max-width: 900px) {
	.nlv-archive-item {
		width: 50%;
	}
	.nlv-archive-title { font-size: 20px; }
}

@media (max-width: 550px) {
	.nlv-archive-item {
		width: 50%;
	}
	.nlv-archive-title { font-size: 15px; margin-bottom: 2px; }
	.nlv-archive-desc { font-size: 11px; line-height: 1.3; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
	.nlv-play-btn { width: 40px; height: 40px; }
}
