/** @format */

.real-estate-news-hero {
	position: relative;
	width: 100%;
	min-height: 400px;
	background: url("../image/banner_img/brand1.jpg") center center/cover
		no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0 40px 0;
	box-sizing: border-box;
	padding-top: 5%;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		90deg,
		rgba(44, 62, 80, 0.7) 0%,
		rgba(123, 97, 255, 0.6) 100%
	);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	color: #fff;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: 3rem;
	font-weight: 500;
	margin-bottom: 10px;
	letter-spacing: 1px;
}

.hero-subtitle {
	font-size: 1.7rem;
	font-weight: 500;
	margin-bottom: 18px;
}

.hero-desc {
	font-size: 1.1rem;
	margin-bottom: 28px;
	color: #f3f3f3;
}

.hero-search {
	margin-bottom: 32px;
}

.hero-search-input {
	width: 100%;
	max-width: 400px;
	padding: 14px 20px;
	border-radius: 8px;
	border: none;
	font-size: 1rem;
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-top: 18px;
}

.hero-stat-item {
	background: rgba(123, 97, 255, 0.18);
	border-radius: 16px;
	padding: 18px 36px 12px 36px;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(2px);
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 4px;
	color: #fff;
}

.stat-label {
	font-size: 1rem;
	color: #e0e0e0;
}

@media (max-width: 767px) {
	.real-estate-news-hero {
		padding: 30px 0 20px 0;
		min-height: 320px;
		margin-top: 70px;
	}

	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1.1rem;
	}

	.hero-stats {
		/* flex-direction: column; */
		gap: 16px;
		margin-left: 3%;
		margin-right: 3%;
	}

	.hero-stat-item {
		min-width: 0;
		width: 100%;
		padding: 14px 0 10px 0;
	}

	.hero-search-input {
		max-width: 82%;
	}
}

/* News Filter Bar */
.news-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8f8f8;
	padding: 10px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-options {
	display: flex;
	gap: 10px;
}

.filter-btn {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	padding: 8px 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: background-color 0.3s ease, border-color 0.3s ease,
		color 0.3s ease;
}

.filter-btn.active {
	background: #ed1c24;
	border-color: #ed1c24;
	color: #fff;
}

.filter-btn:hover {
	background: #f0f0f0;
	border-color: #bbb;
}

.icon {
	margin-right: 6px;
	font-size: 14px;
}

.filter-popup {
	display: none;
	position: absolute;
	top: 100%;
	left: 50px;
	/* Adjust based on filter-btn position */
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	padding: 10px;
	z-index: 1000;
	min-width: 200px;
}

.filter-popup.active {
	display: block;
}

.filter-group {
	max-height: 200px;
	overflow-y: auto;
}

.filter-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.filter-item input {
	margin-right: 8px;
}

.filter-item:hover {
	background: #f5f5f5;
}

.filter-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.filter-apply-btn,
.filter-clear-btn {
	background: none;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 5px 15px;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-apply-btn {
	background: #ed1c24;
	color: #fff;
	border-color: #ed1c24;
}

.filter-apply-btn:hover {
	background: #d81b22;
}

.filter-clear-btn {
	color: #333;
}

.filter-clear-btn:hover {
	background: #f0f0f0;
}

.view-controls {
	display: flex;
	gap: 5px;
}

.view-btn {
	font-size: 18px;
	color: #666;
	padding: 6px;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.view-btn.active {
	background: #ed1c24;
	color: #fff;
}

.view-btn:hover {
	background: #f0f0f0;
	color: #ed1c24;
}

/* News Main Content */
.news-main-content {
	display: flex;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 0 20px;
}

.news-list-section {
	flex: 1 1 65%;
	min-width: 0;
	padding: 0 15px;
}

/* Sidebar wrapper */
.news-main-content > div:last-child {
	flex: 0 0 300px;
	max-width: 300px;
}

.news-section-title {
	font-size: 26px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	padding-left: 16px;
}

.news-section-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 28px;
	background: linear-gradient(180deg, #ed1c24 0%, #ff6b6b 100%);
	border-radius: 2px;
}

.news-section-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, #e0e0e0 0%, transparent 100%);
	margin-left: 16px;
}

.news-card-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Featured section - only 2 cards */
#featured-news-container {
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
}

#featured-news-container .news-card {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#featured-news-container .news-card-img {
	aspect-ratio: 16/10;
}

#featured-news-container .news-card-title {
	font-size: 19px;
}

#featured-news-container .news-card-content {
	padding: 20px 22px 22px;
}

.news-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: 1px solid #f0f0f0;
}

.news-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	border-color: #ed1c24;
}

.news-card-image-wrapper {
	position: relative;
	overflow: hidden;
}

.news-card-img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.news-card:hover .news-card-img {
	transform: scale(1.08);
}

/* Video card styles */
.news-card-video {
	background: #000;
}

.news-video-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	pointer-events: none;
}

.news-video-indicator i {
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease, color 0.3s ease;
}

.news-card:hover .news-video-indicator i {
	transform: scale(1.15);
	color: #ed1c24;
}

.news-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #ed1c24;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(237, 28, 36, 0.3);
}

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

.news-card-title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 10px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.news-card:hover .news-card-title {
	color: #ed1c24;
}

.news-card-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-card-meta {
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #999;
	margin-bottom: 14px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.news-card-meta i {
	margin-right: 6px;
	color: #ed1c24;
}

.news-card-btn {
	background: linear-gradient(135deg, #ed1c24 0%, #ff4757 100%);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 25px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(237, 28, 36, 0.25);
}

.news-card-btn:hover {
	background: linear-gradient(135deg, #d81b22 0%, #ed1c24 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(237, 28, 36, 0.35);
}

.news-card-btn i {
	margin-left: 6px;
	transition: transform 0.2s ease;
}

.news-card-btn:hover i {
	transform: translateX(3px);
}

/* List View for News Cards */
.news-card-list.list-view {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.news-card-list.list-view .news-card {
	display: flex;
	flex-direction: row;
	max-height: 200px;
}

.news-card-list.list-view .news-card-image-wrapper {
	flex: 0 0 280px;
	max-width: 280px;
}

.news-card-list.list-view .news-card-img {
	height: 100%;
	aspect-ratio: auto;
	min-height: 200px;
	object-fit: cover;
}

.news-card-list.list-view .news-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px 24px;
}

.news-card-list.list-view .news-card-title {
	font-size: 18px;
	-webkit-line-clamp: 2;
}

.news-card-list.list-view .news-card-desc {
	-webkit-line-clamp: 3;
	margin-bottom: 12px;
}

.news-card-list.list-view .news-card-meta {
	margin-bottom: 10px;
	padding-top: 10px;
}

/* No news message */
.no-news-message {
	text-align: center;
	padding: 40px 20px;
	color: #666;
	font-size: 16px;
	background: #f9f9f9;
	border-radius: 12px;
	grid-column: 1 / -1;
}

/* List view responsive */
@media (max-width: 768px) {
	.news-card-list.list-view .news-card {
		flex-direction: column;
		max-height: none;
	}

	.news-card-list.list-view .news-card-image-wrapper {
		flex: none;
		max-width: 100%;
	}

	.news-card-list.list-view .news-card-img {
		min-height: 180px;
		aspect-ratio: 16/9;
	}
}

/* News Sidebar Section */
.news-sidebar-section {
	display: flex;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
}

.news-sidebar,
.category-box {
	flex: 1;
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.news-sidebar-title,
.category-title {
	font-size: 18px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

.news-sidebar-title i,
.category-title i {
	margin-right: 6px;
}

.news-sidebar-list {
	list-style: none;
	padding: 0;
}

.news-sidebar-item {
	margin-bottom: 12px;
}

.news-sidebar-link {
	font-size: 14px;
	font-weight: 500;
	color: #333;
	text-decoration: none;
	line-height: 1.3;
	display: block;
	transition: color 0.3s ease;
}

.news-sidebar-link:hover {
	color: #ed1c24;
}

.news-sidebar-meta {
	display: flex;
	gap: 10px;
	font-size: 11px;
	color: #888;
	margin-top: 4px;
}

.news-sidebar-meta i {
	margin-right: 3px;
}

.category-list {
	list-style: none;
	padding: 0;
}

.category-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.category-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
}

.category-dot.market {
	background: #ed1c24;
}

.category-dot.new {
	background: #3b82f6;
}

.category-dot.policy {
	background: #f59e42;
}

.category-dot.analysis {
	background: #10b981;
}

.category-dot.invest {
	background: #2563eb;
}

.category-dot.fengshui {
	background: #a855f7;
}

.category-badge {
	background: #f1f1f1;
	color: #333;
	font-size: 11px;
	font-weight: 500;
	padding: 4px 8px;
	border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.news-filter-bar {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px;
		gap: 10px;
	}

	.filter-options {
		width: 100%;
	}

	.filter-btn {
		width: 100%;
		text-align: left;
		padding: 8px;
	}

	.filter-popup {
		left: 0;
		width: 100%;
		margin-top: 5px;
	}

	.news-main-content,
	.news-sidebar-section {
		flex-direction: column;
	}

	.news-main-content > div:last-child {
		flex: 1 1 auto;
		max-width: 100%;
	}

	.news-card-list,
	#featured-news-container {
		grid-template-columns: 1fr;
	}

	.news-sidebar,
	.category-box {
		margin-top: 20px;
	}
}

/* Tablet breakpoint */
@media (min-width: 769px) and (max-width: 1024px) {
	.news-card-list {
		grid-template-columns: repeat(2, 1fr);
	}

	#featured-news-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

.news-filter-bar button.active {
	background: #ed1c24;
	color: #fff;
	border-radius: 15px;
}

.news-filter-bar button {
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 5px;
}

.news-filter-bar .fa-th-large,
.news-filter-bar .fa-th-list {
	font-size: 20px;
	color: #333;
	cursor: pointer;
	margin-left: 10px;
	transition: color 0.3s ease;
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: var(--fa-display, inline-block);
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
}

.news-filter-bar button {
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	padding: 10px 20px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 15px;
}

/* Sidebar spacing */
.news-sidebar + .category-box {
	margin-top: 10px;
}

/* Style for the centered button container */

/* Style for the centered button container */
.news-card-button-container {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 20px;
	margin-bottom: 20px;
}

.news-card-center-btn {
	background-color: #ed1c24c7;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
}

.news-card-center-btn:hover {
	background-color: #be1e24c7;
}

/* 7/8/2025 */
.news-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8f8f8;
	padding: 6px 12px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s ease;
	min-height: 40px;
}

.news-filter-bar.dark {
	background: #1a1a1a;
	color: #fff;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.news-filter-bar button {
	background: #ed1c24;
	border: none;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	padding: 6px 12px;
	cursor: pointer;
	border-radius: 12px;
	transition: background-color 0.3s ease, color 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
}

.news-filter-bar.dark button {
	background: #a855f7;
	color: #fff;
}

/* .news-filter-bar button:hover {
    background: #d81b22;
} */

.news-filter-bar.dark button:hover {
	background: #9333ea;
}

.news-filter-bar .filter-btn {
	background: none;
	color: #333;
	padding: 6px 12px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	gap: 6px;
	height: 32px;
}

.news-filter-bar.dark .filter-btn {
	color: #fff;
}

.news-filter-bar .fa-th-large,
.news-filter-bar .fa-th-list {
	font-size: 18px;
	color: #333;
	cursor: pointer;
	margin-left: 8px;
	transition: color 0.3s ease;
}

.news-filter-bar.dark .fa-th-large,
.news-filter-bar.dark .fa-th-list {
	color: #fff;
}

.view-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

@media (max-width: 768px) {
	.news-filter-bar {
		flex-direction: column;
		align-items: stretch;
		padding: 8px;
		gap: 8px;
		min-height: auto;
	}

	.filter-group,
	.view-controls {
		width: 100%;
		/* justify-content: center; */
	}

	.news-filter-bar button,
	.news-filter-bar .filter-btn {
		font-size: 13px;
		padding: 6px 10px;
		width: 100%;
		text-align: center;
		border-radius: 10px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
		height: 30px;
	}

	.news-filter-bar button {
		background: linear-gradient(90deg, #ed1c24, #ff4d4d);
	}

	.news-filter-bar.dark button {
		background: linear-gradient(90deg, #a855f7, #bf7cf1);
	}

	.news-filter-bar button:hover,
	.news-filter-bar.dark button:hover {
		opacity: 0.9;
	}

	.news-filter-bar .filter-btn {
		background: #fff;
		color: #333;
		border: 1px solid #ddd;
	}

	.news-filter-bar.dark .filter-btn {
		background: #2d2d2d;
		color: #fff;
		border-color: #444;
	}

	.news-filter-bar .fa-th-large,
	.news-filter-bar .fa-th-list {
		font-size: 16px;
		margin-left: 0;
		margin-top: 6px;
	}
}

/* Category Filter Dropdown */
.category-filter-wrapper {
	display: flex;
	align-items: center;
}

.category-filter-select {
	height: 36px;
	padding: 6px 32px 6px 12px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #fff;
	color: #333;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	min-width: 180px;
	transition: all 0.2s ease;
}

.category-filter-select:hover {
	border-color: #e67e22;
}

.category-filter-select:focus {
	outline: none;
	border-color: #e67e22;
	box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.news-filter-bar.dark .category-filter-select {
	background-color: #2d2d2d;
	color: #fff;
	border-color: #444;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

@media (max-width: 768px) {
	.category-filter-wrapper {
		width: 100%;
	}

	.category-filter-select {
		width: 100%;
		min-width: auto;
	}
}

/* View Controls Active State */
.view-controls i {
	cursor: pointer;
	padding: 6px 8px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.view-controls i:hover {
	background-color: rgba(230, 126, 34, 0.1);
	color: #e67e22;
}

.view-controls i.active {
	background-color: #e67e22;
	color: #fff;
}

/* Activities List View Mode */
.activities-grid.list-view {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.activities-grid.list-view > .col-md-6,
.activities-grid.list-view > .col-lg-4 {
	width: 100%;
	max-width: 100%;
	flex: 0 0 100%;
}

.activities-grid.list-view .activities-card {
	flex-direction: row;
	align-items: stretch;
}

.activities-grid.list-view .activities-card .position-relative {
	width: 280px;
	min-width: 280px;
	flex-shrink: 0;
}

.activities-grid.list-view .activities-card .card-img-top {
	height: 100%;
	min-height: 180px;
	object-fit: cover;
	border-radius: 12px 0 0 12px;
}

.activities-grid.list-view .activities-card .card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 1.5rem;
}

.activities-grid.list-view .activities-card .card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.activities-grid.list-view .activities-card .card-text {
	font-size: 0.95rem;
	-webkit-line-clamp: 3;
}

@media (max-width: 768px) {
	.activities-grid.list-view .activities-card {
		flex-direction: column;
	}

	.activities-grid.list-view .activities-card .position-relative {
		width: 100%;
		min-width: auto;
	}

	.activities-grid.list-view .activities-card .card-img-top {
		border-radius: 12px 12px 0 0;
		min-height: 200px;
	}
}
