/**
* Theme Name: Blocksy Child
* Description: Blocksy Child theme
* Author: Creative Themes
* Template: blocksy
* Text Domain: blocksy
*/

body {
	background: var(--theme-palette-color-7) !important;
}

body main .ct-container-full {
	padding-top: 0;
}

/* FAQ */
/* Reset default browser styles for details/summary */
.wp-block-details {
	border-radius: 2rem;
	background: var(--theme-palette-color-8);
	transition: all .3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.wp-block-details:hover {
	background: var(--theme-palette-color-7);
}

.wp-block-details[open] {
	background: var(--theme-palette-color-7);
}

.wp-block-details summary {
	list-style: none;
	font-family: 'Syne';
	color: var(--theme-headings-color);
	cursor: pointer;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0;
}

/* Remove default disclosure triangle */
.wp-block-details summary::-webkit-details-marker {
	display: none;
}
.wp-block-details summary::marker {
	display: none;
}

/* Add custom "+" icon with Remix */
.wp-block-details summary::after {
	font-family: "remixicon";
	content: "\ea13"; /* ri-add-line */
	font-size: 20px;
	line-height: 1;
	color: var(--theme-headings-color);
	padding: .75rem;
	border-radius: 2rem;
	background: var(--theme-palette-color-6);
	transition: all 0.25s ease;
	margin-left: 8px;
}

.wp-block-details[open] summary::after {
	color: var(--theme-palette-color-1); 
	background: var(--theme-palette-color-7);
	transform: rotate(45deg);
}

/* Buttons */
.min-width-20 {
	min-width: 20rem; 
}

.wp-block-button.download {
	flex: 1;
	min-width: 192px;
}

.wp-block-button.download a {
	display: flex;
	justify-content: start;
	text-align: left;
}


.wp-block-button.download a img {
	margin-right: 1rem;
}

/*
* Images & Videos
*/

.false-bg {
	position: relative;
}

/*
* FX
*/

@media (min-width: 768px) {
	section:has(.bg-ring) {
		overflow: hidden;
	}

	.bg-ring:after {
		content: "";
		position: absolute;
		top: 50%;
		right: 70%;
		width: 992px;
		height: 992px;
		border: 128px solid var(--theme-palette-color-1);
		border-radius: 992px;
	}
}



/* Annotations - Mobile */
section:nth-child(3) .wp-block-cover {
	overflow: visible;
}

section:nth-child(3) .wp-block-cover > img {
	border-radius: 2rem;
}

section:nth-child(3) .wp-block-cover figure {
	transform: scale(1.15);
	margin: 0;
}

section:nth-child(3) .wp-block-cover figure img {
	border-radius: 0;
	box-shadow: var(--wp--preset--shadow--custom);
}

section:nth-child(3) .wp-block-cover .wp-block-cover__inner-container > div {
	position: absolute;
	width: 320px;
	left: 50%;
	top: 25%;
}

@media (max-width: 991px) {
	
/* 	section:nth-child(3) .wp-block-columns {
		flex-direction: column-reverse;
		flex-basis: 0 !important;
	} */
	
		section:nth-child(3) .wp-block-columns .wp-block-column:last-child {
		order: -1;
	}

	section:nth-child(3) .wp-block-cover .wp-block-cover__inner-container > div {
		left: 2rem;
	}
}

/* 
* Steps
*/

section:nth-child(4) {
	background: var(--theme-palette-color-1);
}


section:nth-child(4) .wp-block-heading {
	color: var(--theme-palette-color-7) !important;
}

#steps-columns > * {
	width: 100%;
}

section:nth-child(4) .wp-block-column:first-child > div {
	overflow: hidden;

}

section:nth-child(4) .wp-block-column:first-child > div > * {
	background: var(--theme-palette-color-7);
}

section:nth-child(4) .wp-block-column:first-child > div > * {
	transition: all .3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

section:nth-child(4) .wp-block-column:first-child > div > *.is-active {
	background: rgba(0,0,0,0.2);
	background: var(--theme-palette-color-6);
}

section:nth-child(4) .wp-block-column:first-child > div > *.is-active p:first-child {
	color: var(--theme-palette-color-1);
}

@media (max-width: 991px) {
	section:nth-child(4) .wp-block-column:first-child > div {
		display: flex !important;
		width: 100%;
		overflow-x: auto;
	}

	section:nth-child(4) .wp-block-column:first-child > div > * {
		min-width: 320px;
	}

	section:nth-child(4) .wp-block-column:first-child > div > :first-child {
		border-radius: 2rem 0 0 2rem;
	}

	section:nth-child(4) .wp-block-column:first-child > div > :last-child {
		border-radius: 0 2rem 2rem 0;
	}
}

/* Steps Videos Fade */
.wp-block-group:has(>.wp-block-video) {
	position: relative;
	width: 100%;
}

.wp-block-group:has(>.wp-block-video) > .wp-block-video {
	inset: 0;
	opacity: 0;
	transition: opacity .35s ease;
	pointer-events: none;
}

.wp-block-group:has(>.wp-block-video) > .wp-block-video:not(.is-visible) {
	position: absolute;
}

.wp-block-group:has(>.wp-block-video) > .wp-block-video.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* 
* Motion
*/

/* Cursor */
.blink-cursor:after {
	content: '|';
	opacity: 1;
	display: inline-block;
	color: var(--theme-palette-color-1);
	margin-left: .25rem;
	animation: blink 1.5s step-end infinite;
}

/* UI */
.scale-s {
	transform: scale(.8);
}

section:nth-child(3) .wp-block-cover__inner-container > div {
	transform: scale(.8);
	transition: all .3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

section:nth-child(3) .wp-block-cover__inner-container > div:hover {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07) !important;
}

/* Keyframes */
@keyframes blink {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* Media Queries */

@media (max-width: 1260px) {
	.hide--on-xl {
		display: none;
	}
	.flex-col--on-xl {
		flex-direction: column !important;
	}
	.flex-col-r--on-xl {
		flex-direction: column-reverse !important;
	}
	.wp-block-heading {
		font-size: calc(var(--theme-font-size) * .9);
	}
}

@media (max-width: 991px) {
	.hide--on-l {
		display: none;
	}
	.flex-col--on-l {
		flex-direction: column !important;
	}
	.flex-col-r--on-l {
		flex-direction: column-reverse !important;
	}
	.wp-block-heading {
		font-size: calc(var(--theme-font-size) * .85);
	}
}

@media (max-width: 767px) {
	.hide--on-m {
		display: none;
	}
	section > * {
		padding: 0 !important;
	}

	.flex-col-r--on-m {
		flex-direction: column-reverse !important;
	}
	.wp-block-heading {
		font-size: calc(var(--theme-font-size) * .8);
	}

	#cta .wp-block-heading {
		text-align: center;
	}

	#cta .wp-block-buttons {
		align-self: center;
	}
}