/* ── Hide default theme page title ── */
.page-template-tpl-helpful-articles .page-header,
.page-template-tpl-helpful-articles .entry-title,
.page-template-tpl-helpful-articles .site-main > .page-content {
	display: none !important;
}

/* ── Hide post categories ── */
.helpful-articles-page .post-categories,
.helpful-articles-page .cat-links,
.helpful-articles-page .entry-meta {
	display: none !important;
}

/* =====================================================
   HELPFUL ARTICLES PAGE — helpful-articles.css
   Scoped under .helpful-articles-page
   Site accent: #c29c25
   ===================================================== */

/* ── Page top margin (clears fixed header) ── */
.helpful-articles-page {
	margin-top: 100px !important;
}

/* ── Page Title — plain white bg, black text, centered ── */
.helpful-articles-page .ha-page-title-wrap {
	width: 100%;
	padding: 40px 24px 20px;
	text-align: center;
	background: #fff;
}

/* Elementor overrides h1 globally */
.helpful-articles-page .ha-page-title {
	font-size: clamp(28px, 5vw, 52px) !important;
	font-weight: 800 !important;
	color: #1a1a1a !important;
	letter-spacing: 3px !important;
	text-transform: uppercase !important;
	margin: 0 !important;
	text-shadow: none !important;
}

/* ── Page Wrapper ── */
.helpful-articles-page .ha-wrapper {
	max-width: 1160px;
	margin: 0 auto;
	padding: 40px 24px 64px;
}

/* ── Top Section: Featured + Sidebar ── */
.helpful-articles-page .ha-top {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 40px;
	margin-bottom: 56px;
	align-items: start;
}

/* ── Featured Post Card ── */
.helpful-articles-page .ha-featured {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: #111;
	text-decoration: none !important;
}

.helpful-articles-page .ha-featured-img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	transition: transform 0.5s ease;
	opacity: 0.85;
}

.helpful-articles-page .ha-featured:hover .ha-featured-img {
	transform: scale(1.04);
}

.helpful-articles-page .ha-featured-overlay {
	position: relative;
	z-index: 1;
	padding: 28px 28px 24px;
	background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

/* Elementor resets h2 */
.helpful-articles-page .ha-featured-title {
	font-size: clamp(16px, 2vw, 22px) !important;
	font-weight: 800 !important;
	color: #fff !important;
	margin: 0 0 8px !important;
	text-transform: uppercase;
	line-height: 1.3;
	letter-spacing: 0.4px;
}

.helpful-articles-page .ha-featured-date {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: rgba(255,255,255,0.7);
	margin-bottom: 14px;
}

.helpful-articles-page .ha-read-more {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #fff !important;
	text-decoration: none !important;
	letter-spacing: 0.5px;
	border-bottom: 1px solid rgba(255,255,255,0.5);
	padding-bottom: 1px;
	transition: border-color 0.2s, color 0.2s;
}

.helpful-articles-page .ha-featured:hover .ha-read-more {
	border-color: #c29c25;
	color: #c29c25 !important;
}

/* ── Recent Articles Sidebar ── */
.helpful-articles-page .ha-recent {
	display: flex;
	flex-direction: column;
}

/* Elementor resets h3 */
.helpful-articles-page .ha-recent-title {
	font-size: 14px !important;
	font-weight: 800 !important;
	color: #1a1a1a !important;
	margin: 0 0 20px !important;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding-bottom: 12px;
	border-bottom: 3px solid #c29c25;
}

.helpful-articles-page .ha-recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.helpful-articles-page .ha-recent-list li {
	border-bottom: 1px solid #efefef;
}

.helpful-articles-page .ha-recent-list li:last-child {
	border-bottom: none;
}

.helpful-articles-page .ha-recent-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 14px 0;
	text-decoration: none !important;
	transition: opacity 0.2s;
}

.helpful-articles-page .ha-recent-item:hover {
	opacity: 0.8;
}

.helpful-articles-page .ha-recent-thumb {
	flex-shrink: 0;
	width: 76px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	background: #e0dbd0;
}

.helpful-articles-page .ha-recent-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
}

.helpful-articles-page .ha-recent-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e2d0, #d4c99a);
}

.helpful-articles-page .ha-recent-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.helpful-articles-page .ha-recent-post-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.helpful-articles-page .ha-recent-date {
	font-size: 11.5px;
	color: #c29c25;
	font-weight: 500;
}

/* ── Articles Grid ── */

/* Elementor resets h3 */
.helpful-articles-page .ha-grid-title {
	font-size: 13px !important;
	font-weight: 800 !important;
	color: #1a1a1a !important;
	margin: 0 0 24px !important;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	padding-bottom: 12px;
	border-bottom: 3px solid #c29c25;
}

.helpful-articles-page .ha-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}

.helpful-articles-page .ha-card {
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #efefef;
	text-decoration: none !important;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s, transform 0.25s;
}

.helpful-articles-page .ha-card:hover {
	box-shadow: 0 8px 28px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.helpful-articles-page .ha-card-thumb {
	width: 100%;
	height: 190px;
	overflow: hidden;
	background: #e0dbd0;
	flex-shrink: 0;
}

.helpful-articles-page .ha-card-thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	transition: transform 0.4s ease;
}

.helpful-articles-page .ha-card:hover .ha-card-thumb img {
	transform: scale(1.05);
}

.helpful-articles-page .ha-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8e2d0, #d4c99a);
}

.helpful-articles-page .ha-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

/* Elementor resets h4 */
.helpful-articles-page .ha-card-title {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin: 0 !important;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.helpful-articles-page .ha-card-date {
	font-size: 12px;
	color: #aaa;
}

.helpful-articles-page .ha-card-read-more {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #c29c25 !important;
	text-decoration: none !important;
	letter-spacing: 0.4px;
	margin-top: 4px;
	transition: opacity 0.2s;
}

.helpful-articles-page .ha-card:hover .ha-card-read-more {
	opacity: 0.75;
}

/* ── Pagination ── */
.helpful-articles-page .ha-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.helpful-articles-page .ha-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	color: #333 !important;
	text-decoration: none !important;
	background: #fff;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.helpful-articles-page .ha-pagination .page-numbers:hover,
.helpful-articles-page .ha-pagination .page-numbers.current {
	background: #c29c25;
	color: #fff !important;
	border-color: #c29c25;
}

.helpful-articles-page .ha-pagination .page-numbers.dots {
	border: none;
	background: transparent;
	color: #aaa;
	cursor: default;
}

/* ── Responsive ── */
@media (max-width: 960px) {
	.helpful-articles-page .ha-top {
		grid-template-columns: 1fr;
	}

	.helpful-articles-page .ha-featured {
		min-height: 340px;
	}

	.helpful-articles-page .ha-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.helpful-articles-page {
		margin-top: 70px !important;
	}

	.helpful-articles-page .ha-page-title-wrap {
		padding: 28px 16px 16px;
	}

	.helpful-articles-page .ha-wrapper {
		padding: 24px 16px 48px;
	}

	.helpful-articles-page .ha-grid {
		grid-template-columns: 1fr;
	}

	.helpful-articles-page .ha-featured {
		min-height: 280px;
	}
}