/**
 * News Grid Widget Styles
 *
 * @package    Alselec_Core
 * @subpackage Alselec_Core/public/css
 * @since      1.0.0
 */

/* Wrapper */
.alselec-news-wrapper {
	width: 100%;
}

/* Header */
.alselec-news-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 40px;
	gap: 30px;
}

.alselec-news-header-left {
	flex: 1;
}

.alselec-news-title {
	font-family: 'Red Hat Text', sans-serif;
	font-size: 48px;
	font-weight: normal;
	line-height: 1.2;
	color: #000000;
	margin: 0 0 10px 0;
}

.alselec-news-description {
	font-family: 'Red Hat Text', sans-serif;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.5;
	color: #333333;
	margin: 0;
}

/* Filters */
.alselec-news-filters {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-shrink: 0;
}

.alselec-news-filter-btn {
	background: transparent;
	background-color: transparent;
	border: 0 solid transparent;
	border-radius: 0;
	padding: 0 0 5px 0;
	font-family: 'Red Hat Text', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	color: #333333;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease;
	text-transform: uppercase;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	transform: none !important;
}

.alselec-news-filter-btn:hover {
	color: #032ca6;
	transform: none !important;
}

.alselec-news-filter-btn:focus,
.alselec-news-filter-btn:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	transform: none !important;
}

.alselec-news-filter-btn.active {
	color: #032ca6;
	transform: none !important;
}

/* Grid */
.alselec-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 30px;
	margin-bottom: 60px;
}

/* Post Item */
.alselec-news-item {
	display: flex;
	flex-direction: column;
}

.alselec-news-item-image {
	margin-bottom: 20px;
	overflow: hidden;
}

.alselec-news-item-image img {
	width: 100%;
	height: 238px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.alselec-news-item:hover .alselec-news-item-image img {
	transform: scale(1.05);
}

.alselec-news-item-content {
	display: flex;
	flex-direction: column;
}

.alselec-news-item-category {
	font-family: 'Red Hat Text', sans-serif;
	font-size: 16px;
	font-weight: normal;
	line-height: 1.38;
	color: #032ca6;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.alselec-news-item-title {
	font-family: 'Red Hat Text', sans-serif;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.4;
	color: #000000;
	margin: 0 0 15px 0;
}

.alselec-news-item-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.alselec-news-item-title a:hover {
	color: #032ca6;
}

.alselec-news-item-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Red Hat Text', sans-serif;
	font-size: 16px;
	font-weight: normal;
	color: #000000;
	text-decoration: none;
	transition: color 0.3s ease;
}

.alselec-news-item-link:hover {
	color: #032ca6;
}

.alselec-news-item-link svg {
	width: 14px;
	height: auto;
	transition: transform 0.3s ease, fill 0.3s ease;
	fill: currentColor;
}

.alselec-news-item-link svg path {
	transition: fill 0.3s ease;
	fill: currentColor;
}

.alselec-news-item-link:hover svg {
	transform: translateX(5px);
}

/* Pagination */
.alselec-news-pagination {
	display: flex;
	justify-content: center;
	margin-bottom: 80px;
}

.alselec-news-pagination-inner {
	display: flex;
	align-items: center;
	gap: 20px;
}

.alselec-news-page-numbers {
	display: flex;
	align-items: center;
	gap: 10px;
}

.alselec-news-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	height: 50px;
	padding: 0;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: 'Red Hat Text', sans-serif;
	font-size: 18px;
	font-weight: normal;
	line-height: 1;
	color: #000000;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.3s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none !important;
}

.alselec-news-page-num:hover {
	color: #0099e6;
	background: transparent !important;
	background-color: transparent !important;
}

.alselec-news-page-num:focus,
.alselec-news-page-num:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.alselec-news-page-num.active {
	color: #032ca6;
	border: 1px solid #032ca6 !important;
	background: transparent !important;
	background-color: transparent !important;
}

.alselec-news-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	height: 50px;
	padding: 0;
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 0 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #000000;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	box-shadow: none !important;
}

.alselec-news-page-btn:hover:not(:disabled) {
	background: #0099e6 !important;
	background-color: #0099e6 !important;
	border-color: #0099e6 !important;
	color: #ffffff;
}

.alselec-news-page-btn:hover:not(:disabled) svg path {
	fill: #ffffff;
}

.alselec-news-page-btn:focus,
.alselec-news-page-btn:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.alselec-news-page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: transparent !important;
}

.alselec-news-page-btn svg {
	width: 7px;
	height: 13px;
}

/* No posts message */
.alselec-news-no-posts {
	grid-column: 1 / -1;
	text-align: center;
	font-family: 'Red Hat Text', sans-serif;
	font-size: 18px;
	color: #666666;
	padding: 40px 0;
}

/* Loading state */
.alselec-news-grid.loading {
	opacity: 0.5;
	pointer-events: none;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
	.alselec-news-header {
		flex-direction: column;
		gap: 20px;
	}

	.alselec-news-filters {
		justify-content: flex-start;
	}

	.alselec-news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive - Mobile */
@media (max-width: 768px) {
	.alselec-news-title {
		font-size: 32px;
	}

	.alselec-news-filters {
		flex-wrap: wrap;
		gap: 15px;
	}

	.alselec-news-filter-btn {
		font-size: 12px;
	}

	.alselec-news-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.alselec-news-item-image img {
		height: 200px;
	}

	.alselec-news-pagination-inner {
		gap: 15px;
	}

	.alselec-news-page-numbers {
		gap: 5px;
	}

	.alselec-news-page-num {
		min-width: 45px;
		height: 45px;
		font-size: 16px;
		border-radius: 0 !important;
	}

	.alselec-news-page-btn {
		min-width: 45px;
		height: 45px;
		border-radius: 0 !important;
	}
}
