.ngl-landing {
	display: grid;
	gap: 24px;
	align-items: start;
	max-width: 1300px;
	margin: 0 auto;
	padding: 24px;
	background: var(--ngl-bg-color, #fff);
	font-family: var(--ngl-font-family, inherit) !important;
}
.ngl-sidebar { grid-area: sidebar; }
.ngl-slider  { grid-area: slider; }
.ngl-cards   { grid-area: cards; }

/* Classic: sidebar, slider, and the card rail all in one row */
.ngl-landing--cards-beside {
	grid-template-columns: 260px 1fr 340px;
	grid-template-areas: "sidebar slider cards";
}
.ngl-landing--cards-beside.ngl-landing--no-sidebar {
	grid-template-columns: 1fr 340px;
	grid-template-areas: "slider cards";
}
.ngl-landing--cards-beside .ngl-cards { grid-template-columns: 1fr 1fr; }

/* New: sidebar + slider on top, the 4 cards as a full-width row underneath */
.ngl-landing--cards-below {
	grid-template-columns: 260px 1fr;
	grid-template-areas:
		"sidebar slider"
		"cards   cards";
}
.ngl-landing--cards-below.ngl-landing--no-sidebar {
	grid-template-columns: 1fr;
	grid-template-areas:
		"slider"
		"cards";
}
.ngl-landing--cards-below .ngl-cards { grid-template-columns: repeat(4, 1fr); }

/* Sidebar */
.ngl-sidebar-title {
	text-transform: uppercase;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.5px;
	margin: 0 0 16px;
	color: var(--ngl-title-color, #111);
}
.ngl-sidebar-title .ngl-bar {
	display: inline-block;
	width: 4px;
	height: 16px;
	background: var(--ngl-accent-color, #cc1f1f);
	margin-right: 8px;
	vertical-align: -2px;
}
.ngl-sidebar-list { list-style: none; margin: 0; padding: 0; }
.ngl-sidebar-item {
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}
.ngl-sidebar-link {
	display: block;
	font-weight: var(--ngl-title-weight, 700) !important;
	font-size: var(--ngl-sidebar-title-size, 14px) !important;
	line-height: 1.35;
	color: var(--ngl-title-color, #111);
	text-decoration: none;
	margin: 4px 0 6px;
}
.ngl-sidebar-link:hover { text-decoration: underline; }

/* Slider — square-cropped image, centered regardless of source dimensions */
.ngl-slider { position: relative; }
.ngl-slider-track { position: relative; width: 100%; aspect-ratio: var(--ngl-slider-aspect-ratio, 1/1); overflow: hidden; background: #222; }
.ngl-slide {
	display: block;
	color: #fff;
	text-decoration: none;
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease;
	z-index: 1;
}
.ngl-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

/* Slide (horizontal) transition variant */
.ngl-slider--slide .ngl-slide {
	opacity: 1;
	visibility: visible;
	transform: translateX(100%);
	transition: transform 0.6s ease;
}
.ngl-slider--slide .ngl-slide.is-active { transform: translateX(0); }
.ngl-slider--slide .ngl-slide.is-prev { transform: translateX(-100%); }

.ngl-slide-image-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: #222;
}
.ngl-slide-image {
	position: absolute !important;
	top: 50%;
	left: 50%;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transform: translate(-50%, -50%);
}
.ngl-slide-caption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 24px;
	background: linear-gradient(transparent, var(--ngl-slider-overlay, #000));
	z-index: 1;
}
.ngl-slide-title {
	color: #fff;
	font-weight: var(--ngl-title-weight, 700) !important;
	font-size: var(--ngl-slider-title-size, 28px) !important;
	line-height: 1.2;
	margin: 8px 0 0;
}

.ngl-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.85);
	color: #111;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
}
.ngl-slider-arrow--prev { left: 12px; }
.ngl-slider-arrow--next { right: 12px; }
.ngl-slider-arrow:hover { background: #fff; }

.ngl-slider-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
	z-index: 3;
}
.ngl-slider-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 0;
}
.ngl-slider-dot.is-active { background: #fff; }

/* Cards grid */
.ngl-cards {
	display: grid;
	gap: 16px;
}
.ngl-card { color: var(--ngl-title-color, #111); text-decoration: none; background: var(--ngl-card-bg-color, #fff); }
.ngl-card-image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ngl-cards-aspect-ratio, 1/1);
	overflow: hidden;
	background: #ddd;
}
.ngl-card-image {
	position: absolute !important;
	top: 50%;
	left: 50%;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transform: translate(-50%, -50%);
}
.ngl-card-title {
	font-weight: var(--ngl-title-weight, 700) !important;
	font-size: var(--ngl-card-title-size, 15px) !important;
	line-height: 1.3;
	margin: 8px 0 4px;
	color: var(--ngl-title-color, #111);
}

/* Shared */
.ngl-cat-label {
	color: var(--ngl-accent-color, #cc1f1f);
	font-weight: 800;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.ngl-meta {
	font-size: var(--ngl-meta-size, 12px) !important;
	color: var(--ngl-meta-color, #777);
}

@media (max-width: 960px) {
	.ngl-landing {
		grid-template-columns: 1fr !important;
		grid-template-areas: "sidebar" "slider" "cards" !important;
	}
	.ngl-landing--no-sidebar {
		grid-template-areas: "slider" "cards" !important;
	}
	.ngl-cards { grid-template-columns: 1fr 1fr !important; }
}

/* Age gate: disabled-but-visible menu items */
.ngl-menu-disabled > a {
	pointer-events: none;
	cursor: not-allowed;
	opacity: 0.45;
}

/* News ticker */
.ngl-ticker {
	display: flex;
	align-items: center;
	background: var(--ngl-ticker-bg, #111);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ngl-ticker-label {
	flex: 0 0 auto;
	background: var(--ngl-ticker-label-bg, #cc1f1f);
	color: var(--ngl-ticker-label-text, #fff) !important;
	font-weight: 800;
	font-size: var(--ngl-ticker-font-size, 14px) !important;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 10px 16px;
	white-space: nowrap;
}
.ngl-ticker-viewport {
	flex: 1 1 auto;
	overflow: hidden;
	position: relative;
}
.ngl-ticker-track {
	display: flex;
	width: max-content;
	animation: ngl-ticker-scroll-left var(--ngl-ticker-speed, 30s) linear infinite;
}
.ngl-ticker--right .ngl-ticker-track { animation-name: ngl-ticker-scroll-right; }
.ngl-ticker--pause-on-hover:hover .ngl-ticker-track { animation-play-state: paused; }
.ngl-ticker-item {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 10px 32px 10px 0;
	color: var(--ngl-ticker-text, #fff) !important;
	text-decoration: none !important;
	font-size: var(--ngl-ticker-font-size, 14px) !important;
	font-weight: 600 !important;
}
.ngl-ticker-item:hover { text-decoration: underline !important; }

@keyframes ngl-ticker-scroll-left {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes ngl-ticker-scroll-right {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

/* Blog list */
.ngl-bloglist {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
}
.ngl-bloglist-item {
	display: flex !important;
	flex-direction: row !important;
	gap: 28px;
	padding-bottom: 32px;
	margin-bottom: 32px;
	border-bottom: 1px solid #eee;
}
.ngl-bloglist-item:last-of-type { border-bottom: none; }
.ngl-bloglist-image-wrap {
	position: relative;
	flex: 0 0 40% !important;
	max-width: 40% !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	display: block !important;
	background: #eee;
}
.ngl-bloglist-image {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transform: translate(-50%, -50%);
}
.ngl-bloglist-badges {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
	z-index: 2;
}
.ngl-bloglist-cat-badge {
	background: #cc1f1f;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
}
.ngl-bloglist-content { flex: 1 1 auto !important; min-width: 0; }
.ngl-bloglist-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #888;
	margin-bottom: 8px;
}
.ngl-bloglist-title {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 10px;
}
.ngl-bloglist-title a { color: #111; text-decoration: none; }
.ngl-bloglist-title a:hover { text-decoration: underline; }
.ngl-bloglist-excerpt {
	font-size: 15px;
	color: #666;
	line-height: 1.6;
	margin: 0 0 12px;
}
.ngl-bloglist-readmore {
	font-weight: 700;
	color: #111;
	text-decoration: none;
}
.ngl-bloglist-readmore:hover { text-decoration: underline; }

.ngl-bloglist-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 16px;
}
.ngl-bloglist-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 6px;
	background: #f2f2f2;
	color: #111 !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
}
.ngl-bloglist-page-link:hover { background: #e4e4e4; }
.ngl-bloglist-page-link.is-current { background: #cc1f1f; color: #fff !important; }
.ngl-bloglist-page-ellipsis { display: inline-flex; align-items: center; padding: 0 4px; color: #999; }

@media (max-width: 700px) {
	.ngl-bloglist-item { flex-direction: column !important; }
	.ngl-bloglist-image-wrap { max-width: 100% !important; flex-basis: auto !important; aspect-ratio: 16 / 9; }
}
