/**
 * Second District DR Cards for Elementor v1.1
 * Premium compact purple-and-gold card design.
 */

.sddr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}

.sddr-card__link {
	display: block;
	width: 100%;
	color: inherit;
	text-decoration: none;
}

.sddr-card__link:hover,
.sddr-card__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.sddr-card {
	--sddr-purple: #5a2472;
	--sddr-purple-dark: #3b124d;
	--sddr-gold: #d8b040;
	--sddr-cream: #fffaf0;
	position: relative;
	isolation: isolate;
	display: flex;
	width: 100%;
	min-height: 190px;
	padding: 30px 28px 27px;
	overflow: hidden;
	background:
		radial-gradient(circle at 94% 15%, rgba(216, 176, 64, 0.14), transparent 36%),
		linear-gradient(130deg, var(--sddr-purple) 0%, #62237d 51%, var(--sddr-purple-dark) 100%);
	border: 1px solid rgba(216, 176, 64, 0.68);
	border-radius: 21px;
	box-shadow: 0 12px 29px rgba(42, 10, 54, 0.15);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}



.sddr-card--hover-lift:hover,
.sddr-card__link:hover .sddr-card--hover-lift {
	border-color: rgba(216, 176, 64, 0.92);
	box-shadow: 0 19px 38px rgba(40, 10, 53, 0.23);
	transform: translateY(-4px);
}

.sddr-card__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	text-align: center;
}


.sddr-card__name {
	max-width: 100%;
	margin: 0 0 14px;
	color: var(--sddr-cream);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: clamp(1.6rem, 2.15vw, 1.92rem);
	font-weight: 600;
	line-height: 1.07;
	letter-spacing: -0.025em;
}

.sddr-card__years {
	display: inline-flex;
	align-items: center;
	align-self: center;
	min-height: 31px;
	margin: 0 0 16px;
	padding: 5px 14px 4px;
	background: rgba(216, 176, 64, 0.14);
	border: 1px solid rgba(216, 176, 64, 0.48);
	border-radius: 999px;
	color: var(--sddr-gold);
	font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-size: 1.16rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.045em;
}


.sddr-card__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	color: rgba(255, 250, 240, 0.93);
	font-size: 0.93rem;
	font-weight: 500;
	line-height: 1.25;
}


.sddr-card__separator {
	display: none;
}

.sddr-card__watermark {
	position: absolute;
	top: 50%;
	right: -17px;
	z-index: 1;
	width: 136px;
	height: 136px;
	opacity: 0.12;
	transform: translateY(-50%);
	pointer-events: none;
}

.sddr-card__watermark-image,
.sddr-card__default-watermark {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sddr-card__default-watermark {
	color: var(--sddr-gold);
}

.sddr-card__badge {
	position: absolute;
	top: 18px;
	right: 17px;
	z-index: 3;
	padding: 5px 10px 4px;
	background: var(--sddr-gold);
	border-radius: 999px;
	color: #452057;
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	line-height: 1.15;
	text-transform: uppercase;
}

.sddr-card--current .sddr-card__name {
	max-width: 100%;
}

.sddr-editor-message {
	padding: 14px 16px;
	background: #fff8e8;
	border-left: 4px solid #d8b040;
	color: #35223c;
	font-size: 13px;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.sddr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.sddr-grid {
		grid-template-columns: 1fr;
	}

	.sddr-card {
		min-height: 174px;
		padding: 27px 23px 24px;
	}

	.sddr-card::after {
		left: 23px;
	}
}
