/**
 * Past Basilei Cards for Elementor
 * Regal portrait card styling inspired by the supplied reference design.
 */

.gpb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 32px;
	row-gap: 45px;
	align-items: start;
	padding: 0;
}

.gpb-card {
	--gpb-purple: #3d1954;
	--gpb-purple-deep: #2a0f3d;
	--gpb-cream: #faf5f0;
	--gpb-gold: #d4af37;
	--gpb-gold-dark: #b8960e;
	--gpb-radius: 28px;
	--gpb-content-gap: 28px;
	position: relative;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	padding: 18px;
	overflow: visible;
	background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 40%), linear-gradient(135deg, var(--gpb-purple), var(--gpb-purple-deep));
	border-radius: calc(var(--gpb-radius) + 10px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gpb-card:hover {
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.gpb-card::before {
	position: absolute;
	inset: 0;
	opacity: 0.08;
	background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.6px, transparent 0.6px);
	background-size: 6px 6px;
	content: "";
	pointer-events: none;
	border-radius: calc(var(--gpb-radius) + 10px);
}

.gpb-card::after {
	position: absolute;
	inset: 3px;
	border: 2px solid rgba(212, 175, 55, 0.25);
	border-radius: calc(var(--gpb-radius) + 8px);
	content: "";
	pointer-events: none;
	z-index: 0;
}

.gpb-card__panel {
	position: relative;
	z-index: 2;
	overflow: hidden;
	min-height: 100%;
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 50%, rgba(255, 245, 220, 0.05) 100%), var(--gpb-cream);
	border: 4px solid var(--gpb-gold);
	border-radius: var(--gpb-radius);
	box-shadow:
		inset 0 0 0 1px rgba(255, 250, 230, 0.95),
		inset 0 0 0 2px rgba(212, 175, 55, 0.15),
		inset 0 0 15px rgba(212, 175, 55, 0.08),
		0 10px 25px rgba(18, 5, 25, 0.3);
}

.gpb-card__top-decoration {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 26px 24px 20px;
	color: var(--gpb-gold);
	position: relative;
}

.gpb-card__top-decoration::before,
.gpb-card__top-decoration::after {
	position: absolute;
	content: "";
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gpb-gold), transparent);
	opacity: 0.3;
}

.gpb-card__top-decoration::before {
	top: 0;
}

.gpb-card__top-decoration::after {
	bottom: 0;
}

.gpb-card__line {
	position: relative;
	flex: 1 1 auto;
	height: 2px;
	max-width: 130px;
	background: linear-gradient(90deg, transparent, var(--gpb-gold), transparent);
}

.gpb-card__line:first-child::after,
.gpb-card__line:last-child::before {
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	background: var(--gpb-gold);
	content: "";
	transform: translateY(-50%) rotate(45deg);
	box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.gpb-card__line:first-child::after {
	right: -4px;
}

.gpb-card__line:last-child::before {
	left: -4px;
}

.gpb-card__emblem {
	display: flex;
	flex: 0 0 72px;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	color: var(--gpb-gold);
	position: relative;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.gpb-card__emblem::before {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
	border-radius: 50%;
	content: "";
}

.gpb-card__emblem-image {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	position: relative;
	z-index: 1;
}

.gpb-card__default-emblem {
	display: block;
	width: 72px;
	height: auto;
	position: relative;
	z-index: 1;
}

.gpb-card__portrait {
	position: relative;
	height: 380px;
	overflow: hidden;
	background: linear-gradient(135deg, #6b6158, #4a4238);
	border-radius: 28px;
	box-shadow:
		inset 0 0 0 2px rgba(255, 250, 230, 0.7),
		inset 0 0 0 3px rgba(212, 175, 55, 0.3),
		0 8px 20px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(212, 175, 55, 0.1);
}



.gpb-card__image,
.gpb-card__portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	position: relative;
	z-index: 0;
}

.gpb-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: linear-gradient(135deg, #7a6d5c, #4a4238);
	color: rgba(255, 250, 238, 0.9);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(4rem, 16vw, 7.5rem);
	font-weight: 300;
	letter-spacing: -2px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gpb-card__content {
	padding: var(--gpb-content-gap) 22px 16px;
	text-align: center;
	position: relative;
}

.gpb-card__content::before {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 140px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gpb-gold), transparent);
	content: "";
}

.gpb-card__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--gpb-gold);
	position: relative;
}

.gpb-card__ornament span {
	display: block;
	width: 85px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gpb-gold), transparent);
}

.gpb-card__ornament i {
	font-size: 12px;
	font-style: normal;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gpb-card__ornament--upper {
	margin-bottom: 16px;
}

.gpb-card__name {
	margin: 0;
	color: #2a0f3d;
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.04em;
	text-transform: none;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.gpb-card__ornament--lower {
	margin: 18px 0 14px;
}

.gpb-card__ornament--lower span {
	width: 95px;
}

.gpb-card__term {
	margin: 0;
	color: var(--gpb-gold-dark);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 2.8vw, 1.85rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gpb-card__footer-decoration {
	margin: 18px -12px 0;
	color: var(--gpb-gold);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.gpb-card__laurel {
	display: block;
	width: 100%;
	height: auto;
	max-height: 60px;
}

.gpb-editor-message {
	padding: 16px 18px;
	border-left: 4px solid var(--gpb-gold);
	background: linear-gradient(90deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
	color: #3a2e24;
	font-size: 13px;
	line-height: 1.6;
	border-radius: 4px;
}

@media (max-width: 1024px) {
	.gpb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 28px;
		row-gap: 40px;
	}

	.gpb-card {
		max-width: 400px;
	}
}

@media (max-width: 767px) {
	.gpb-grid {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 36px;
	}

	.gpb-card {
		max-width: 100%;
		padding: 14px;
	}

	.gpb-card__top-decoration {
		padding-top: 22px;
		gap: 14px;
	}

	.gpb-card__portrait {
		margin-right: 18px;
		margin-left: 18px;
		height: 320px;
	}

	.gpb-card__name {
		font-size: clamp(1.5rem, 3vw, 2rem);
	}

	.gpb-card__term {
		font-size: clamp(1.2rem, 2.4vw, 1.6rem);
	}
}