/* Trang chủ - clone 100% bluesunpv.com */

.elementor-hidden-mobile { display: block; }
.elementor-hidden-desktop { display: none; }

/* Font tiếng Việt: Poppins (Rany không hỗ trợ dấu) */
body.home {
	font-family: var(--bluesun-font-body);
}

body.home .elementor-heading-title,
body.home .elementor-button-text,
body.home .bluesun-hero-title,
body.home .bluesun-hero-btn,
body.home .bluesun-stat-number,
body.home .bluesun-stat-plus,
body.home .bluesun-stat-label,
body.home .section-title,
body.home .cat-label,
body.home .left-item .title,
body.home .article-item .title,
body.home .left-item .date,
body.home .article-item .date,
body.home .card-title .elementor-heading-title,
body.home .card-desc .elementor-widget-container p {
	font-family: var(--bluesun-font-body);
}

/* ===== HERO VIDEO ===== */
.bluesun-hero {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 700px;
	overflow: hidden;
	background: #000;
}

.bluesun-hero-media {
	position: absolute;
	inset: 0;
}

.bluesun-hero-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bluesun-hero-content {
	position: absolute;
	z-index: 3;
	bottom: 120px;
	left: max(125px, 6%);
	max-width: min(42%, 720px);
	text-align: left;
}

.bluesun-hero-title {
	font-size: 35px;
	font-weight: 400;
	line-height: 1.25;
	margin: 0 0 0;
	color: #fff;
}

.bluesun-hero-badge {
	margin-top: 100px;
}

.bluesun-hero-btn {
	display: inline-block;
	padding: 20px 40px;
	border: 1px solid #fff;
	border-radius: 30px;
	color: #fff !important;
	font-family: var(--bluesun-font-body);
	font-size: 1rem;
	font-weight: 100;
	line-height: 1;
	background: transparent;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	transition: background 0.3s, color 0.3s, border-color 0.3s;
	text-decoration: none;
}

.bluesun-hero-btn:hover {
	background: #f7f7f7;
	color: #0a0a0a !important;
	border-color: #f7f7f7;
}

/* ===== STATS ===== */
.bluesun-stats {
	background: #0f0f0f;
	padding: 40px 0 0;
	color: #fff;
}

.bluesun-stats-wrap {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0;
}

.bluesun-stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.bluesun-stat-col {
	text-align: center;
	padding: 0;
	margin: 0;
}

.bluesun-stat-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: end;
	max-width: 280px;
	margin: 0 auto 8px;
	gap: 8px;
}

.bluesun-stat-number {
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-align: right;
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 4px;
}

.bluesun-stat-number .suffix {
	font-size: 50px;
}

.bluesun-stat-plus {
	font-size: 35px;
	font-weight: 700;
	color: #fff;
	text-align: left;
	line-height: 1;
}

.bluesun-stat-label {
	font-size: 28px;
	font-weight: 500;
	color: #fff;
	margin: 0;
	text-align: center;
}

/* ===== SUNARK CARDS (clone e-con-inner gốc) ===== */
body.home .bluesun-cards.e-con-boxed {
	--display: grid;
	--e-con-grid-template-columns: repeat(2, 1fr);
	--e-con-grid-template-rows: repeat(2, 1fr);
	--grid-auto-flow: row;
	--content-width: 100%;
	--gap: 20px;
	--padding-top: 10px;
	--padding-bottom: 10px;
	display: grid;
	justify-items: legacy;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	text-align: initial;
	gap: initial;
	padding-top: var(--padding-top);
	padding-bottom: var(--padding-bottom);
	margin-top: 0;
	background: #111;
}

body.home .bluesun-cards > .e-con-inner,
body.home .bluesun-cards-inner.e-con-inner {
	display: grid;
	grid-template-columns: var(--e-con-grid-template-columns);
	grid-template-rows: var(--e-con-grid-template-rows);
	grid-auto-flow: var(--grid-auto-flow);
	justify-content: start;
	align-content: start;
	justify-items: stretch;
	align-items: stretch;
	width: 100%;
	max-width: var(--content-width);
	margin: 0 auto;
	gap: var(--gap);
	padding-inline: 0;
	height: 100%;
}

body.home .bluesun-cards .sunark-card {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 20px;
	position: relative;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

body.home .bluesun-cards .elementor-widget {
	min-width: 0;
	margin: 0;
	padding: 0;
}

body.home .bluesun-cards .elementor-widget-container {
	margin: 0;
	padding: 0;
}

body.home .bluesun-cards .sunark-card-image .elementor-widget-container {
	line-height: 0;
}

body.home .bluesun-cards .sunark-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 800 / 405;
	object-fit: cover;
	display: block;
	transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.45s ease;
	filter: brightness(0.78);
	transform: translateX(0) scaleX(1);
}

body.home .bluesun-cards .sunark-card:hover img {
	filter: brightness(1.08);
	transform: translateX(12px) scaleX(1.03);
}

body.home .bluesun-cards .sunark-content {
	position: absolute;
	left: 30px;
	bottom: 30px;
	z-index: 10;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	color: #fff;
	pointer-events: none;
	background: none;
	padding: 0;
	width: auto;
	height: auto;
}

body.home .bluesun-cards .card-title .elementor-heading-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	opacity: 1;
}

body.home .bluesun-cards .card-desc .elementor-widget-container p {
	margin: 6px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.home .bluesun-cards .sunark-card:hover .card-desc .elementor-widget-container p {
	opacity: 1;
	transform: translateY(0);
}

@media (min-width: 768px) {
	body.home .bluesun-cards.e-con-boxed {
		--content-width: 95%;
	}
}

/* ===== NEWS-BLOGS-SECTION (clone gốc) ===== */
.news-blogs-section {
	background: #808080;
	padding: 60px 0;
	margin: 0;
}

.news-blogs-section .container {
	max-width: 100%;
	padding: 0 4%;
	margin: 0 auto;
}

.news-blogs-section .news-content {
	padding: 0;
}

.section-header {
	position: relative;
	text-align: center;
	margin-bottom: 50px;
	background: linear-gradient(145deg, #111111, #1a1a1a);
	padding: 60px 0;
	overflow: hidden;
}

.section-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 50% 20%, rgba(255, 180, 0, 0.1), transparent 70%);
	z-index: 1;
}

.section-header .section-title {
	position: relative;
	display: inline-block;
	padding: 12px 36px;
	border: 2px solid #ffb400;
	color: #ffffff;
	font-size: 36px;
	font-weight: 500;
	letter-spacing: 1px;
	border-radius: 10px;
	text-transform: uppercase;
	z-index: 2;
	background: rgba(0,0,0,0.2);
	backdrop-filter: blur(2px);
	transition: all 0.35s ease;
	margin: 0;
}

.section-header .section-title:hover {
	box-shadow: 0 0 16px rgba(255, 180, 0, 0.5);
	border-color: #ffc94d;
	transform: translateY(-3px);
}

.desktop-news {
	display: flex;
	gap: 40px;
	align-items: stretch;
}

.left-news {
	flex: 1;
}

.left-item {
	display: block;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.left-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.left-item .thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 800 / 490;
	object-fit: cover;
	display: block;
}

.left-item .meta {
	padding: 16px 20px 0;
}

.cat-label {
	color: #ffb400;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
}

.left-item .title {
	font-size: 22px;
	line-height: 1.5;
	color: #111;
	margin: 8px 20px 60px;
	font-weight: 500;
	text-align: left;
}

.left-item .date {
	position: absolute;
	bottom: 20px;
	left: 20px;
	color: #444;
	font-size: 16px;
	font-weight: 500;
	margin: 0;
}

.right-news {
	flex: 1;
	display: flex;
}

.article-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	width: 100%;
}

.article-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	box-shadow: 0 3px 10px rgba(0,0,0,0.06);
	transition: all 0.3s ease;
	position: relative;
	text-decoration: none;
	color: inherit;
}

.article-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.article-item .thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.article-item .meta {
	padding: 10px 16px 0;
}

.article-item .cat-label {
	font-size: 13px;
}

.article-item .title {
	font-size: 17px;
	line-height: 1.6;
	color: #111;
	font-weight: 500;
	margin: 8px 16px 60px;
	text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.article-item .date {
	position: absolute;
	bottom: 16px;
	left: 16px;
	color: #555;
	font-size: 15px;
	font-weight: 500;
	margin: 0;
}

.mobile-news-wrapper {
	display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
	.bluesun-hero {
		min-height: 68vh;
	}

	.bluesun-hero-content {
		left: 24px;
		right: 24px;
		max-width: none;
	}

	.bluesun-hero-title { font-size: 26px; }

	.bluesun-hero-badge { margin-top: 30px; }

	.bluesun-stat-number,
	.bluesun-stat-number .suffix { font-size: 31px; }

	.bluesun-stat-plus { font-size: 20px; }

	.bluesun-stat-label { font-size: 20px; }
}

/* Override main.css trên trang chủ */
body.home .bluesun-main {
	padding-top: 0;
}

/* Ẩn CTA footer trùng với CTA toàn trang */
body.home .bluesun-site-cta {
	display: none !important;
}

body.home .bluesun-stats {
	padding: 40px 0 0;
	background: #0f0f0f;
}

body.home .bluesun-hero {
	display: block;
	text-align: left;
	align-items: unset;
	justify-content: unset;
}

@media (max-width: 768px) {
	.elementor-hidden-mobile { display: none !important; }
	.elementor-hidden-desktop { display: block !important; }

	.bluesun-stats-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	body.home .bluesun-stats {
		padding: 32px 0 0;
	}

	body.home .bluesun-cards.e-con-boxed {
		--padding-top: 10px;
		--padding-bottom: 10px;
		margin-top: 0;
	}

	body.home .bluesun-cards.e-con-boxed {
		--e-con-grid-template-columns: repeat(1, 1fr);
		--e-con-grid-template-rows: repeat(2, 1fr);
		--content-width: 100%;
	}

	body.home .bluesun-cards .sunark-card img {
		filter: brightness(1);
		transform: none;
	}

	body.home .bluesun-cards .card-desc .elementor-widget-container p {
		opacity: 1;
		transform: none;
	}

	body.home .bluesun-cards .card-title .elementor-heading-title {
		font-size: 26px;
	}

	.desktop-news { display: none !important; }
	.mobile-news-wrapper { display: block !important; }

	.mobile-news {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.section-header {
		padding: 40px 0;
		margin-bottom: 40px;
	}

	.section-header .section-title {
		padding: 10px 24px;
		font-size: 28px;
		border-width: 1.5px;
	}

	.mobile-news .thumb img { height: 280px; }
}

