/*
 * Education - Quote.
 *
 * Read from cp-all-designer education.html:158-200 and
 * css/education.css:307-488.
 *
 * Colour, type, padding, the corners and the spaces between the parts arrive
 * from the Style tab and are not repeated here.
 */

.custom-education-quote {
	--custom-education-quote-from: #16418C;
	--custom-education-quote-to: #0E1E54;
	--custom-education-quote-seam: #0E1E54;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

/* education.css:349-367 — the brand's leaf, outlined, at the top corner and,
   larger and turned about, at the foot corner: the pair frames the panel */
.custom-education-quote .custom-education-quote__leaf {
	position: absolute;
	top: -90px;                            /* education.css:354 (-100.8 capped at -90) */
	right: -70px;                          /* (-72 capped at -70) */
	z-index: 0;
	line-height: 0;
	pointer-events: none;
}

.custom-education-quote .custom-education-quote__leaf--b {
	top: auto;
	right: auto;
	bottom: -190px;                        /* education.css:362 (-201.6 capped at -190) */
	left: -86px;                           /* (-86.4) */
	transform: rotate(180deg);
}

.custom-education-quote .custom-education-quote__leaf svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.custom-education-quote .custom-education-quote__inner {
	position: relative;
	z-index: 1;
}

/* education.css:386-404 — the words on the dark half, the picture the light half */
.custom-education-quote .custom-education-quote__panel {
	--custom-education-quote-pad: 56px;
	--custom-education-quote-pad-top: 56px;
	--custom-education-quote-portrait: 400px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--custom-education-quote-portrait);
	grid-template-areas: "quote portrait" "by portrait";
	align-items: start;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(120deg, var(--custom-education-quote-from) 0%, var(--custom-education-quote-to) 100%);
	box-shadow: 0 34px 80px -20px rgba(22, 65, 140, 0.3);   /* --sh-lg, app.css:161 */
	color: #FFFFFF;
}

.custom-education-quote .custom-education-quote__quote {
	grid-area: quote;
	margin: 0;
	padding: var(--custom-education-quote-pad) 0 0 var(--custom-education-quote-pad);
	border: 0;
	background: none;
	font-style: normal;
	quotes: none;
}

.custom-education-quote .custom-education-quote__quote::before,
.custom-education-quote .custom-education-quote__quote::after {
	content: none;
}

/* education.css:407-411, 424-435 — the picture bleeds to the panel's edges and
   adds no height of its own */
.custom-education-quote .custom-education-quote__portrait {
	position: relative;
	grid-area: portrait;
	align-self: stretch;
}

.custom-education-quote .custom-education-quote__portrait > img {
	object-position: center 12%;
}

/* education.css:416-422 — the seam: the dark half falls into the picture, and closes under it */
.custom-education-quote .custom-education-quote__portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--custom-education-quote-seam) 96%, transparent) 0%, color-mix(in srgb, var(--custom-education-quote-seam) 42%, transparent) 18%, transparent 46%),
		linear-gradient(0deg, color-mix(in srgb, var(--custom-education-quote-seam) 34%, transparent) 0%, transparent 22%);
}

/* the seam is the picture's: a box with nothing in it is white and plain */
.custom-education-quote .custom-education-quote__portrait:empty::after {
	content: none;
}

/* education.css:436-444, app.css:238-251 */
.custom-education-quote .custom-education-quote__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

.custom-education-quote .custom-education-quote__title strong,
.custom-education-quote .custom-education-quote__title b {
	font-weight: 700;
	color: inherit;
}

/* the word set apart: upright, a step larger, its colour written into the line */
.custom-education-quote .custom-education-quote__title em {
	position: relative;
	display: inline-block;
	font-style: normal;
	font-weight: 700;
	font-size: 108%;
}

/* .06em and .16em of a 38px line */
.custom-education-quote .custom-education-quote__title em::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 2px;
	left: 0;
	height: 6px;
	border-radius: 4px;                    /* app.css:250 measures 3px */
	background: currentColor;
	opacity: 0.18;
}

/* education.css:445-449 */
.custom-education-quote .custom-education-quote__text {
	margin-right: 0;
	margin-bottom: 0;
	margin-left: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 300;
	line-height: 1.85;
	letter-spacing: 0;
	text-transform: none;
}

/* education.css:452-460 — the rule starts where the words start and runs to the picture */
.custom-education-quote .custom-education-quote__by {
	display: grid;
	grid-area: by;
	gap: 4px;
	margin-right: 0;
	margin-bottom: 0;
	margin-left: var(--custom-education-quote-pad);
	padding-right: 0;
	padding-bottom: var(--custom-education-quote-pad);
	padding-left: 0;
	border-top-width: 2px;                 /* education.css:459 measures 1px */
	border-top-style: solid;
}

.custom-education-quote .custom-education-quote__name {
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
}

.custom-education-quote .custom-education-quote__where {
	font-family: inherit;
	font-style: normal;
	font-weight: 300;
	line-height: 1.6;
	letter-spacing: 0;
	text-transform: none;
}

/* Elementor's sheet (frontend.min.css, `.elementor img`) comes after the plugin's
   and sets a picture's height to auto and caps its width: a slot's picture says
   its own here, heavily enough to stand */
.custom-education-quote .custom-education-quote__portrait > img {
	height: 100%;
	max-width: none;
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (education.css:368, 469-488, drawn at 1000) */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	/* education.css:368 — the leaves go */
	.custom-education-quote .custom-education-quote__leaf {
		display: none;
	}
	/* the picture leads, the words follow, who said it closes */
	.custom-education-quote .custom-education-quote__panel {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "portrait" "quote" "by";
	}
	.custom-education-quote .custom-education-quote__portrait {
		min-height: 0;
		aspect-ratio: 3 / 2;
	}
	/* the seam turns with it: the dark closes in from the picture's foot */
	.custom-education-quote .custom-education-quote__portrait::after {
		background: linear-gradient(0deg, color-mix(in srgb, var(--custom-education-quote-seam) 96%, transparent) 0%, color-mix(in srgb, var(--custom-education-quote-seam) 30%, transparent) 26%, transparent 62%);
	}
	.custom-education-quote .custom-education-quote__quote {
		padding: var(--custom-education-quote-pad-top) var(--custom-education-quote-pad) 0;
	}
	.custom-education-quote .custom-education-quote__by {
		margin-right: var(--custom-education-quote-pad);
	}
}
