/* AJ Custom Widgets Core CSS */

.aj-projects-grid-widget,
.aj-projects-filter-widget {
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

/* Filter Tabs Styling (Matching UI Screenshot) */
.aj-filter-tabs-wrapper {
	margin-bottom: 30px;
}

.aj-filter-tabs {
	list-style: none;
	padding: 0;
	margin: 0;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	align-items: center;
}

.aj-filter-tab-item {
	margin: 0;
	padding: 0;
}

.aj-filter-tab-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid #e2e8f0;
	background-color: #ffffff;
	color: #334155;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
	outline: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.aj-filter-tab-btn:hover {
	border-color: #cbd5e1;
	background-color: #f8fafc;
}

.aj-filter-tab-btn.active {
	background-color: #e2e8f0;
	border-color: #e2e8f0;
	color: #0f172a;
	box-shadow: none;
}

/* Grid Layouts */
.aj-layout-grid {
	display: grid;
	gap: 0px; /* Seamless touching cards as seen in reference screenshot */
}

.aj-cols-1 { grid-template-columns: repeat(1, 1fr); }
.aj-cols-2 { grid-template-columns: repeat(2, 1fr); }
.aj-cols-3 { grid-template-columns: repeat(3, 1fr); }
.aj-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
	.aj-cols-tablet-1 { grid-template-columns: repeat(1, 1fr); }
	.aj-cols-tablet-2 { grid-template-columns: repeat(2, 1fr); }
	.aj-cols-tablet-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
	.aj-cols-mobile-1 { grid-template-columns: repeat(1, 1fr); }
	.aj-cols-mobile-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Card Styling (Overlay Card Matching UI Screenshot) */
.aj-card-item {
	position: relative;
	height: 440px;
	overflow: hidden;
	width: 100%;
}

.aj-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.aj-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-card-bg-placeholder {
	background-color: #334155;
}

.aj-card-item:hover .aj-card-bg {
	transform: scale(1.05);
}

/* Dark Gradient Overlay for Text Readability */
.aj-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.85) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Card Content Positioning */
.aj-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 28px;
	z-index: 2;
	color: #ffffff;
}

/* Badge (e.g., Construction, Earth Works) */
.aj-card-badge {
	margin-bottom: 10px;
}

.aj-card-badge span {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: rgba(255, 255, 255, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Card Title & Excerpt */
.aj-card-title {
	margin: 0 0 6px 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.aj-card-title a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aj-card-title a:hover {
	color: #e2e8f0;
}

.aj-card-excerpt p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

.aj-card-readmore {
	margin-top: 12px;
}

.aj-readmore-btn {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.35);
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: all 0.25s ease;
	position: relative;
	z-index: 4;
}

.aj-readmore-btn:hover {
	background: #ffffff;
	color: #0f172a;
}

.aj-card-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
}

/* Ajax Loader Overlay */
.aj-filter-posts-container {
	position: relative;
	min-height: 250px;
	transition: opacity 0.3s ease;
}

.aj-filter-posts-container.loading {
	opacity: 0.4;
	pointer-events: none;
}

.aj-filter-loader {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.aj-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: #0f172a;
	border-radius: 50%;
	animation: aj-spin 0.8s linear infinite;
}

@keyframes aj-spin {
	to { transform: rotate(360deg); }
}

/* Pagination Styling */
.aj-filter-pagination-wrapper {
	margin-top: 35px;
	text-align: center;
}

.aj-pagination-numbers {
	display: inline-flex;
	gap: 8px;
}

.aj-page-num {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.aj-page-num:hover,
.aj-page-num.active {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}

.aj-load-more-btn {
	padding: 12px 32px;
	border-radius: 8px;
	background: #0f172a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.aj-load-more-btn.loading {
	opacity: 0.75;
	cursor: not-allowed;
}

.aj-btn-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: aj-spin 0.6s linear infinite;
}

.aj-load-more-btn:hover {
	background: #1e293b;
}

/* ==========================================================================
   AJ Interactive Gallery Styles & Animations
   ========================================================================== */
.aj-interactive-gallery-widget {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

/* General Gallery Item */
.aj-gallery-item {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-gallery-lightbox-trigger {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Style 1: Vertical Stack Scroll Fan
   -------------------------------------------------------------------------- */
.aj-gallery-stack-vertical {
	position: relative;
	width: 100%;
	margin: 0 auto;
	min-height: 480px;
	padding-bottom: calc(var(--fan-distance, 55px) * 3);
	transition: padding 0.5s ease;
}

.aj-gallery-stack-vertical .aj-stack-card {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	margin: 0 auto;
	width: 100%;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, box-shadow 0.3s ease;
	transform-origin: center top;
	will-change: transform;
}

/* Default Stacked Position (Top Card on Top) */
.aj-gallery-stack-vertical .aj-stack-card:nth-child(1) { transform: translateY(0px) scale(1); z-index: 10; opacity: 1; }
.aj-gallery-stack-vertical .aj-stack-card:nth-child(2) { transform: translateY(15px) scale(0.96); z-index: 9; opacity: 0.95; }
.aj-gallery-stack-vertical .aj-stack-card:nth-child(3) { transform: translateY(30px) scale(0.92); z-index: 8; opacity: 0.9; }
.aj-gallery-stack-vertical .aj-stack-card:nth-child(4) { transform: translateY(45px) scale(0.88); z-index: 7; opacity: 0.85; }
.aj-gallery-stack-vertical .aj-stack-card:nth-child(n+5) { transform: translateY(60px) scale(0.84); z-index: 6; opacity: 0.8; }

/* Fanned State (Scroll In-View or Mouse Hover depending on settings) */
.aj-trigger-both .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(1),
.aj-trigger-both .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(1),
.aj-trigger-scroll .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(1),
.aj-trigger-hover .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(1) { transform: translateY(0px) scale(1); z-index: 10; }

.aj-trigger-both .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(2),
.aj-trigger-both .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(2),
.aj-trigger-scroll .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(2),
.aj-trigger-hover .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(2) { transform: translateY(calc(var(--fan-distance, 55px) * 1)) scale(0.98); z-index: 9; opacity: 1; }

.aj-trigger-both .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(3),
.aj-trigger-both .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(3),
.aj-trigger-scroll .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(3),
.aj-trigger-hover .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(3) { transform: translateY(calc(var(--fan-distance, 55px) * 2)) scale(0.96); z-index: 8; opacity: 1; }

.aj-trigger-both .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(4),
.aj-trigger-both .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(4),
.aj-trigger-scroll .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(4),
.aj-trigger-hover .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(4) { transform: translateY(calc(var(--fan-distance, 55px) * 3)) scale(0.94); z-index: 7; opacity: 1; }

.aj-trigger-both .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(n+5),
.aj-trigger-both .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(n+5),
.aj-trigger-scroll .aj-gallery-stack-vertical.aj-fanned .aj-stack-card:nth-child(n+5),
.aj-trigger-hover .aj-gallery-stack-vertical:hover .aj-stack-card:nth-child(n+5) { transform: translateY(calc(var(--fan-distance, 55px) * 4)) scale(0.92); z-index: 6; opacity: 1; }

/* Card hover lift effect */
.aj-has-hover-lift .aj-gallery-stack-vertical .aj-stack-card:hover {
	transform: translateY(calc(var(--fan-distance, 55px) * var(--card-index, 0) - 10px)) scale(1.02) !important;
	z-index: 20 !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Style 2: Grid with "+X More" Overlay
   -------------------------------------------------------------------------- */
.aj-gallery-grid {
	width: 100%;
}

.aj-gallery-item.aj-has-more-overlay {
	position: relative;
}

.aj-gallery-more-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 3;
	transition: background-color 0.3s ease;
}

.aj-gallery-more-text {
	font-size: 26px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.5px;
}

.aj-gallery-item.aj-has-more-overlay:hover .aj-gallery-more-overlay {
	background-color: rgba(15, 23, 42, 0.8);
}

/* --------------------------------------------------------------------------
   Style 3: 3D Angled Deck Scroll Fan
   -------------------------------------------------------------------------- */
.aj-gallery-stack-angled {
	position: relative;
	width: 100%;
	min-height: 460px;
	perspective: 1000px;
}

.aj-gallery-stack-angled .aj-angled-card {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	width: 85%;
	margin: 0 auto;
	transform-origin: center center;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease;
}

/* Initial Stacked Rotation */
.aj-gallery-stack-angled .aj-angled-card:nth-child(1) { transform: rotate(calc(var(--deck-angle, 12deg) * -0.66)) translateY(0px) scale(1); z-index: 5; }
.aj-gallery-stack-angled .aj-angled-card:nth-child(2) { transform: rotate(calc(var(--deck-angle, 12deg) * -0.33)) translateY(-15px) scale(0.96); z-index: 4; opacity: 0.85; filter: grayscale(40%); }
.aj-gallery-stack-angled .aj-angled-card:nth-child(3) { transform: rotate(0deg) translateY(-30px) scale(0.92); z-index: 3; opacity: 0.7; filter: grayscale(70%); }
.aj-gallery-stack-angled .aj-angled-card:nth-child(n+4) { transform: rotate(calc(var(--deck-angle, 12deg) * 0.33)) translateY(-45px) scale(0.88); z-index: 2; opacity: 0.5; filter: grayscale(90%); }

/* Fanned State for Style 3 */
.aj-trigger-both .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(1),
.aj-trigger-both .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(1),
.aj-trigger-scroll .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(1),
.aj-trigger-hover .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(1) { transform: rotate(calc(var(--deck-angle, 12deg) * -1)) translateX(-30px) translateY(0px) scale(1); z-index: 10; opacity: 1; filter: grayscale(0%); }

.aj-trigger-both .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(2),
.aj-trigger-both .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(2),
.aj-trigger-scroll .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(2),
.aj-trigger-hover .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(2) { transform: rotate(calc(var(--deck-angle, 12deg) * -0.33)) translateX(0px) translateY(calc(var(--fan-distance, 55px) * -0.5)) scale(0.98); z-index: 9; opacity: 1; filter: grayscale(0%); }

.aj-trigger-both .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(3),
.aj-trigger-both .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(3),
.aj-trigger-scroll .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(3),
.aj-trigger-hover .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(3) { transform: rotate(calc(var(--deck-angle, 12deg) * 0.5)) translateX(30px) translateY(calc(var(--fan-distance, 55px) * -1)) scale(0.96); z-index: 8; opacity: 1; filter: grayscale(0%); }

.aj-trigger-both .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(n+4),
.aj-trigger-both .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(n+4),
.aj-trigger-scroll .aj-gallery-stack-angled.aj-in-view .aj-angled-card:nth-child(n+4),
.aj-trigger-hover .aj-gallery-stack-angled:hover .aj-angled-card:nth-child(n+4) { transform: rotate(calc(var(--deck-angle, 12deg) * 1.16)) translateX(60px) translateY(calc(var(--fan-distance, 55px) * -1.5)) scale(0.94); z-index: 7; opacity: 1; filter: grayscale(0%); }

/* Card hover lift effect for Style 3 */
.aj-has-hover-lift .aj-gallery-stack-angled .aj-angled-card:hover {
	transform: scale(1.04) !important;
	z-index: 25 !important;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.aj-no-posts-found {
	grid-column: 1 / -1;
	padding: 40px;
	text-align: center;
	color: #64748b;
}

/* ==========================================================================
   AJ Built-in Lightbox Modal Styling
   ========================================================================== */
.aj-lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.aj-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.aj-lightbox-content {
	position: relative;
	z-index: 2;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	justify-content: center;
	align-items: center;
}

.aj-lightbox-img-wrap {
	position: relative;
	text-align: center;
	max-width: 85vw;
	max-height: 85vh;
}

.aj-lightbox-img {
	max-width: 100%;
	max-height: 80vh;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
	object-fit: contain;
}

.aj-lightbox-caption {
	color: #ffffff;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 500;
}

.aj-lightbox-close {
	position: absolute;
	top: -45px;
	right: 0;
	background: none;
	border: none;
	color: #ffffff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.85;
	transition: opacity 0.2s;
}

.aj-lightbox-close:hover {
	opacity: 1;
}

.aj-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	font-size: 28px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
}

.aj-lightbox-nav:hover {
	background: #ffffff;
	color: #0f172a;
}

.aj-lightbox-nav.aj-prev { left: -70px; }
.aj-lightbox-nav.aj-next { right: -70px; }

@media (max-width: 767px) {
	.aj-lightbox-nav.aj-prev { left: 10px; }
	.aj-lightbox-nav.aj-next { right: 10px; }
}

/* ==========================================================================
   AJ Recent Post Widget (Asymmetric Featured + List Layout)
   ========================================================================== */
.aj-recent-post-layout {
	display: flex;
	width: 100%;
	box-sizing: border-box;
}

.aj-recent-featured-column {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.aj-recent-list-column {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

@media (max-width: 991px) {
	.aj-recent-post-layout {
		flex-direction: column;
	}
	.aj-recent-featured-column,
	.aj-recent-list-column {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* Recent Card Common */
.aj-recent-card {
	position: relative;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.aj-recent-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: inherit;
	overflow: hidden;
}

.aj-recent-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-recent-card:hover .aj-recent-card-bg {
	transform: scale(1.05);
}

.aj-recent-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.88) 100%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* Featured Card Specific */
.aj-recent-featured-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 420px;
}

.aj-recent-featured-card .aj-recent-card-inner {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: inherit;
	flex: 1 1 100%;
}

.aj-recent-featured-card .aj-recent-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 32px;
	z-index: 2;
	color: #ffffff;
}

.aj-recent-featured-card .aj-recent-title {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

@media (max-width: 991px) {
	.aj-recent-featured-card {
		min-height: 380px;
	}
}

@media (max-width: 767px) {
	.aj-recent-featured-card {
		min-height: 320px;
	}
	.aj-recent-featured-card .aj-recent-card-content {
		padding: 20px;
	}
	.aj-recent-featured-card .aj-recent-title {
		font-size: 20px;
	}
}

/* Side Card Specific */
.aj-recent-side-card {
	display: flex;
	min-height: 150px;
}

.aj-recent-side-card .aj-recent-card-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 24px;
	z-index: 2;
	color: #ffffff;
}

.aj-recent-side-card .aj-recent-title {
	margin: 0 0 6px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

@media (max-width: 767px) {
	.aj-recent-side-card {
		min-height: 130px;
	}
	.aj-recent-side-card .aj-recent-card-content {
		padding: 16px;
	}
}

/* Badge Text */
.aj-recent-badge {
	margin-bottom: 8px;
}

.aj-recent-badge span {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Excerpt Text */
.aj-recent-excerpt p {
	margin: 0 0 16px 0;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

.aj-recent-excerpt.aj-excerpt-hover-only {
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	margin: 0;
	transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1), max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-recent-card:hover .aj-recent-excerpt.aj-excerpt-hover-only {
	opacity: 1;
	max-height: 180px;
}

/* Explore Link with Arrow/Icon Animation */
.aj-recent-explore-wrap {
	margin-top: 10px;
}

.aj-recent-explore {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	transition: color 0.25s ease;
	position: relative;
	z-index: 4;
}

.aj-explore-arrow,
.aj-recent-explore i,
.aj-recent-explore svg {
	display: inline-block;
	font-size: 14px;
	transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-recent-card:hover .aj-explore-arrow,
.aj-recent-card:hover .aj-recent-explore i,
.aj-recent-card:hover .aj-recent-explore svg {
	transform: translate(3px, -3px);
}

.aj-recent-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
}

/* ==========================================================================
   8. AJ DYNAMIC SLIDER WIDGET
   ========================================================================== */

.aj-dynamic-slider-widget {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.aj-dynamic-slider-container {
	width: 100%;
	height: 100%;
}

.aj-dynamic-slide-item {
	position: relative;
	display: flex;
	width: 100%;
	min-height: 550px;
	box-sizing: border-box;
	overflow: hidden;
}

/* Background & Overlay */
.aj-slide-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	z-index: 1;
	transition: transform 6s ease;
}

.aj-slide-video {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate(-50%, -50%);
	z-index: 1;
	pointer-events: none;
}

.swiper-slide-active .aj-slide-bg {
	transform: scale(1.06);
}

.aj-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	background-color: rgba(15, 23, 42, 0.45);
}

/* Slide Template Wrapper */
.aj-slide-template-wrapper {
	position: relative;
	z-index: 3;
	width: 100%;
	height: 100%;
}

/* Content Container & Positioning */
.aj-slide-content {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: 800px;
	padding: 40px;
	box-sizing: border-box;
	color: #ffffff;
}

.aj-pos-top-left { align-items: flex-start; justify-content: flex-start; }
.aj-pos-top-center { align-items: flex-start; justify-content: center; }
.aj-pos-top-right { align-items: flex-start; justify-content: flex-end; }

.aj-pos-center-left { align-items: center; justify-content: flex-start; }
.aj-pos-center { align-items: center; justify-content: center; }
.aj-pos-center-right { align-items: center; justify-content: flex-end; }

.aj-pos-bottom-left { align-items: flex-end; justify-content: flex-start; }
.aj-pos-bottom-center { align-items: flex-end; justify-content: center; }
.aj-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }

/* Subtitle, Title, Text, Button Styling */
.aj-slide-subtitle {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #38bdf8;
	margin-bottom: 12px;
}

.aj-slide-title {
	margin: 0 0 18px 0;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}

.aj-slide-text {
	font-size: 16px;
	line-height: 1.6;
	color: #e2e8f0;
	margin-bottom: 28px;
}

.aj-slide-btn-wrapper {
	display: inline-block;
}

.aj-slide-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	background-color: #0284c7;
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
	border: 1px solid transparent;
}

.aj-slide-btn:hover {
	background-color: #0369a1;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4);
}

.aj-btn-icon {
	display: inline-flex;
	align-items: center;
}

/* ==========================================================================
   Text Effects & Entrance Animations
   ========================================================================== */

.aj-slide-content .aj-slide-subtitle,
.aj-slide-content .aj-slide-title,
.aj-slide-content .aj-slide-text,
.aj-slide-content .aj-slide-btn-wrapper {
	opacity: 0;
	transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .aj-slide-content .aj-slide-subtitle { transition-delay: 0.2s; }
.swiper-slide-active .aj-slide-content .aj-slide-title { transition-delay: 0.4s; }
.swiper-slide-active .aj-slide-content .aj-slide-text { transition-delay: 0.6s; }
.swiper-slide-active .aj-slide-content .aj-slide-btn-wrapper { transition-delay: 0.8s; }

/* Slide Right to Left */
.aj-effect-slide-rtl .aj-slide-subtitle,
.aj-effect-slide-rtl .aj-slide-title,
.aj-effect-slide-rtl .aj-slide-text,
.aj-effect-slide-rtl .aj-slide-btn-wrapper { transform: translateX(50px); }

/* Slide Left to Right */
.aj-effect-slide-ltr .aj-slide-subtitle,
.aj-effect-slide-ltr .aj-slide-title,
.aj-effect-slide-ltr .aj-slide-text,
.aj-effect-slide-ltr .aj-slide-btn-wrapper { transform: translateX(-50px); }

/* Slide Top to Bottom */
.aj-effect-slide-ttb .aj-slide-subtitle,
.aj-effect-slide-ttb .aj-slide-title,
.aj-effect-slide-ttb .aj-slide-text,
.aj-effect-slide-ttb .aj-slide-btn-wrapper { transform: translateY(-40px); }

/* Slide Bottom to Top */
.aj-effect-slide-btt .aj-slide-subtitle,
.aj-effect-slide-btt .aj-slide-title,
.aj-effect-slide-btt .aj-slide-text,
.aj-effect-slide-btt .aj-slide-btn-wrapper { transform: translateY(40px); }

/* Zoom */
.aj-effect-zoom .aj-slide-subtitle,
.aj-effect-zoom .aj-slide-title,
.aj-effect-zoom .aj-slide-text,
.aj-effect-zoom .aj-slide-btn-wrapper { transform: scale(0.85); }

/* Active Animated State */
.swiper-slide-active .aj-slide-content .aj-slide-subtitle,
.swiper-slide-active .aj-slide-content .aj-slide-title,
.swiper-slide-active .aj-slide-content .aj-slide-text,
.swiper-slide-active .aj-slide-content .aj-slide-btn-wrapper {
	opacity: 1;
	transform: translate(0, 0) scale(1);
}

/* ==========================================================================
   Navigation & Arrows Positioning
   ========================================================================== */

.aj-swiper-arrow {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: rgba(15, 23, 42, 0.5);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

.aj-swiper-arrow::after {
	display: none;
}

.aj-swiper-arrow i {
	font-size: 18px;
}

.aj-swiper-arrow:hover {
	background-color: #0284c7;
	color: #ffffff;
}

/* Inside Positioning */
.aj-arrows-pos-inside .swiper-button-prev { left: 24px; }
.aj-arrows-pos-inside .swiper-button-next { right: 24px; }

/* Outside Positioning */
.aj-arrows-pos-outside .swiper-button-prev { left: 0px; }
.aj-arrows-pos-outside .swiper-button-next { right: 0px; }

/* Top End Positioning */
.aj-arrows-pos-top-end .swiper-button-prev { top: 30px; right: 80px; left: auto; }
.aj-arrows-pos-top-end .swiper-button-next { top: 30px; right: 24px; left: auto; }

/* Bottom End Positioning */
.aj-arrows-pos-bottom-end .swiper-button-prev { bottom: 24px; top: auto; right: 80px; left: auto; }
.aj-arrows-pos-bottom-end .swiper-button-next { bottom: 24px; top: auto; right: 24px; left: auto; }

/* Bottom Start Positioning */
.aj-arrows-pos-bottom-start .swiper-button-prev { bottom: 24px; top: auto; left: 24px; right: auto; }
.aj-arrows-pos-bottom-start .swiper-button-next { bottom: 24px; top: auto; left: 80px; right: auto; }

/* Bottom Center Positioning */
.aj-arrows-pos-bottom-center .swiper-button-prev { bottom: 24px; top: auto; left: calc(50% - 50px); right: auto; }
.aj-arrows-pos-bottom-center .swiper-button-next { bottom: 24px; top: auto; left: calc(50% + 10px); right: auto; }

/* Pagination Dots */
.aj-dynamic-slider-widget .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background-color: rgba(255, 255, 255, 0.4);
	opacity: 1;
	transition: all 0.3s ease;
}

.aj-dynamic-slider-widget .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 6px;
	background-color: #0284c7;
}

/* Fraction Pagination */
.aj-dynamic-slider-widget .swiper-pagination-fraction {
	color: #ffffff;
	font-weight: 600;
	font-size: 15px;
	bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
	.aj-dynamic-slide-item {
		min-height: 400px;
	}
	.aj-slide-content {
		padding: 24px;
	}
	.aj-slide-title {
		font-size: 28px;
	}
	.aj-slide-subtitle {
		font-size: 14px;
	}
	.aj-slide-text {
		font-size: 14px;
	}
	.aj-hide-mobile-arrows .swiper-button-prev,
	.aj-hide-mobile-arrows .swiper-button-next {
		display: none !important;
	}
}

/* ==========================================================================
   Filter Dropdown Display Option Styles
   ========================================================================== */
.aj-filter-dropdown-wrapper,
.aj-filter-combo-wrapper {
	margin-bottom: 30px;
	width: 100%;
}

.aj-filter-combo-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: center;
	justify-content: center;
}

.aj-filter-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 12px 45px 12px 20px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid #0f4c81;
	background-color: #ffffff;
	color: #0f4c81;
	cursor: pointer;
	outline: none;
	transition: all 0.25s ease-in-out;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f4c81' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	min-width: 220px;
	max-width: 100%;
}

.aj-filter-select:focus,
.aj-filter-select:hover {
	border-color: #0284c7;
	box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   AJ Category Listing Widget Styles (Matching Reference Screenshot)
   ========================================================================== */
.aj-category-listing-widget {
	width: 100%;
	box-sizing: border-box;
}

.aj-cat-listing-grid {
	width: 100%;
}

.aj-cat-card {
	position: relative;
	background-color: #ffffff;
	border-radius: 16px;
	border: 1px solid #0f4c81;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
	display: flex;
	flex-direction: column;
}

.aj-cat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(15, 76, 129, 0.15);
	border-color: #0284c7;
}

.aj-cat-card-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.aj-cat-card-img-wrap {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	background-color: #f1f5f9;
}

.aj-cat-card-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.aj-cat-card-placeholder {
	background-color: #cbd5e1;
}

.aj-cat-card:hover .aj-cat-card-bg {
	transform: scale(1.06);
}

.aj-cat-card-title-wrap {
	padding: 18px 20px;
	text-align: center;
	background-color: #ffffff;
	border-top: 1px solid rgba(15, 76, 129, 0.1);
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aj-cat-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f4c81;
	line-height: 1.3;
	transition: color 0.25s ease;
}

.aj-cat-title a {
	color: inherit;
	text-decoration: none;
}

.aj-cat-card-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
}


