/**
 * Homepower: News Page Stylesheet
 *
 * Premium custom styles for the News page elements.
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hp-news-hero-section {
	background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, rgba(230, 244, 255, 0.5) 100%) !important;
	border-bottom: 1px solid #f1f5f9;
}

.hp-news-label {
	display: inline-block;
	color: #0ea5e9;
	font-size: 0.875rem;
	font-weight: 900;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.hp-news-hero-title {
	color: #0f172a;
	font-weight: 900;
	font-size: 2.25rem;
	line-height: 1.25;
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

@media (min-width: 768px) {
	.hp-news-hero-title {
		font-size: 2.75rem;
	}
}

.hp-news-hero-desc {
	color: #64748b;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.625;
	max-width: 600px;
}

@keyframes hpNewsFloat {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

.hp-news-float {
	animation: hpNewsFloat 4s ease-in-out infinite;
	filter: drop-shadow(0 10px 15px rgba(14, 165, 233, 0.15));
}

/* ==========================================================================
   2. MAIN SECTION & TITLE
   ========================================================================== */
.hp-news-section-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.hp-news-header-bar {
	width: 6px;
	height: 24px;
	background-color: #0ea5e9;
	border-radius: 9999px;
}

.hp-news-section-header h2 {
	font-size: 1.25rem;
	font-weight: 900;
	color: #1e293b;
	letter-spacing: -0.01em;
	margin: 0;
	text-transform: uppercase;
}

/* ==========================================================================
   3. NEWS LIST & CARDS
   ========================================================================== */
.hp-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

@media (min-width: 640px) {
	.hp-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.hp-news-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hp-news-card {
	background-color: #ffffff;
	border: 1px solid rgba(241, 245, 249, 0.9);
	border-radius: 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
	border-color: rgba(226, 232, 240, 0.8);
}

.hp-news-card-thumb-link {
	aspect-ratio: 16 / 9;
	background-color: #f8fafc;
	overflow: hidden;
	display: block;
	position: relative;
}

.hp-news-card-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-news-card:hover .hp-news-card-thumb-img {
	transform: scale(1.05);
}

.hp-news-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e2e8f0;
	color: #94a3b8;
}

.hp-news-card-thumb-placeholder .placeholder-icon {
	width: 2.5rem;
	height: 2.5rem;
}

.hp-news-card-body {
	padding: 1.25rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hp-news-card-meta {
	display: flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.hp-news-card-date {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: #0284c7;
	font-size: 0.75rem;
	font-weight: 700;
}

.hp-news-card-date .date-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.hp-news-card-title {
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1.4;
	margin-bottom: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hp-news-card-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hp-news-card-title a:hover {
	color: #0ea5e9;
}

.hp-news-card-excerpt {
	color: #64748b;
	font-size: 0.825rem;
	font-weight: 600;
	line-height: 1.6;
	margin-bottom: 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hp-news-card-footer {
	padding-top: 0.75rem;
	border-top: 1px solid #f8fafc;
	margin-top: auto;
}

.hp-news-card-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.8rem;
	font-weight: 800;
	color: #0ea5e9;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hp-news-card-more-btn:hover {
	color: #0284c7;
}

.hp-news-card-more-btn .more-icon {
	width: 0.875rem;
	height: 0.875rem;
	transition: transform 0.2s ease;
}

.hp-news-card:hover .hp-news-card-more-btn .more-icon {
	transform: translateX(4px);
}

/* ==========================================================================
   4. PAGINATION
   ========================================================================== */
.hp-news-pagination-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.hp-pagination {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.hp-pagination .page-numbers {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.5rem !important;
	height: 2.5rem !important;
	border-radius: 9999px !important; /* Circular buttons */
	font-family: 'Inter', sans-serif !important;
	font-weight: 900 !important;
	font-size: 0.875rem !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
	background-color: #f8fafc !important;
	border: 1px solid #f1f5f9 !important;
	color: #475569 !important;
	text-decoration: none !important;
}

.hp-pagination .page-numbers:hover {
	background-color: #e2e8f0 !important;
	color: #0ea5e9 !important;
	border-color: #e2e8f0 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15) !important;
}

.hp-pagination .page-numbers.current {
	background-color: #0ea5e9 !important;
	border-color: #0ea5e9 !important;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2) !important;
}

.hp-pagination .page-numbers.dots {
	background-color: transparent;
	border-color: transparent;
	color: #94a3b8;
}

.hp-pagination .page-numbers.prev,
.hp-pagination .page-numbers.next {
	background-color: #f8fafc;
	border-color: #f1f5f9;
}

.hp-pagination .page-numbers .pagination-arrow {
	width: 0.9rem;
	height: 0.9rem;
}

/* ==========================================================================
   5. SIDEBAR WIDGETS
   ========================================================================== */
.hp-news-sidebar-col {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hp-news-widget {
	background-color: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 1.5rem;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.hp-news-widget-title {
	font-size: 0.875rem;
	font-weight: 900;
	color: #1e293b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-bottom: 1px solid #f8fafc;
	padding-bottom: 0.75rem;
	margin-top: 0;
	margin-bottom: 1.25rem;
}

.hp-news-widget-title .widget-title-icon {
	width: 1rem;
	height: 1rem;
	color: #0284c7;
}

/* Categories List */
.hp-news-cat-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hp-news-cat-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.875rem;
	font-weight: 700;
}

.hp-news-cat-link {
	color: #64748b;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hp-news-cat-link:hover {
	color: #0ea5e9;
	transform: translateX(2px);
}

.hp-news-cat-count {
	font-size: 0.75rem;
	color: #64748b;
	background-color: #f8fafc;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	border: 1px solid #f1f5f9;
}

/* Featured Posts Rank */
.hp-news-feat-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hp-news-feat-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.hp-news-feat-rank {
	font-size: 1rem;
	font-weight: 900;
	color: #0ea5e9;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.hp-news-feat-item-title {
	font-size: 0.825rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.hp-news-feat-item-title a {
	color: #334155;
	text-decoration: none;
	transition: color 0.2s ease;
}

.hp-news-feat-item-title a:hover {
	color: #0ea5e9;
}

/* Tag Cloud */
.hp-news-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.hp-news-tag-link {
	font-size: 0.7rem;
	font-weight: 700;
	color: #475569;
	background-color: #f8fafc;
	border: 1px solid rgba(241, 245, 249, 0.8);
	padding: 0.375rem 0.75rem;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hp-news-tag-link:hover {
	background-color: #0ea5e9;
	color: #ffffff;
	border-color: #0ea5e9;
}

/* Sidebar Promo Ad Banner */
.hp-news-ad-card {
	position: relative;
	overflow: hidden;
	border-radius: 1.5rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
	color: #ffffff;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hp-news-ad-bg-blur {
	position: absolute;
	right: -2rem;
	bottom: -2rem;
	width: 9rem;
	height: 9rem;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 9999px;
	filter: blur(24px);
	transition: transform 0.5s ease;
	pointer-events: none;
}

.hp-news-ad-card:hover .hp-news-ad-bg-blur {
	transform: scale(1.1);
}

.hp-news-ad-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.hp-news-ad-tag {
	font-size: 0.625rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	background-color: rgba(255, 255, 255, 0.25);
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
}

.hp-news-ad-title {
	font-size: 1rem;
	font-weight: 900;
	text-transform: uppercase;
	line-height: 1.3;
	margin: 0;
	letter-spacing: 0.02em;
	color: #ffffff !important;
}

.hp-news-ad-img-box {
	width: 100%;
	height: 6rem;
	overflow: hidden;
	border-radius: 0.75rem;
	background-color: rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
}

.hp-news-ad-img {
	height: 100%;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
	transition: transform 0.5s ease;
}

.hp-news-ad-card:hover .hp-news-ad-img {
	transform: scale(1.05);
}

.hp-news-ad-btn {
	display: block !important;
	width: 100% !important;
	padding: 0.625rem !important;
	background-color: #ffffff !important;
	color: #0ea5e9 !important;
	font-family: 'Inter', sans-serif !important;
	font-weight: 900 !important;
	font-size: 0.8rem !important;
	text-align: center !important;
	border-radius: 9999px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
	text-decoration: none !important;
}

.hp-news-ad-btn:hover {
	background-color: #f0fdf4 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.hp-news-ad-btn:active {
	transform: translateY(-2px) scale(0.98) !important;
}

/* Empty fallbacks */
.hp-news-empty-fallback {
	text-align: center;
	padding: 4rem 1.5rem;
	background-color: #f8fafc;
	border: 2px dashed #e2e8f0;
	border-radius: 1.25rem;
}

.hp-news-empty-fallback .empty-icon {
	width: 3rem;
	height: 3rem;
	color: #94a3b8;
	margin: 0 auto 0.75rem;
}

.hp-news-empty-fallback .empty-title {
	font-size: 1rem;
	font-weight: 900;
	color: #475569;
	margin-top: 0;
	margin-bottom: 0.25rem;
}

.hp-news-empty-fallback .empty-desc {
	font-size: 0.825rem;
	color: #94a3b8;
	font-weight: 600;
	margin: 0;
}
