/* Network League Tables */

.nlt-wrap {
	--nlt-primary: #43727C;
	--nlt-dark: #315863;
	--nlt-accent: #ffca63;
	--nlt-border: #e2e8ea;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: inherit;
}

.nlt-wrap *,
.nlt-wrap *::before,
.nlt-wrap *::after {
	box-sizing: border-box;
}

/* Filters */
.nlt-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.nlt-filter-btn {
	font-size: 14px;
	font-weight: 600;
	padding: 9px 20px;
	border-radius: 999px;
	border: 1.5px solid var(--nlt-primary);
	background: #fff;
	color: var(--nlt-primary);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nlt-filter-btn:hover {
	background: var(--nlt-accent);
	border-color: var(--nlt-accent);
	color: var(--nlt-dark);
}

.nlt-filter-btn.is-active {
	background: var(--nlt-dark);
	border-color: var(--nlt-dark);
	color: #fff;
}

@media (max-width: 480px) {
	.nlt-filters {
		gap: 8px;
	}
	.nlt-filter-btn {
		font-size: 13px;
		padding: 7px 14px;
	}
}

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

@media (max-width: 991px) {
	.nlt-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.nlt-grid {
		grid-template-columns: 1fr;
	}
}

.nlt-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--nlt-border);
	border-top: 4px solid var(--nlt-primary);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none !important;
	box-shadow: 0 2px 10px rgba(49, 88, 99, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nlt-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(49, 88, 99, 0.12);
}

.nlt-card-image {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nlt-border);
}

.nlt-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.nlt-card:hover .nlt-card-image img {
	transform: scale(1.04);
}

.nlt-card-title {
	font-size: 19px;
	font-weight: 700;
	color: var(--nlt-dark);
	margin: 0;
	padding: 18px 20px 22px;
}

.nlt-no-results {
	text-align: center;
	color: var(--nlt-dark);
	padding: 40px 0;
	font-size: 15px;
}

/* Inline featured image block (used inside Elementor post content) */
.nlt-image-block {
	--nlt-primary: #43727C;
	--nlt-dark: #315863;
	margin: 0;
	max-width: 100%;
}

.nlt-image-block .nlt-lightbox-trigger {
	position: relative;
	display: block;
	cursor: zoom-in;
	border-radius: 8px;
	overflow: hidden;
}

.nlt-image-block img {
	width: 100%;
	height: auto;
	display: block;
}

.nlt-lightbox-hint {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: rgba(49, 88, 99, 0.85);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.nlt-image-block .nlt-lightbox-trigger:hover .nlt-lightbox-hint {
	opacity: 1;
	transform: translateY(0);
}

.nlt-lightbox-icon {
	width: 14px;
	height: 14px;
	border: 2px solid #fff;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}

.nlt-lightbox-icon::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 2px;
	background: #fff;
	right: -6px;
	bottom: -1px;
	transform: rotate(45deg);
}

/* Lightbox overlay */
.nlt-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 30, 33, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
}

.nlt-lightbox-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.nlt-lightbox-overlay img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.nlt-lightbox-overlay.is-open img {
	transform: scale(1);
}

.nlt-lightbox-close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.nlt-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.nlt-lightbox-close::before,
.nlt-lightbox-close::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 2px;
	background: #fff;
}

.nlt-lightbox-close::before {
	transform: rotate(45deg);
}

.nlt-lightbox-close::after {
	transform: rotate(-45deg);
}

@media (max-width: 600px) {
	.nlt-lightbox-overlay {
		padding: 16px;
	}
	.nlt-lightbox-close {
		top: 12px;
		right: 12px;
	}
}
