/* NDTKala Podcast Slider - Professional Industrial Style */

:root {
	--ndtkala-primary: #1e3a5f;
	--ndtkala-accent: #e67e22;
	--ndtkala-card-bg: #ffffff;
	--ndtkala-text: #1a1a1a;
	--ndtkala-muted: #6b7280;
	--ndtkala-border: #e5e7eb;
	--ndtkala-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
	--ndtkala-radius: 12px;
}

.ndtkala-podcast-wrapper {
	direction: rtl;
	position: relative;
	padding: 10px 0 40px;
	font-family: inherit;
}

/* Card */
.ndtkala-podcast-card {
	background: var(--ndtkala-card-bg);
	border-radius: var(--ndtkala-radius);
	overflow: hidden;
	box-shadow: var(--ndtkala-shadow);
	border: 1px solid var(--ndtkala-border);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ndtkala-podcast-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(30, 58, 95, 0.14);
}

/* Image / Media */
.ndtkala-card-image {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.ndtkala-media-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.ndtkala-card-image img.ndtkala-thumb,
.ndtkala-card-image .ndtkala-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}

.ndtkala-podcast-card:hover .ndtkala-card-image img.ndtkala-thumb {
	transform: scale(1.04);
}

.ndtkala-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.7);
}

/* ===== Play Button - Centered & Small ===== */
.ndtkala-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border: 2px solid rgba(255, 255, 255, 0.85);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	padding: 0;
	opacity: 0.9;
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.ndtkala-play-btn svg {
	width: 16px;
	height: 16px;
	margin-left: 2px; /* optical center for play triangle */
}

.ndtkala-podcast-card:hover .ndtkala-play-btn {
	opacity: 1;
	background: rgba(230, 126, 34, 0.9);
	border-color: #fff;
	transform: translate(-50%, -50%) scale(1.08);
}

.ndtkala-play-btn:hover {
	background: var(--ndtkala-accent) !important;
	border-color: #fff;
	transform: translate(-50%, -50%) scale(1.12) !important;
}

/* Inline Video Player */
.ndtkala-media-container.is-playing {
	background: #000;
}

.ndtkala-inline-video,
.ndtkala-inline-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background: #000;
}

.ndtkala-close-video {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.ndtkala-close-video:hover {
	background: rgba(230, 126, 34, 0.9);
}

/* Content */
.ndtkala-card-content {
	padding: 16px 16px 14px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ndtkala-duration {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: var(--ndtkala-accent);
	background: rgba(230, 126, 34, 0.1);
	padding: 2px 9px;
	border-radius: 20px;
	margin-bottom: 8px;
	width: fit-content;
}

.ndtkala-card-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--ndtkala-primary);
}

.ndtkala-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.ndtkala-card-title a:hover {
	color: var(--ndtkala-accent);
}

.ndtkala-card-excerpt {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ndtkala-muted);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer */
.ndtkala-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid var(--ndtkala-border);
}

.ndtkala-more-btn {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ndtkala-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.ndtkala-more-btn:hover {
	color: var(--ndtkala-accent);
}

.ndtkala-external {
	color: var(--ndtkala-muted);
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.ndtkala-external:hover {
	color: var(--ndtkala-accent);
}

/* Swiper Navigation */
.ndtkala-podcast-wrapper .swiper-button-next,
.ndtkala-podcast-wrapper .swiper-button-prev {
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
	color: var(--ndtkala-primary);
	transition: all 0.2s;
}

.ndtkala-podcast-wrapper .swiper-button-next:after,
.ndtkala-podcast-wrapper .swiper-button-prev:after {
	font-size: 15px;
	font-weight: bold;
}

.ndtkala-podcast-wrapper .swiper-button-next:hover,
.ndtkala-podcast-wrapper .swiper-button-prev:hover {
	background: var(--ndtkala-primary);
	color: #fff;
}

.ndtkala-podcast-wrapper .swiper-button-disabled {
	opacity: 0.35;
}

/* Pagination */
.ndtkala-podcast-wrapper .swiper-pagination {
	bottom: 0 !important;
}

.ndtkala-podcast-wrapper .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #cbd5e1;
	opacity: 1;
	transition: all 0.3s;
}

.ndtkala-podcast-wrapper .swiper-pagination-bullet-active {
	background: var(--ndtkala-accent);
	width: 20px;
	border-radius: 4px;
}

/* Empty state */
.ndtkala-no-podcast {
	text-align: center;
	padding: 40px;
	color: var(--ndtkala-muted);
	font-size: 15px;
}

/* Responsive */
@media (max-width: 640px) {
	.ndtkala-card-title {
		font-size: 14px;
	}

	.ndtkala-play-btn {
		width: 40px;
		height: 40px;
	}

	.ndtkala-play-btn svg {
		width: 14px;
		height: 14px;
	}

	.ndtkala-podcast-wrapper .swiper-button-next,
	.ndtkala-podcast-wrapper .swiper-button-prev {
		display: none;
	}
}
