/*
Theme Name: IP School Divi Child
Theme URI: https://ipschool.com.br/
Description: Tema filho da IP School para Divi e Divi Builder 5, com modal de campanha Black November.
Author: IP School
Version: 1.4.3
Template: Divi
Text Domain: ipschool-divi-child
*/

:root {
	--ipschool-blue: #1d70b7;
	--ipschool-blue-dark: #155c98;
	--ipschool-ink: #171719;
}

.ipschool-bn[hidden] {
	display: none !important;
}

.ipschool-bn {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgb(0 0 0 / 78%);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.ipschool-bn,
.ipschool-bn * {
	box-sizing: border-box;
}

.ipschool-bn__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: min(670px, 100%);
	max-height: min(720px, calc(100vh - 48px));
	max-height: min(720px, calc(100dvh - 48px));
	min-height: 0;
	margin: 0;
	border: 1px solid rgb(255 255 255 / 32%);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 30px 100px rgb(0 0 0 / 38%);
	overflow: hidden;
	animation: ipschool-bn-enter 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.ipschool-bn__art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 238px;
	padding: 34px 48px 30px;
	background:
		radial-gradient(ellipse at 92% 8%, rgb(29 112 183 / 38%), transparent 38%),
		radial-gradient(ellipse at 0% 100%, rgb(29 112 183 / 20%), transparent 42%),
		linear-gradient(130deg, #080809 0%, #151518 58%, #09090a 100%);
	color: #fff;
	overflow: hidden;
}

.ipschool-bn__art::before,
.ipschool-bn__art::after {
	position: absolute;
	content: "";
	border: 1px solid rgb(68 190 227 / 42%);
	border-radius: 50%;
	pointer-events: none;
}

.ipschool-bn__art::before {
	width: 320px;
	height: 320px;
	top: -190px;
	right: -70px;
}

.ipschool-bn__art::after {
	width: 190px;
	height: 190px;
	bottom: -145px;
	left: 56%;
}

.ipschool-bn__art-kicker,
.ipschool-bn__art-title,
.ipschool-bn__art-brand {
	position: relative;
	z-index: 1;
	margin: 0;
	color: inherit;
}

.ipschool-bn__art-kicker {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ipschool-bn__art-title {
	max-width: 100%;
	font-size: clamp(42px, 8vw, 66px);
	font-weight: 900;
	letter-spacing: -0.06em;
	line-height: 0.88;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.ipschool-bn__art-title span {
	display: block;
	color: #44bee3;
}

.ipschool-bn__art-brand {
	margin-top: 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.24em;
}

.ipschool-bn__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 34px 48px 40px;
	color: var(--ipschool-ink);
}

.ipschool-bn__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	color: var(--ipschool-blue-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.ipschool-bn__eyebrow::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ipschool-blue);
	content: "";
}

.ipschool-bn__title {
	margin: 0 0 16px;
	color: var(--ipschool-ink);
	font-size: clamp(27px, 4vw, 36px);
	font-weight: 750;
	letter-spacing: -0.045em;
	line-height: 1.12;
}

.ipschool-bn__description {
	margin: 0 0 24px;
	color: #536174;
	font-size: 16px;
	line-height: 1.65;
}

.ipschool-bn__cta {
	display: flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 13px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ipschool-blue);
	box-shadow: 0 8px 20px rgb(29 112 183 / 24%);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ipschool-bn__cta:hover {
	transform: translateY(-2px);
	background: var(--ipschool-blue-dark);
	box-shadow: 0 11px 22px rgb(29 112 183 / 32%);
	color: #fff !important;
}

.ipschool-bn__cta:focus-visible,
.ipschool-bn__close:focus-visible {
	outline: 3px solid #44bee3;
	outline-offset: 4px;
}

.ipschool-bn__cta-arrow {
	font-size: 20px;
	line-height: 1;
}

.ipschool-bn__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	border: 1px solid rgb(255 255 255 / 35%);
	border-radius: 50%;
	background: rgb(13 13 15 / 70%);
	box-shadow: 0 0 0 3px rgb(29 112 183 / 65%), 0 4px 14px rgb(0 0 0 / 25%);
	color: #fff;
	cursor: pointer;
	font: 400 26px/1 Arial, sans-serif;
}

.ipschool-bn-is-open {
	overflow: hidden;
}

@keyframes ipschool-bn-enter {
	from {
		transform: translateY(12px) scale(0.985);
		opacity: 0;
	}

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

@media (max-width: 680px) {
	.ipschool-bn {
		align-items: center;
		padding: 16px;
		overflow-y: auto;
	}

	.ipschool-bn__dialog {
		width: min(460px, 100%);
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		min-height: 0;
		border-radius: 18px;
		overflow-y: auto;
	}

	.ipschool-bn__art {
		min-height: 190px;
		padding: 28px 28px 24px;
	}

	.ipschool-bn__art-title {
		font-size: clamp(42px, 11vw, 54px);
	}

	.ipschool-bn__art-brand {
		margin-top: 14px;
	}

	.ipschool-bn__content {
		padding: 28px 26px 30px;
	}

	.ipschool-bn__title {
		font-size: 30px;
	}

	.ipschool-bn__description {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.ipschool-bn__cta {
		width: 100%;
	}

	.ipschool-bn__close {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
	}
}

@media (max-width: 380px) {
	.ipschool-bn {
		padding: 10px;
	}

	.ipschool-bn__dialog {
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
	}

	.ipschool-bn__art {
		min-height: 165px;
		padding: 24px 22px 20px;
	}

	.ipschool-bn__art-title {
		font-size: 40px;
	}

	.ipschool-bn__content {
		padding: 24px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ipschool-bn__dialog,
	.ipschool-bn__cta {
		animation: none;
		transition: none;
	}
}
