/* ==========================================================================
   Flatsome Child - Simple News Layout (textlink.com.vn)
   ========================================================================== */

* { box-sizing: border-box; }

body.news-layout {
	background: #fff;
	color: #222;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	margin: 0;
}

.news-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Top bar ---------- */
.news-top-bar {
	height: 6px;
	background: #1c4f8c;
	width: 100%;
}

/* ---------- Header ---------- */
.news-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 20px 10px;
	text-align: center;
}

.news-logo a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #222;
}

.news-logo-icon {
	display: inline-flex;
}

.news-logo-text {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #222;
}

.news-logo-img {
	max-height: 46px;
	width: auto;
	display: block;
}

.news-footer-logo .news-logo-img {
	max-height: 26px;
}

.news-search-form {
	position: relative;
	margin: 22px auto;
	max-width: 320px;
}

.news-search-form input.news-search-input[type="search"],
.news-search-input {
	width: 100% !important;
	border: 1px solid #dcdfe4 !important;
	border-radius: 50px !important;
	padding: 10px 44px 10px 20px !important;
	font-size: 14px !important;
	color: #333 !important;
	background: #fff !important;
	box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06) !important;
	outline: none !important;
	margin: 0 !important;
	height: auto !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-search-input:focus {
	border-color: #1c4f8c !important;
	box-shadow: 0 2px 8px rgba(20, 30, 60, 0.12) !important;
}

.news-search-input::placeholder {
	color: #aaa;
}

.news-search-form button.news-search-btn,
.news-search-btn {
	position: absolute !important;
	right: 6px !important;
	top: 50% !important;
	left: auto !important;
	transform: translateY(-50%) !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: none !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: #1c4f8c !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	transition: color 0.2s ease;
}

.news-search-btn:hover {
	color: #d92b2b;
}

.news-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	margin-top: 16px;
	padding-bottom: 6px;
}

.news-nav-line {
	height: 1px;
	background: #e2e2e2;
	flex: 1;
	max-width: 80px;
}

.news-nav-list {
	list-style: none;
	display: flex;
	gap: 34px;
	margin: 0;
	padding: 0;
}

.news-nav-list li a {
	position: relative;
	color: #1c4f8c;
	text-decoration: none;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.6px;
	padding-bottom: 4px;
}

.news-nav-list li a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 2px;
	background: #1c4f8c;
	transition: right 0.2s ease;
}

.news-nav-list li a:hover {
	text-decoration: none;
}

.news-nav-list li a:hover::after {
	right: 0;
}

/* ---------- Category badge ---------- */
.news-category {
	display: inline-block;
	color: #d92b2b;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
}

/* ---------- Category archive page heading ---------- */
.news-category-heading {
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	color: #555;
	letter-spacing: 1px;
	text-transform: uppercase;
	max-width: 1200px;
	margin: 20px auto 30px;
	padding: 0 20px;
}

/* ---------- Hero section ---------- */
.news-hero {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
	align-items: start;
}

.news-hero-main {
	border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
	padding-bottom: 16px;
}

.news-hero-main .news-thumb {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
	border-radius: 10px 10px 0 0;
}

.news-hero-main .news-hero-body {
	padding: 16px 20px 0;
}

.news-hero-main h2 {
	font-size: 26px;
	line-height: 1.25;
	margin: 4px 0 10px;
}

.news-hero-main h2 a {
	color: #111;
	text-decoration: none;
}

.news-hero-main p.excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.news-hero-side {
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 6px 20px;
}

.news-hero-side-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.news-hero-side-item:last-child {
	border-bottom: none;
}

.news-hero-side-item .news-thumb {
	width: 150px !important;
	height: 120px !important;
	max-width: 150px !important;
	max-height: 120px !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	flex-shrink: 0;
}

.news-hero-side-item h3 {
	font-size: 15px;
	line-height: 1.35;
	margin: 2px 0 0;
}

.news-hero-side-item h3 a {
	color: #111;
	text-decoration: none;
}

/* ---------- Section headings ---------- */
.news-section-title {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1200px;
	margin: 50px auto 26px;
	padding: 0 20px;
}

.news-section-title span {
	white-space: nowrap;
	font-size: 20px;
	font-weight: 700;
	color: #555;
	letter-spacing: 1px;
}

.news-section-title::before,
.news-section-title::after {
	content: '';
	height: 1px;
	background: #ddd;
	flex: 1;
}

/* ---------- Grid (4 cols) - dung cho Editorial Features va trang chuyen muc ---------- */
.news-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0 20px;
}

.news-card {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	text-align: left;
}

.news-card .news-thumb {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 3/2 !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 0 !important;
}

.news-card .news-card-body {
	padding: 14px 16px 18px;
}

.news-card h3 {
	font-size: 16px;
	line-height: 1.35;
	margin: 4px 0 0;
}

.news-card h3 a {
	color: #111;
	text-decoration: none;
}

/* ---------- Grid (2 cols) - Latest Articles ---------- */
.news-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px 40px;
	max-width: 1200px;
	margin: 0 auto 40px;
	padding: 0 20px;
}

.news-list-item {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.news-list-item .news-thumb {
	width: 200px !important;
	height: 150px !important;
	max-width: 200px !important;
	max-height: 150px !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	flex-shrink: 0;
}

.news-list-item h3 {
	font-size: 16px;
	line-height: 1.35;
	margin: 4px 0 0;
}

.news-list-item h3 a {
	color: #111;
	text-decoration: none;
}

/* ---------- Pagination (trang chuyen muc) ---------- */
.news-pagination {
	max-width: 1200px;
	margin: 0 auto 60px;
	padding: 0 20px;
	text-align: center;
}

.news-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 4px;
	border: 1px solid #ddd;
	color: #1c4f8c;
	text-decoration: none;
	font-size: 14px;
	border-radius: 4px;
}

.news-pagination .page-numbers.current {
	background: #1c4f8c;
	color: #fff;
	border-color: #1c4f8c;
}

/* ---------- Single article ---------- */
.news-article-wrap {
	display: grid;
	grid-template-columns: 2.2fr 1fr;
	gap: 40px;
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px;
	align-items: start;
}

.news-article-main h1 {
	font-size: 30px;
	line-height: 1.3;
	margin: 6px 0 20px;
}

.news-article-main .news-thumb-full {
	width: 100%;
	height: auto;
	border-radius: 10px;
	margin-bottom: 20px;
}

.news-article-content {
	font-size: 16px;
	line-height: 1.7;
	color: #222;
}

.news-article-content p {
	margin: 0 0 18px;
}

.news-sidebar h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #888;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
	margin-bottom: 16px;
}

.news-related-item {
	display: flex;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #eee;
}

.news-related-item .news-thumb {
	width: 88px !important;
	height: 88px !important;
	max-width: 88px !important;
	max-height: 88px !important;
	object-fit: cover !important;
	border-radius: 10px !important;
	flex-shrink: 0;
}

.news-related-item h5 {
	font-size: 14px;
	line-height: 1.35;
	margin: 0;
	font-weight: 700;
}

.news-related-item h5 a {
	color: #111;
	text-decoration: none;
}

/* ---------- Footer ---------- */
.news-footer {
	max-width: 1200px;
	margin: 60px auto 0;
	padding: 30px 20px 40px;
	text-align: center;
	border-top: 1px solid #ddd;
}

.news-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.news-footer-links {
	font-size: 14px;
	margin-bottom: 20px;
}

.news-footer-links a {
	color: #1c4f8c;
	text-decoration: none;
}

.news-footer-links a:hover {
	text-decoration: underline;
}

.news-footer-disclaimer {
	font-size: 12px;
	color: #888;
	max-width: 900px;
	margin: 0 auto 20px;
	line-height: 1.6;
}

.news-footer-copyright {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* ---------- Trang tinh: About Us / Contact Us / Privacy Policy / Terms ---------- */
.news-static-page {
	max-width: 850px;
	margin: 40px auto 60px;
	padding: 0 20px;
}

.news-static-page h1 {
	font-size: 30px;
	line-height: 1.3;
	margin: 0 0 24px;
	text-align: center;
}

.news-static-page h2 {
	font-size: 20px;
	line-height: 1.35;
	margin: 32px 0 14px;
}

.news-static-page p {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	margin: 0 0 16px;
}

.news-static-page ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.news-static-page li {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 8px;
}

.news-static-page .news-updated {
	color: #888;
	font-size: 13px;
	text-align: center;
	margin: -12px 0 24px;
}

.news-contact-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	margin: 0 0 32px;
	text-align: center;
}

.news-contact-info div {
	font-size: 15px;
	color: #333;
}

.news-contact-info strong {
	display: block;
	color: #1c4f8c;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.news-contact-form {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.news-contact-form input,
.news-contact-form textarea {
	width: 100%;
	padding: 12px 16px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #dcdfe4;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s ease;
}

.news-contact-form input:focus,
.news-contact-form textarea:focus {
	border-color: #1c4f8c;
}

.news-contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

.news-contact-form button {
	align-self: center;
	padding: 12px 40px;
	background: #1c4f8c;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.news-contact-form button:hover {
	background: #163f70;
}

.news-form-notice {
	max-width: 560px;
	margin: 0 auto 20px;
	padding: 14px 18px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}

.news-form-notice.success {
	background: #e7f5ec;
	color: #1e7e34;
	border: 1px solid #b7e2c4;
}

.news-form-notice.error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c2bd;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.news-hero,
	.news-article-wrap {
		grid-template-columns: 1fr;
	}
	.news-grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	.news-grid-2 {
		grid-template-columns: 1fr;
	}
	.news-nav-list {
		gap: 16px;
		flex-wrap: wrap;
		justify-content: center;
	}
}
