/* Sticky main header bar (replaces Astra Pro sticky header). */
.main-header-bar-wrap.agrc-is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}
.admin-bar .main-header-bar-wrap.agrc-is-stuck {
	top: 32px;
}

/* Hero slider */
.agrc-slides {
	position: relative;
	height: 500px;
	overflow: hidden;
	background: #124a72;
}
.agrc-slide {
	position: absolute;
	inset: 0;
	display: flex;
	padding: 40px 60px;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .8s ease, visibility .8s;
}
.agrc-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}
.agrc-slide.is-active {
	opacity: 1;
	visibility: visible;
}
.agrc-align-left { justify-content: flex-start; text-align: left; }
.agrc-align-center { justify-content: center; text-align: center; }
.agrc-align-right { justify-content: flex-end; text-align: right; }
.agrc-valign-top { align-items: flex-start; }
.agrc-valign-middle { align-items: center; }
.agrc-valign-bottom { align-items: flex-end; }
.agrc-slide-content {
	position: relative;
	max-width: 66%;
	color: #fff;
}
.agrc-slide-heading {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 12px;
}
.agrc-slide-description {
	font-size: 17px;
	margin: 0 0 24px;
}
.agrc-slide-button {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid #fff;
	border-radius: 3px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.agrc-slide-button:hover,
.agrc-slide-button:focus {
	background: #fff;
	color: #124a72;
}
.agrc-slides-prev,
.agrc-slides-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 36px;
	line-height: 40px;
	cursor: pointer;
}
.agrc-slides-prev { left: 10px; }
.agrc-slides-next { right: 10px; }
@media (max-width: 767px) {
	.agrc-slide { padding: 30px 50px; }
	.agrc-slide-content { max-width: 100%; }
	.agrc-slide-heading { font-size: 24px; }
}

/* Recent posts grid */
.agrc-posts {
	display: grid;
	grid-template-columns: repeat(var(--agrc-cols, 4), minmax(0, 1fr));
	gap: 30px;
}
.agrc-post-card {
	overflow: hidden;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, .15);
	transition: box-shadow .3s;
}
.agrc-post-card:hover {
	box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}
.agrc-post-thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.agrc-post-body {
	padding: 20px 24px;
}
.agrc-post-title {
	font-size: 18px;
	margin: 0 0 10px;
}
.agrc-post-title a {
	color: inherit;
	text-decoration: none;
}
.agrc-post-date {
	font-size: 12px;
	color: #adadad;
}
@media (max-width: 1024px) {
	.agrc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.agrc-posts { grid-template-columns: 1fr; }
}

/* Basic Gallery: even grid like the old Pro gallery */
.elementor-image-gallery .gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}
.elementor-image-gallery .gallery-item {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.elementor-image-gallery .gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 0 !important;
}
.elementor-image-gallery .gallery br {
	display: none;
}
@media (max-width: 1024px) {
	.elementor-image-gallery .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.elementor-image-gallery .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Consultation popup */
.agrc-popup {
	width: min(560px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 32px;
	border: 0;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
.agrc-popup::backdrop {
	background: rgba(0, 0, 0, .55);
}
.agrc-popup h3 {
	margin: 0 0 6px;
	text-align: center;
}
.agrc-popup p {
	text-align: center;
}
.agrc-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: #555;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
