/*
Editor
--------------------------------------------- */
.components-popover.block-editor-block-popover {
	z-index: 999; /*Due to Two Box section z-index by Murtaza*/
}

/*
Background Circle Shadows
--------------------------------------------- */

.blue-shadow-1,
.black-shadow-1 {
	position: relative;
	z-index: 1;
}

.blue-shadow-1:before,
.black-shadow-1:before,
.black-shadow-2:before {
	content:'';
	position: absolute;
	filter: blur(150px);
	z-index: -1;
}

.blue-shadow-1:before {
	width: 284px;
	height: 343px;
	border-radius: 343px;
	background: #011352;
}

.black-shadow-1:before {
	width: 522px;
	height: 630px;
	border-radius: 630px;
	background: rgba(17,17,17,0.8);
}

.black-shadow-2:before {
	width: 510px;
	height: 615px;
	border-radius: 615px;
	background: rgba(17,17,17,0.8);
}

.shadow-position-1:before {
	bottom: -54px;
	right: -112px;
}

.shadow-position-2:before {
	bottom: 165px;
	left: -125px;
}

.shadow-position-3:before {
	top: -120px;
	right: -166px;
}

.shadow-position-4:before {
	top: -95px;
	right: -390px;
}

.shadow-position-5:before {
	bottom: -67px;
	left: -475px;
}

.shadow-position-6:before {
	bottom: -615px;
	left: -475px;
}

/*
Background Polygons
--------------------------------------------- */

.polygon-overflow-hidden {
	overflow: hidden;
}

.editor-styles-wrapper .polygon-bg:before {
	display:none;
}

.polygon-bg,
.polygon-bg-right {
	position: relative;
	z-index: 2;
}

.polygon-bg:before,
.polygon-bg-right:after {
	content: '';
	position: absolute;
	border-radius: 100px;
	border: 1px solid rgba(176, 183, 191, 0.50);
	transform: rotate(30deg);
	z-index: -1;
}

.polygon-size-1:before {
	width: 715px;
	height: 680px;
}

.polygon-size-2:before,
.polygon-size-right2:after {
	width: 597px;
	height: 568px;
}

.polygon-size-3:before {
	width: 446px;
	height: 424px;
}

.polygon-size-4:before,
.polygon-size-right4:after {
	width: 484px;
	height: 457px;
}

.polygon-size-5:before {
	width: 660px;
	height: 623px;
	transform: rotate(43deg);
}

.polygon-position-1:before {
	top: 250px;
	left: -545px;
}

.polygon-position-2:before {
	top: 35px;
	left: -690px;
}

.polygon-position-3:before {
	bottom: -460px;
	right: -570px;
}

.polygon-position-4:before {
	top: -62px;
	left: -747px;
}

.polygon-position-5:before {
	top: 20px;
	left: -670px;
}

.polygon-position-6:before {
	top: 915px;
	left: -670px;
}

.polygon-position-7:before {
	top: 75px;
	left: -840px;
}

.polygon-position-8:before {
	top: -90px;
	left: -580px;
}

.polygon-position-9:before {
	bottom: -170px;
	right: -500px;
}

.polygon-position-10:before {
	top: -350px;
	right: -500px;
}

.polygon-position-right1:after {
	top: -275px;
	right: -570px;
}

.polygon-position-right2:after {
	top: -345px;
	right: -570px;
}

.z-index {
	position: relative;
	z-index: 5;
}

.z-index:has(dialog), 
.polygon-bg:has(dialog) {
	z-index: inherit;
}

/*
Headings
--------------------------------------------- */

.wp-block-heading em {
	font-weight: 300;
	text-transform: none;
}

.hero-section .wp-block-heading em {
	font-weight: 400;
}

.info-cards-section .hover-content-wrapper .wp-block-heading em {
	text-transform: uppercase;
	font-weight: 400;
}

/*
hero section
--------------------------------------------- */

.hero-style-2 {
	padding-top: 235px;
}

.hero-style-2 h1 {
	line-height: 1.2;
}

.hero-style-2 h5 {
	font-family: var(--wp--preset--font-family--2);
	font-style: italic;
}

/*
Cards Section
--------------------------------------------- */

.cards-section .wp-block-column {
	color: var(--wp--preset--color--3);
	background: var(--wp--preset--color--5);
	padding: 2%;
	font-size: var(--wp--preset--font-size--heading-5);
}

/*
Style 2 Cards Section
--------------------------------------------- */

.cards-style-2 > * {
	padding-left: 72px !important; /*important for editor styles*/
	position: relative;
}

.cards-style-2 > *:before {
	content: '';
	position: absolute;
	top: -5px;
	left: 0;
	width: 47px;
	height: 47px;
	background: url('assets/images/arrow-right-gray.svg') no-repeat;
	z-index: 1;
	display: block;
}

/* Info Card Section
--------------------------------------------- */
.info-cards-section {
	position: relative;
	z-index: 3;
}

/* Desktop: 3 columns */
#site-container:not(.block-editor-page) .info-cards-section .wp-block-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

#site-container:not(.block-editor-page) .info-cards-section .wp-block-column {
	display: grid;
	overflow: hidden;
	width: 100%;
}

/* Stack children */
#site-container:not(.block-editor-page) .info-cards-section .wp-block-column > * {
	grid-area: 1 / 1;
}


/* IMAGE (defines height) */
#site-container:not(.block-editor-page) .info-cards-section .card-cover-image {
	width: 100%;
}

#site-container:not(.block-editor-page) .info-cards-section .card-cover-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 540 / 685; /* Maintain 540x685 ratio */
}

#site-container:not(.block-editor-page) .info-cards-section .card-cover-image:after {
	content: '';
	display: block;
	background: rgba(0, 30, 58, 0.20);
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

#site-container:not(.block-editor-page) .info-cards-section .default-content-wrapper {
	display: grid;
	color: #fff;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

#site-container:not(.block-editor-page) .info-cards-section .default-content-wrapper > * {
	grid-area: 1 /1;
}

#site-container:not(.block-editor-page) .info-cards-section .default-content-wrapper .content-wrapper {
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255,255,255,0.1);
	padding: 30px;
	background: linear-gradient(152deg, rgba(17, 17, 17, 0.40) -0.64%, rgba(17, 17, 17, 0.40) 106.81%);
	align-self: end;
	position: relative;
	bottom: 15%;
	width: 80%;
	text-align: center;
	transition: all 0.4s ease;
}

#site-container:not(.block-editor-page) .info-cards-section .hover-content-wrapper {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--3);
	background: linear-gradient(152deg, rgba(17, 17, 17, 0.40) -0.64%, rgba(17, 17, 17, 0.70) 106.81%);
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.4s ease;
}

#site-container:not(.block-editor-page) .info-cards-section .hover-content-wrapper > * {
	width: 100%
}

#site-container:not(.block-editor-page) .info-cards-section .wp-block-column:hover .default-content-wrapper .content-wrapper {
	opacity: 0;
	transform: translateY(-20px);
}

#site-container:not(.block-editor-page) .info-cards-section .wp-block-column:hover .hover-content-wrapper {
	opacity: 1;
	transform: translateY(0);
}

#site-container:not(.block-editor-page) .info-cards-section .hover-content-wrapper ul {
	margin-top: 10px;
}

#site-container:not(.block-editor-page) .info-cards-section .hover-content-wrapper li {
	margin: 0;
}



/** Media Queries
* --------------------------------- */

@media only screen and (max-width:980px) {

	.hero-style-2 {
		padding-top: 50px;
	}

	.is-style-list-3 li,
	.is-style-list-4 li {
		margin-top: 3%;
	}

	.is-style-list-3 li {
		padding-left: 45px;
	}

	.cards-style-2 > *:before {
		width: 30px;
		height: 30px;
		background-size: contain;
	}

	.cards-style-2 > * {
		padding-left: 45px !important;
	}

	.polygon-bg:before,
	.polygon-bg-right:after {
		display: none;
	}

	/* Mobile: stacked + centered */
	#site-container:not(.block-editor-page) .info-cards-section .wp-block-columns {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	#site-container:not(.block-editor-page) .info-cards-section .wp-block-column {
		max-width: 540px;
		width: 100%;
	}

}
