/**
 * News Listing Widget Styles
 *
 * @package RSGT_Elementor_Addons
 * @since 1.8.0
 */

 .rsgt-news-listing {
	width: 100%;
	max-width: 100%;
	position: relative;
	z-index: 1;
}

/* Filters Section - Top Bar */
.rsgt-news-filters {
	background: transparent;
	margin-bottom: 32px;
	padding: 0;
	border-radius: 0;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 100;
	isolation: isolate;
}

.rsgt-filters-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	width: 100%;
}

.rsgt-filters-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	flex: 1;
}

.rsgt-filters-right {
	display: flex;
	align-items: center;
	gap: 27px;
	position: relative;
	z-index: 1000;
}

/* Filter Label */
.rsgt-filter-label {
	font-size: 20px;
	margin-right: 24px;
}

/* Active Filter Chips */
.rsgt-active-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rsgt-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #172136;
	color: #fff;
	border-radius: 8px;
	font-size: 16px;
	border: 1px solid #233446;
	line-height: 1.4;
	min-width: auto;
	min-height: 56px;
	height: auto;
	width: auto;
}

.rsgt-filter-chip-remove {
	background: none !important;
	border: none !important;
	color: #fff !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	transition: all 0.2s;
	font-weight: 400 !important;
	border-radius: 0 !important;
}

.rsgt-filter-chip-remove:hover svg path {
	fill: #91DCD5 !important;
}

.rsgt-filter-chip-remove:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Reset Button */
.rsgt-reset-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	color: #91DCD5 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	cursor: pointer !important;
	transition: color 0.2s !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	min-width: auto !important;
	min-height: auto !important;
	height: auto !important;
	width: auto !important;
}

.rsgt-reset-btn:hover {
	background: none !important;
	border: none !important;
	text-decoration: underline !important;
}

.rsgt-reset-btn:focus {
	outline: none !important;
	box-shadow: none !important;
}

.rsgt-reset-btn svg {
	width: 18px;
	height: 20px;
	flex-shrink: 0;
}

/* Filter Toggle Button */
.rsgt-filter-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 16px !important;
	background: #172136 !important;
	border: 1px solid #233446 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	line-height: 1.4 !important;
	min-width: auto !important;
	min-height: 56px !important;
	height: auto !important;
	width: auto !important;
	position: relative !important;
	z-index: 1 !important;
}

.rsgt-filter-btn:hover {
	background: rgba(255, 255, 255, 0.30) !important;
	border-color: rgba(255, 255, 255, 0.10) !important;
	color: #fff !important;
	transform: none !important;
}

.rsgt-filter-btn:focus {
	outline: none !important;
}

.rsgt-filter-btn svg {
	width: 17px !important;
	height: 16px !important;
	flex-shrink: 0 !important;
}

/* Filter Modal - Floating Dropdown Below Button */
.rsgt-filter-modal {
	position: absolute;
	top: calc(100% + 11px);
	right: 0;
	margin-top: 0;
	width: 349px !important;
	height: auto !important;
	max-height: 500px !important;
	background: #172136CC !important;
	border: 1px solid #233446 !important;
	border-radius: 8px !important;
	z-index: 10001 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transform: translateY(-11px) !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	padding: 0 !important;
	pointer-events: none !important;
	backdrop-filter: blur(18.399999618530273px) ! important;
	-webkit-backdrop-filter: blur(18.399999618530273px) ! important
}
html[dir="rtl"] .rsgt-filter-modal {
	left: 0;
	right: auto;
}

.rsgt-filter-modal.open {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	pointer-events: auto !important;
}

.rsgt-filter-modal-overlay {
	display: none !important;
}

.rsgt-filter-modal-header {
	padding: 16px 16px 12px !important;
	border-bottom: none !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	flex-shrink: 0 !important;
}

.rsgt-filter-modal-title {
	display: none;
}

.rsgt-filter-modal-close {
	background: none !important;
	border: none !important;
	font-size: 18px !important;
	color: rgba(255, 255, 255, 0.6) !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 20px !important;
	height: 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 0 !important;
	transition: all 0.2s !important;
	box-shadow: none !important;
	margin-left: auto;
}

.rsgt-filter-modal-close:hover {
	background: none !important;
	color: #fff !important;
}

.rsgt-filter-modal-body {
	padding: 0 16px 12px !important;
	overflow-y: auto !important;
	flex: 1 !important;
}

.rsgt-filter-group {
	margin-bottom: 12px !important;
}

.rsgt-filter-group:last-child {
	margin-bottom: 0 !important;
}

.rsgt-filter-group-title {
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	margin-bottom: 12px !important;
	display: block;
}

/* Year Grid - Dark Rectangular Buttons */
.rsgt-year-grid {
	display: flex !important;
	gap: 8px !important;
	flex-wrap: wrap !important;
}
html[dir="rtl"] .rsgt-year-grid{flex-direction: row-reverse;}
.rsgt-year-btn {
	padding: 0 !important;
	background: transparent !important;
	border: 1px solid #FFFFFF1A !important;
	border-radius: 0 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #fff !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	text-align: center !important;
	height: 38px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	line-height: 1 !important;
	width: calc(25% - 6px) !important;
}

.rsgt-year-btn:hover,
.rsgt-year-btn.active {
	background: #FFFFFF4D !important;
	color: #fff !important;
	border: 1px solid #FFFFFF1A !important;
}

/* Category Checkboxes - Dark Style */
.rsgt-category-list {
	display: flex !important;
	flex-direction: column !important;
	gap: 4px !important;
	width: 100% !important;
	min-height: auto !important;
	opacity: 1 !important;
}

.rsgt-category-item {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 8px !important;
	background: transparent !important;
	border: 1px solid #FFFFFF1A !important;
	border-radius: 0 !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #fff !important;
	cursor: pointer !important;
	transition: all 0.2s !important;
	min-height: 38px !important;
	box-shadow: none !important;
	text-shadow: none !important;
	flex-shrink: 0 !important;
}

.rsgt-category-item:hover,
.rsgt-category-item.active {
	background: #FFFFFF4D !important;
	color: #fff !important;
	border: 1px solid #FFFFFF1A !important;
}


.rsgt-category-item-left {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	flex: 1 !important;
	min-width: 0 !important;
}

.rsgt-category-name {
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}


.rsgt-category-count {
	min-width: 18px !important;
	text-align: right !important;
	padding-left: 8px !important;
	font-weight: 700 !important;
}

/* Modal Footer with Apply Button */
.rsgt-filter-modal-footer {
	padding: 0 16px 16px !important;
	border-top: none !important;
	flex-shrink: 0 !important;
}

.rsgt-apply-filters {
	border: 0;
	width: 100%;
	padding: 15px 30px 15px 30px !important;
}

/* News Grid */
.rsgt-news-grid {
	/* display: grid; */
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	position: relative;
	z-index: 1;
	transition: opacity 0.3s ease;
	grid-auto-rows: auto;
}

/* Skeleton Loading */
.rsgt-skeleton-card {
	background: #1a2332 !important;
	border-radius: 16px !important;
	border: 2px solid rgba(255, 255, 255, 0.1) !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 1;
	padding: 0;
	position: relative;
	animation: fadeIn 0.3s ease;
	min-height: 300px;
	flex-shrink: 0;
}

/* Grid-specific skeleton widths */
.rsgt-news-grid-2 .rsgt-skeleton-card {
	width: calc(50% - 17px);
}

.rsgt-news-grid-3 .rsgt-skeleton-card {
	width: calc(33.3333% - 23px);
}

.rsgt-news-grid-4 .rsgt-skeleton-card {
	width: calc(25% - 26px);
}

.rsgt-skeleton-image {
	width: 100%;
	height: 228px;
	background: #0d1420;
	padding: 8.96px;
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
	position: relative;
	overflow: hidden;
}

.rsgt-skeleton-image::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
			transparent 0%,
			rgba(255, 255, 255, 0.05) 50%,
			transparent 100%);
	animation: shimmer 2s infinite;
}

.rsgt-skeleton-content {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 8.96px;
	flex: 1;
}

.rsgt-skeleton-date {
	width: 104px;
	height: 23px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.rsgt-skeleton-date::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
			transparent 0%,
			rgba(255, 255, 255, 0.08) 50%,
			transparent 100%);
	animation: shimmer 2s infinite 0.2s;
}

.rsgt-skeleton-title {
	width: 100%;
	height: 26px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	margin-bottom: 4px;
	position: relative;
	overflow: hidden;
}

.rsgt-skeleton-title::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
			transparent 0%,
			rgba(255, 255, 255, 0.08) 50%,
			transparent 100%);
	animation: shimmer 2s infinite 0.4s;
}

.rsgt-skeleton-title-short {
	width: 70%;
	height: 26px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	position: relative;
	overflow: hidden;
}

.rsgt-skeleton-title-short::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg,
			transparent 0%,
			rgba(255, 255, 255, 0.08) 50%,
			transparent 100%);
	animation: shimmer 2s infinite 0.6s;
}



.rsgt-news-grid-2 .rsgt-news-card {
	width: calc(50% - 17px);
}

.rsgt-news-grid-3 .rsgt-news-card {
	width: calc(33.3333% - 23px);
}

.rsgt-news-grid-4 .rsgt-news-card {
	width: calc(25% - 26px);
}

/* News Card - Compact Design */
.rsgt-news-card {
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #91DCD51A;
	backdrop-filter: blur(7px);
}

.rsgt-news-card::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	/* border thickness */
	border-radius: 16px;
	background: linear-gradient(112.71deg,
			rgba(145, 220, 213, 0.35) 0%,
			rgba(145, 220, 213, 0.15) 30%,
			rgba(255, 255, 255, 0) 70%);

	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.rsgt-news-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	padding: 24px;
}

.rsgt-news-image {
	position: relative;
	width: 100%;
	height: 0;
	overflow: hidden;
	padding-bottom: 68.2634%;
	margin-bottom: 24px;
	border-radius: 8px 8px 0 0;
}

.rsgt-news-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
}

.rsgt-news-card:hover .rsgt-news-image img {
	transform: scale(1.05);
}

.rsgt-news-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.rsgt-news-date {
	display: flex;
	align-items: center;
	gap: 7.65px;
	font-size: 16px;
	color: #91DCD5;
	margin-bottom: 0;
	line-height: 1.2;
}

.rsgt-news-date svg {
	width: 18px;
	height: 20px;
	color: #91DCD5;
	flex-shrink: 0;
}

.elementor-kit-7 .rsgt-news-title {
	margin: 0;
	font-size: 22px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	letter-spacing: -1%;
	margin-bottom: 0;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rsgt-news-excerpt {
	display: none !important;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* No Results */
.rsgt-no-results {
	text-align: center;
	padding: 100px 0;
	width:100%;
	color: #91dcd5;
   font-weight: 700;
}

.rsgt-no-results p {
  font-size: 26px;
  margin: 0;
  color: #91dcd5;
  font-weight: 700;
}

/* Pagination */
.rsgt-news-pagination {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.rsgt-news-pagination ul {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.rsgt-news-pagination li {
	margin: 0;
}

.rsgt-news-pagination a,
.rsgt-news-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 50px;
	height: 50px;
	padding: 0 10px;
	background: transparent;
	border: none;
	border-radius: 16px;
	color: #91DCD5;
	text-decoration: none;
	font-size: 18px;
	font-weight: 400;
	transition: all 0.25s ease;
	white-space: nowrap;
	position: relative;
	z-index: 0;
}

/* Current/Active page */
.rsgt-news-pagination .current,
.rsgt-news-pagination span.current {
	background: #172136;
	color: #fff;
	background: linear-gradient(276.93deg, #233446 0%, #172136 98.85%);
}

.rsgt-news-pagination a::before,
.rsgt-news-pagination span::before {
	content: "";
	position: absolute;
	inset: 0;
	padding: 2px;
	/* border thickness */
	border-radius: 16px;
	background: linear-gradient(112.71deg,
			rgba(145, 220, 213, 0.35) 0%,
			rgba(145, 220, 213, 0.15) 30%,
			rgba(255, 255, 255, 0) 70%);

	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

/* Previous/Next links */
.rsgt-news-pagination .prev,
.rsgt-news-pagination .next {
	padding: 0 4px;
	font-size: 18px;
	color: #91DCD5;
}

.rsgt-news-pagination .prev:before,
.rsgt-news-pagination .next:before,
.rsgt-news-pagination .dots:before {
	display: none;
}

.rsgt-news-pagination .prev:hover,
.rsgt-news-pagination .next:hover {
	color: #fff;
	background: transparent;
}

/* Dots/Ellipsis */
.rsgt-news-pagination .dots {
	color: #91DCD5;
	cursor: default;
	pointer-events: none;
	min-width: 30px;
	font-weight: 400;
	letter-spacing: 0;
	font-size: 62px;
	line-height: 0;
	height: 0;
	margin-top: -19px;
}

/* Disabled state */
.rsgt-news-pagination .disabled,
.rsgt-news-pagination span.disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}
.rsgt-news-pagination:empty{
	display: none !important;
}
html[dir="rtl"] .rsgt-filter-label{
	margin-left: 24px;
	margin-right:0;
}
/* Responsive */
@media (max-width: 1023px) {

	.rsgt-news-grid-2 .rsgt-news-card,
	.rsgt-news-grid-3 .rsgt-news-card,
	.rsgt-news-grid-4 .rsgt-news-card,
	.rsgt-news-grid-3 .rsgt-skeleton-card,
	.rsgt-news-grid-4 .rsgt-skeleton-card {
		width: calc(50% - 17px);
	}

	.rsgt-news-image {
		padding-bottom: 60%;
	}
}

@media (max-width: 767px) {
	.rsgt-news-filters {
		margin-bottom: 20px;
	}
	.rsgt-filter-label{
		display: none !important;
	}

	.rsgt-filters-row {
		align-items: flex-start;
		flex-direction: column-reverse;
		gap: 0;
	}

	.rsgt-filters-row.rsgt-filters-active{
		gap: 12px;
	}

	.rsgt-filters-left {
		width: 100%;
		flex-wrap: wrap;
	}

	.rsgt-filters-right {
		width: 100%;
		justify-content: flex-end;
	}

	.rsgt-filter-modal {
		width: 320px !important;
	}

	.rsgt-news-grid {
		gap: 8px;
	}

	.rsgt-news-grid-2 .rsgt-news-card,
	.rsgt-news-grid-3 .rsgt-news-card,
	.rsgt-news-grid-4 .rsgt-news-card,
	.rsgt-news-grid-2 .rsgt-skeleton-card,
	.rsgt-news-grid-3 .rsgt-skeleton-card,
	.rsgt-news-grid-4 .rsgt-skeleton-card {
		width: calc(50% - 4px);
	}

	.rsgt-news-card-link {
		padding: 8px;
	}

	.rsgt-news-image {
		margin-bottom: 8px;
	}

	.rsgt-news-date {
		font-size: 12px;
	}

	.rsgt-news-date svg {
		width: 13px;
		height: 14px;
	}

	.rsgt-news-content {
		gap: 8px;
	}

	.elementor-kit-7 .rsgt-news-title {
		font-size: 14px;
	}

	.rsgt-news-pagination {
		margin-top: 23px;
	}

	.rsgt-news-pagination .prev,
	.rsgt-news-pagination .next {
		font-size: 14px;
	}

	.rsgt-news-pagination a,
	.rsgt-news-pagination span {
		font-size: 14px;
		min-width: 40px;
		height: 40px;
	}

	.rsgt-news-pagination .dots {
		font-size: 50px;
		margin-top: -14px;
	}
}



@media (max-width: 480px) {

	.rsgt-active-filters {
		width: 100%;
	}
}

@media (max-width: 429px) {

	.rsgt-news-card,
	.rsgt-news-grid-2 .rsgt-news-card,
	.rsgt-news-grid-3 .rsgt-news-card,
	.rsgt-news-grid-4 .rsgt-news-card,
	.rsgt-news-grid-2 .rsgt-skeleton-card,
	.rsgt-news-grid-3 .rsgt-skeleton-card,
	.rsgt-news-grid-4 .rsgt-skeleton-card {
		width: 100%;
	}

	.rsgt-skeleton-card {
		min-height: 250px;
	}
}

@keyframes shimmer {
	0% {
		left: -100%;
	}

	100% {
		left: 100%;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}