.why-quranera-video-wrapper {
	min-height: auto !important; /* Allow it to shrink to the video size */
	background: transparent !important;
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}
#why-quranera-content {
	width: 85%;
}

#why-quranera-video-holder {
	background: transparent !important;
	display: flex;
	justify-content: center;
	align-items: center;
}

.why-quranera-video-element {
	/* display: block; */
	object-fit: cover; /* Ensures video fills the space assigned to it */
	max-height: 100%;
	height: auto;
	background-color: transparent !important;
	/* This removes the tiny 1-2px gap browsers sometimes add below videos */
	vertical-align: middle;
	border-radius: 12px; /* Matches rounded-xl class */
}

.why-quranera-play-btn {
	width: 70px;
	height: 70px;
	background: #faa106;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.why-quranera-content:hover .why-quranera-play-btn {
	transform: scale(1.1);
}

#why-quranera-loading,
#why-quranera-error {
	min-height: 250px; /* Should match the wrapper's height/min-height */
	width: 100%;
}

/* Loading Spinner */
.why-quranera-loader {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #faa106;
	border-radius: 50%;
	animation: why-quranera-spin 1s linear infinite;
}

.retry-button {
	font-size: 18px;
	font-weight: 600;
	color: white;
	background-color: #faa106;
}

@keyframes why-quranera-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media (max-width: 480px) {
	.why-quranera-video-wrapper {
		border-radius: 20px;
	}
	.why-quranera-play-btn {
		width: 55px;
		height: 55px;
	}
	#why-quranera-content {
		width: 100%;
	}
}
