.blog:has(.ravi-sidebar-content) header .elementor-widget img {
	/* filter: brightness(6) !important; */
}

.ravi-pilot-layout {
	display: flex;
	flex-wrap: wrap;
	min-height: 800px;
	background-color: #fff;
}

body:has(.ravi-pilot-layout) aside.ravi-pilot-sidebar {
	margin-top: -110px !important;
}

.ravi-pilot-sidebar {
	z-index: 9999999;
	width: 300px;
	flex-shrink: 0;
	position: relative;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	background-color: #033b21;
	background-size: cover;
	background-position: center;
	color: #fff;
}

.ravi-sidebar-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.ravi-sidebar-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 40px;
	height: 100%;
	position: relative;
	z-index: 2;
	padding: 30px 40px;
}

.ravi-sidebar-logo-link {
	width: fit-content;
	margin: 0 auto;
	display: block;
	text-decoration: none;
}

.ravi-sidebar-logo {
	display: block;
	max-width: 180px;
	width: 100%;
	height: auto;
}

.ravi-pilot-menu li a {
	list-style: none !important;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 500;
	font-family: "proxima-nova", sans-serif;
	padding: 5px 0;
	display: block;
	transition: opacity 0.3s;
}

.ravi-pilot-menu li a:hover {
	opacity: 0.7;
}

.ravi-pilot-menu {
	list-style: none !important;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.ravi-pilot-main {
	flex: 1;
	padding-bottom: 60px 0;
	background-color: #fff;
}

.ravi-pilot-header {
	margin-top: 90px;
	margin-bottom: 40px;
	padding-left: 0;
}

.ravi-pilot-title {
	color: #e0d1a7;
	font-family: "IvyJournal", serif;
	font-size: 80px;
	opacity: 0.15;
	line-height: 1;
	margin-bottom: 30px;
	font-weight: normal;
}

.ravi-pilot-desc {
	line-height: 140% !important;
	color: #666;
	white-space: normal;
	margin-top: -40px;
	/* Overlap effect */
	margin-bottom: 0;
	font-family: "proxima-nova", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 160%;
	text-decoration: none;
	text-align: left;
	max-width: 950px;
	position: relative;
	z-index: 5;
	/* Background gradient or shadow might be needed if text overlaps complex image, but user asked for simple overlap. */
}

/* Specific stronger overlap when following an image */
.ravi-pilot-title-img+.ravi-pilot-desc {
	margin-left: 100px;
	margin-top: -220px;
}

@media (max-width: 900px) {
	.ravi-pilot-title-img+.ravi-pilot-desc {
		margin-top: -180px;
	}
}

.ravi-pilot-grid {
	padding: 0 50px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 30px;
}

.ravi-pilot-card {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ravi-pilot-image-wrapper {
	position: relative;
	/* overflow: hidden; Removed per request to allow pop-out */
	width: 100%;
	height: 330px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

@media (max-width: 900px) {
	.ravi-pilot-image-wrapper {
		max-height: 200px;
	}
}

.ravi-pilot-image-wrapper img {
	object-fit: cover;
	/* width: 100%; */
	height: 100%;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ravi-pilot-card:hover .ravi-pilot-image-wrapper img {
	transform: scale(1.1);
}

/* Animations & Title Image */
.ravi-pilot-title-img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	margin-bottom: 20px;
	/* Space before desc (desc will pull up) */
}

@keyframes raviSlideUp {
	from {
		opacity: 0;
		transform: translateY(60px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ravi-anim-enter {
	animation: raviSlideUp 0.8s ease-out forwards;
}

.ravi-anim-enter-delay {
	opacity: 0;
	/* Hidden initially */
	animation: raviSlideUp 0.8s ease-out 0.4s forwards;
	/* 0.4s delay */
}

.ravi-pilot-card-content {
	text-align: center;
	padding-top: 5px;
}

.ravi-pilot-card-title {
	color: #000;
	font-size: 16px;
	margin: 0 0 5px;
	font-weight: normal;
	font-family: "proxima-nova", sans-serif;
}

.ravi-pilot-info {
	color: #000;
	font-weight: bold;
	font-size: 15px;
	font-family: "proxima-nova", sans-serif;
}

/* Pagination */
.ravi-pilot-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-top: 60px;
	width: 100%;
}

.ravi-pilot-pagination .page-numbers {
	text-decoration: none;
	color: #000;
	font-family: "proxima-nova", sans-serif;
	font-size: 16px;
	padding: 5px 10px;
	transition: color 0.3s;
}

.ravi-pilot-pagination .page-numbers:hover {
	color: #666;
}

.ravi-pilot-pagination .page-numbers.current {
	font-weight: bold;
	color: #b59f5b;
	/* Gold/Beige darker for text visibility */
	border-bottom: 2px solid #b59f5b;
}

.ravi-pilot-pagination .ravi-pagination-arrow {
	display: flex;
	/* Changed from inline-block for better SVG alignment */
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	height: 100%;
}

.ravi-pilot-pagination .ravi-pagination-arrow svg {
	width: 20px;
	height: 20px;
	display: block;
}

@media (max-width: 900px) {
	.ravi-pilot-layout {
		flex-direction: column;
	}

	.ravi-pilot-sidebar {
		position: fixed !important;
		bottom: 0;
		left: 0;
		top: auto;
		width: 100vw;
		height: auto;
		min-height: 0;
		z-index: 1000;
		padding: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ravi-sidebar-overlay {
		opacity: 0.95;
	}

	.ravi-sidebar-content {
		padding: 15px 10px;
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		height: auto;
	}

	.ravi-sidebar-logo-link {
		display: none;
	}

	.ravi-sidebar-content::-webkit-scrollbar {
		display: none;
	}

	.ravi-pilot-menu {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 15px !important;
		padding: 0;
		margin: 0;
		align-items: center;
	}

	.ravi-pilot-menu li a {
		font-size: 14px !important;
		padding: 8px 16px;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 20px;
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.ravi-pilot-main {
		padding: 40px 20px 120px 20px;
	}

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

@media (max-width: 600px) {
	.ravi-pilot-grid {
		/* grid-template-columns: 1fr; */
	}
}

/* Domestic Products Layout */
.ravi-domestic-section {
	padding: 60px 20px;
	width: 100%;
}

.ravi-domestic-section.ravi-domestic-even {
	background-color: #f8f8f8;
}

.ravi-domestic-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.ravi-domestic-cat-title {
	color: var(--dark-green);
	text-align: center;
	align-self: stretch;
	margin-top: 0;
	margin-bottom: 0;
	/* As requested */
	padding-bottom: 40px;
	/* Compensating for margin removal to keep spacing */
	font-family: "ivyjournal", sans-serif;
	font-size: 48px;
	font-weight: 500;
	line-height: 130%;
}

.ravi-domestic-grid-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	/* Center items if fewer than 4 */
	gap: 20px;
}

/* Override/Adjust standard card for Domestic Grid */
.ravi-domestic-grid-container .ravi-pilot-card {
	width: calc(25% - 15px);
	/* 4 items per row */
	max-width: calc(25% - 15px);
	margin-bottom: 40px;
	box-sizing: border-box;
}

/* Ensure images stay contained */
.ravi-pilot-image-wrapper * {
	max-width: 100%;
	max-height: 100%;
}

@media (max-width: 900px) {
	.ravi-domestic-grid-container .ravi-pilot-card {
		width: calc(50% - 14px);
		/* 2 items per row tablet */
		max-width: calc(50% - 14px);
	}
}

@media (max-width: 600px) {
	.ravi-domestic-grid-container .ravi-pilot-card {
		width: 100%;
		/* 1 item per row mobile */
		/* max-width: 100%; */
	}
}

/* Admin Sortable Styles */
#ravi_pilot_sortable_cats {
	margin: 10px 0;
	max-width: 600px;
}

.ravi-sortable-item {
	background: #fff;
	border: 1px solid #ddd;
	padding: 10px;
	margin-bottom: 5px;
	cursor: move;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ravi-sortable-item:hover {
	border-color: #999;
}

.ravi-sortable-item .handle {
	color: #999;
	cursor: grab;
}

.elementor-1018 .elementor-element.elementor-element-6f5233a4 {
	width: max-content !important;
}

@media (min-width: 768px) {
	.elementor-1018 .elementor-element.elementor-element-680f56fe {
		width: 100% !important;
	}
}

:is(.elementor-section-wrap, [data-elementor-id])>.e-con {
	max-width: 100% !important;
}

/* Product Contact Modal */
.ravi-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	backdrop-filter: blur(2px);
}

.ravi-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.ravi-product-modal {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	/* max-width constrains it */
	max-width: 600px;
	height: 100vh;
	background-color: #f3f0e7;
	/* Beige */
	z-index: 1000001;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}

.ravi-product-modal.active {
	transform: translateX(0);
}

.ravi-modal-content {
	padding: 60px 40px;
	overflow-y: auto;
	height: 100%;
}

.ravi-modal-close {
	color: rgb(0, 0, 0) !important;
	background: transparent !important;
	position: absolute;
	top: 20px;
	right: 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	z-index: 10;
	padding: 10px;
	color: #000;
	transition: transform 0.2s;
}

.ravi-modal-close:hover {
	transform: rotate(90deg);
}

/* User's Form specific overrides if needed to fit nicely */
.ravi-product-modal .elementor-heading-title {
	font-family: "ivyjournal", sans-serif !important;
	color: #1a4d2e !important;
	/* Dark Green matching other headers */
	font-size: 36px !important;
	text-align: center;
	margin-bottom: 30px;
}

/* Ensure form fields look consistent */
.ravi-product-modal .elementor-field-group {
	margin-bottom: 20px;
}

.ravi-product-modal input,
.ravi-product-modal textarea {
	background-color: #fff !important;
	border: 1px solid #ddd !important;
	padding: 12px !important;
}

.ravi-product-modal button[type="submit"] {
	background-color: #1a4d2e !important;
	/* Dark Green */
	color: #fff !important;
	width: 100%;
}