.degree-widget {
	width: min(100%, 580px);
	margin-left: auto;
}

.degree-widget__card {
	position: relative;
	height: 620px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid #dbeafe;
	box-shadow: 0 12px 48px rgba(30,64,175,0.12), 0 2px 8px rgba(30,64,175,0.06);
	overflow: hidden;
}

.degree-widget__top-bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #1d4ed8;
	z-index: 20;
}

.degree-widget__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 4px 12px;
	background: #1d4ed8;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 999px;
	z-index: 20;
	animation: degreeWidgetBadgeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
}

.degree-widget__panel {
	position: absolute;
	inset: 0;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.38s ease;
	animation: degreeWidgetContentFadeIn 0.38s ease-out;
}

.degree-widget__panel.active {
	opacity: 1;
	pointer-events: auto;
}

.degree-widget__header {
	flex-shrink: 0;
}

.degree-widget__header-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #93c5fd;
}

.degree-widget__header-title {
	font-size: 16px;
	font-weight: 900;
	color: #1e293b;
	letter-spacing: -0.01em;
	margin-top: 2px;
}

.degree-widget__header-sub {
	font-size: 11px;
	color: #64748b;
	margin-top: 2px;
}

.degree-widget__count-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	margin-top: 8px;
	animation: degreeWidgetScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s backwards;
}

.degree-widget__count-number {
	font-size: 12px;
	font-weight: 900;
	color: #1d4ed8;
}

.degree-widget__count-label {
	font-size: 9px;
	color: #64748b;
}

.degree-widget__cert-preview {
	height: 176px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	animation: degreeWidgetScaleIn 0.4s ease-out 0.1s backwards;
}

.degree-widget__cert-inner {
	width: 100%;
	height: 100%;
	background: #fff;
	border: 2px solid #bfdbfe;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(30,64,175,0.10);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	padding: 14px 18px;
	animation: degreeWidgetSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
}

.degree-widget__cert-topline {
	position: absolute;
	top: 10px;
	left: 16px;
	right: 16px;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #1d4ed8, #93c5fd);
	transform-origin: left;
	animation: degreeWidgetGrowX 0.45s ease 0.35s both;
}

.degree-widget__cert-seal {
	width: 48px;
	height: 48px;
	border: 2px solid #1d4ed8;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	animation: degreeWidgetRotateIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s backwards;
}

.degree-widget__cert-seal-inner {
	width: 32px;
	height: 32px;
	background: #dbeafe;
	border-radius: 50%;
}

.degree-widget__cert-title {
	font-size: 11px;
	font-family: Georgia, serif;
	color: #1e3a8a;
	font-weight: 600;
	animation: degreeWidgetFadeIn 0.4s ease-out 0.65s backwards;
}

.degree-widget__cert-name {
	margin-top: 8px;
	padding: 4px 12px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 4px;
	animation: degreeWidgetExpandWidth 0.4s ease-out 0.75s backwards;
}

.degree-widget__cert-name-text {
	font-size: 10px;
	font-weight: 800;
	color: #1d4ed8;
}

.degree-widget__cert-lines {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.degree-widget__cert-line {
	height: 1.5px;
	background: #e2e8f0;
	border-radius: 1px;
	animation: degreeWidgetExpandX 0.3s ease-out backwards;
}

.degree-widget__cert-signatures {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.degree-widget__cert-signatures span {
	display: block;
	width: 32px;
	height: 1.5px;
	border-radius: 1px;
	background: #cbd5e1;
	animation: degreeWidgetExpandX 0.3s ease-out backwards;
}

.degree-widget__cert-signatures span:nth-child(1) { animation-delay: .95s; }
.degree-widget__cert-signatures span:nth-child(2) { animation-delay: 1.05s; }
.degree-widget__cert-signatures span:nth-child(3) { animation-delay: 1.15s; }

.degree-widget__cert-check {
	position: absolute;
	bottom: -8px;
	right: -8px;
	width: 32px;
	height: 32px;
	background: #1d4ed8;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(29,78,216,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: degreeWidgetCheckBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
}

.degree-widget__feature-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	flex-shrink: 0;
}

.degree-widget__feature-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 12px;
	animation: degreeWidgetScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.degree-widget__feature-icon {
	font-size: 14px;
}

.degree-widget__feature-label {
	font-size: 10px;
	font-weight: 700;
}

.degree-widget__discipline-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-shrink: 0;
}

.degree-widget__discipline-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	animation: degreeWidgetSlideInLeft 0.4s ease-out backwards;
}

.degree-widget__discipline-icon {
	width: 24px;
	height: 24px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.degree-widget__discipline-name {
	font-size: 11px;
	font-weight: 700;
	color: #334155;
	flex: 1;
}

.degree-widget__discipline-tag {
	font-size: 9px;
	color: #94a3b8;
}

.degree-widget__cta-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	background: #eff6ff;
	border: 1.5px solid #bfdbfe;
	border-radius: 12px;
	flex-shrink: 0;
	animation: degreeWidgetSlideUp 0.4s ease-out backwards;
}

.degree-widget__cta-text {
	font-size: 12px;
	font-weight: 900;
	color: #1d4ed8;
}

.degree-widget__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.degree-widget__dot-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.degree-widget__dot {
	height: 6px;
	width: 6px;
	border-radius: 3px;
	background: #bfdbfe;
	transition: all 0.3s ease;
}

.degree-widget__dot.active {
	width: 28px;
	background: #1d4ed8;
}

.degree-widget__dot-label {
	font-size: 9px;
	font-weight: 600;
	color: #bfdbfe;
	transition: color 0.3s ease;
}

.degree-widget__dot-label.active {
	color: #1d4ed8;
}

@keyframes degreeWidgetBadgeIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }
@keyframes degreeWidgetContentFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes degreeWidgetScaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes degreeWidgetSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes degreeWidgetRotateIn { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0deg); } }
@keyframes degreeWidgetFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes degreeWidgetExpandWidth { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: scaleX(1); } }
@keyframes degreeWidgetExpandX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes degreeWidgetCheckBounce { from { opacity: 0; transform: scale(0) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes degreeWidgetSlideInLeft { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes degreeWidgetGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 921px) {
	.degree-widget {
		width: min(100%, 540px);
		margin: 0 auto;
	}

	.degree-widget__card {
		height: 600px;
	}
}

@media (max-width: 640px) {
	.degree-widget {
		width: 100%;
	}

	.degree-widget__card {
		height: 560px;
	}

	.degree-widget__panel {
		padding: 16px;
	}

	.degree-widget__feature-grid {
		grid-template-columns: 1fr;
	}

	.degree-widget__dots {
		gap: 10px;
	}
}
