/**
 * Compatibility layout for the legacy HTMag homepage after WPBakery removal.
 * Loaded only on the static front page.
 */

body.home #content.sidebar_content {
	width: 100%;
	float: none;
}

body.home #sidebar:empty {
	display: none;
}

.ng-vc-row {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	box-sizing: border-box;
}

.ng-vc-column {
	position: relative;
	min-height: 1px;
	box-sizing: border-box;
}

.ng-vc-column > .vc_column-inner,
.ng-vc-column .wpb_wrapper {
	width: 100%;
	box-sizing: border-box;
}

.vc_col-sm-12 { width: 100%; }
.vc_col-sm-10 { width: 83.333333%; }
.vc_col-sm-9  { width: 75%; }
.vc_col-sm-8  { width: 66.666667%; }
.vc_col-sm-6  { width: 50%; }
.vc_col-sm-4  { width: 33.333333%; }
.vc_col-sm-3  { width: 25%; }
.vc_col-sm-2  { width: 16.666667%; }

.ng-vc-column.sidebar_content.left {
	padding-right: 20px;
}

.ng-vc-column.sidebar.right {
	padding-left: 20px;
}

.ng-home-module {
	margin-bottom: 34px;
}

.ng-home-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	border-bottom: 3px solid #aa1801;
}

.ng-home-section-head h2 {
	margin: 0;
	padding: 8px 13px;
	background: #aa1801;
	color: #fff;
	font-size: 18px;
	line-height: 1.2;
	text-transform: uppercase;
}

.ng-home-section-head h2 a {
	color: #fff;
	text-decoration: none;
}

.ng-home-category {
	display: inline-block;
	margin-bottom: 7px;
	padding: 4px 7px;
	background: #aa1801;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.ng-home-date {
	margin-top: 6px;
	color: #8a8a8a;
	font-size: 12px;
}

.ng-home-card-image {
	position: relative;
	display: block;
	overflow: hidden;
	background: #111;
}

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

.ng-home-card-image:hover img {
	transform: scale(1.03);
}

.ng-home-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 170px;
	background: #191919;
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 2px;
}

.ng-home-hero {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 220px 220px;
	gap: 4px;
	margin-bottom: 40px;
	background: #111;
}

.ng-home-hero-card {
	position: relative;
	min-width: 0;
	overflow: hidden;
}

.ng-home-hero-card.ng-home-hero-main {
	grid-row: 1 / span 2;
}

.ng-home-hero-card .ng-home-card-image {
	position: absolute;
	inset: 0;
}

.ng-home-hero-overlay {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 55px 18px 18px;
	background: linear-gradient(to bottom, transparent, rgba(0,0,0,.92));
}

.ng-home-hero-overlay h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
}

.ng-home-hero-main .ng-home-hero-overlay h2 {
	font-size: 28px;
}

.ng-home-hero-overlay h2 a {
	color: #fff;
	text-decoration: none;
}

.ng-home-scroller-grid,
.ng-home-newsbox-grid,
.ng-home-video-grid {
	display: grid;
	gap: 18px;
}

.ng-home-scroller-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-home-newsbox-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ng-home-video-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ng-home-scroller-card,
.ng-home-newsbox-card,
.ng-home-video-card {
	background: #fff;
}

.ng-home-scroller-card .ng-home-card-image {
	aspect-ratio: 16 / 9;
}

.ng-home-newsbox-card .ng-home-card-image,
.ng-home-video-card .ng-home-card-image {
	aspect-ratio: 16 / 10;
}

.ng-home-card-body {
	padding: 11px 0 0;
}

.ng-home-card-body h3,
.ng-home-video-card h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}

.ng-home-card-body h3 a,
.ng-home-video-card h3 a,
.ng-home-list-copy h3 a {
	color: #191919;
	text-decoration: none;
}

.ng-home-card-body h3 a:hover,
.ng-home-video-card h3 a:hover,
.ng-home-list-copy h3 a:hover {
	color: #aa1801;
}

.ng-home-list {
	display: grid;
	gap: 18px;
}

.ng-home-list-item {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 17px;
	padding-bottom: 18px;
	border-bottom: 1px solid #e5e5e5;
}

.ng-home-list-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #111;
}

.ng-home-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ng-home-list-copy h3 {
	margin: 0 0 5px;
	font-size: 19px;
	line-height: 1.3;
}

.ng-home-list-copy p {
	margin: 9px 0 0;
	color: #555;
	font-size: 14px;
	line-height: 1.55;
}

.ng-home-readmore,
.ng-home-more a {
	display: inline-block;
	margin-top: 10px;
	color: #aa1801;
	font-weight: 700;
	text-decoration: none;
}

.ng-home-more {
	margin-top: 16px;
	text-align: right;
}

.ng-home-ad {
	margin: 0 0 35px;
	text-align: center;
}

.ng-home-ad img {
	max-width: 100%;
	height: auto;
}

.ng-home-video {
	padding: 20px;
	background: #111;
}

.ng-home-video .ng-home-section-head {
	border-bottom-color: #fff;
}

.ng-home-video .ng-home-section-head h2 {
	background: #fff;
	color: #111;
}

.ng-home-video .ng-home-section-head h2 a {
	color: #111;
}

.ng-home-video-card {
	background: transparent;
}

.ng-home-video-card h3 {
	margin-top: 10px;
}

.ng-home-video-card h3 a {
	color: #fff;
}

.ng-home-play {
	position: absolute;
	z-index: 3;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(170,24,1,.92);
	color: #fff;
	font-size: 17px;
	transform: translate(-50%, -50%);
}

.wpb_widgetised_column .widget {
	margin-bottom: 28px;
}

@media (max-width: 980px) {
	.ng-home-hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 300px 180px 180px;
	}

	.ng-home-hero-card.ng-home-hero-main {
		grid-column: 1 / span 2;
		grid-row: auto;
	}

	.ng-vc-column.sidebar_content.left,
	.ng-vc-column.sidebar.right {
		padding-right: 0;
		padding-left: 0;
	}
}

@media (max-width: 767px) {
	.ng-vc-row {
		display: block;
	}

	.ng-vc-column,
	.vc_col-sm-12,
	.vc_col-sm-10,
	.vc_col-sm-9,
	.vc_col-sm-8,
	.vc_col-sm-6,
	.vc_col-sm-4,
	.vc_col-sm-3,
	.vc_col-sm-2 {
		width: 100%;
		float: none;
	}

	.ng-home-hero {
		display: block;
	}

	.ng-home-hero-card,
	.ng-home-hero-card.ng-home-hero-main {
		min-height: 230px;
		margin-bottom: 4px;
	}

	.ng-home-hero-main .ng-home-hero-overlay h2,
	.ng-home-hero-overlay h2 {
		font-size: 21px;
	}

	.ng-home-scroller-grid,
	.ng-home-newsbox-grid,
	.ng-home-video-grid {
		grid-template-columns: 1fr;
	}

	.ng-home-list-item {
		grid-template-columns: 110px minmax(0, 1fr);
		gap: 12px;
	}

	.ng-home-list-copy h3 {
		font-size: 16px;
	}

	.ng-home-list-copy p {
		display: none;
	}

	.ng-home-video {
		padding: 14px;
	}
}
