/* [nghe_kinh_thanh] — accordion + iframe KTCGKPV */

.nkt-audio-accordion {
	--nkt-crop: 70px;
	--nkt-height: min(75vh, 720px);
	margin: 10px 0 20px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	background: #fff;
}

.nkt-accordion-toggle {
	position: relative;
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: none;
	background-color: #1b6772;
	background-image: url('nkt-header-bg.png');
	background-size: cover;
	background-position: 55% center;
	background-repeat: no-repeat;
	cursor: pointer;
	text-align: center;
	font: inherit;
	color: inherit;
	overflow: hidden;
	isolation: isolate;
}

.nkt-accordion-toggle::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(27, 103, 114, 0.72);
	transition: background 0.3s ease;
}

.nkt-accordion-toggle:hover::before,
.nkt-accordion-toggle:focus-visible::before {
	background: rgba(122, 17, 13, 0.78);
}

.nkt-accordion-toggle:hover,
.nkt-accordion-toggle:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.nkt-accordion-toggle > * {
	position: relative;
	z-index: 1;
}

@media (min-width: 769px) {
	.nkt-accordion-toggle {
		min-height: 180px;
		padding: 28px 24px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		box-sizing: border-box;
	}
}

.nkt-tieu-de {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-size: 32px;
	font-weight: 700;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
	text-align: center;
}

.nkt-divider {
	display: block;
	width: 60px;
	height: 2px;
	margin: 10px auto 0;
	background: #fff;
}

.nkt-icon {
	display: inline-block;
	margin-top: 8px;
	color: #fff;
	font-size: 16px;
	transition: transform 0.3s ease;
}

.nkt-audio-accordion.is-open .nkt-icon {
	transform: rotate(180deg);
}

.nkt-accordion-panel {
	border-top: 1px solid #e0e0e0;
}

.nkt-iframe-wrap {
	position: relative;
	width: 100%;
	height: var(--nkt-height);
	min-height: 320px;
	overflow: hidden;
	background: #fafafa;
}

.nkt-loading,
.nkt-slow-notice,
.nkt-error {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 2;
	margin: 0;
	padding: 0.75rem 1rem;
	text-align: center;
	font-size: 14px;
	color: #444;
	pointer-events: none;
}

.nkt-loading {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fafafa;
}

.nkt-slow-notice {
	top: 0;
	background: #fff8e6;
	border-bottom: 1px solid #e6d9a8;
}

.nkt-error {
	bottom: 0;
	background: #fff5f5;
	border-top: 1px solid #e8c4c4;
	pointer-events: auto;
}

.nkt-error a {
	color: #8b0000;
	font-weight: 600;
}

.nkt-audio-accordion.is-loaded .nkt-loading,
.nkt-audio-accordion.is-loaded .nkt-slow-notice {
	display: none;
}

.nkt-audio-accordion.has-error .nkt-loading {
	display: none;
}

.nkt-audio-accordion.has-error .nkt-error {
	display: block;
}

.nkt-iframe {
	position: absolute;
	left: 0;
	width: 100%;
	border: none;
	top: calc(-1 * var(--nkt-crop));
	height: calc(100% + var(--nkt-crop));
}

.nkt-audio-accordion.is-crop-zero .nkt-iframe {
	top: 0;
	height: 100%;
}

@media (max-width: 768px) {
	.nkt-accordion-toggle {
		min-height: 152px;
		padding: 10px 16px 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		box-sizing: border-box;
		/* Ảnh chỉ chiếm dải dưới, sát mép đáy — đan sĩ + sóng âm nằm dưới chữ */
		background-size: 100% 62%;
		background-position: center bottom;
		background-repeat: no-repeat;
	}

	.nkt-accordion-toggle::before {
		background: linear-gradient(
			180deg,
			rgba(27, 103, 114, 0.92) 0%,
			rgba(27, 103, 114, 0.85) 34%,
			rgba(27, 103, 114, 0.45) 52%,
			rgba(27, 103, 114, 0.1) 100%
		);
	}

	.nkt-accordion-toggle:hover::before,
	.nkt-accordion-toggle:focus-visible::before {
		background: linear-gradient(
			180deg,
			rgba(122, 17, 13, 0.9) 0%,
			rgba(122, 17, 13, 0.78) 34%,
			rgba(122, 17, 13, 0.42) 52%,
			rgba(122, 17, 13, 0.1) 100%
		);
	}

	.nkt-tieu-de {
		font-size: 24px;
		font-weight: 700;
		line-height: 1.15;
		-webkit-font-smoothing: antialiased;
	}

	.nkt-divider {
		height: 2.5px;
		margin-top: 6px;
	}

	.nkt-icon {
		font-size: 17px;
		margin-top: 4px;
	}

	.nkt-iframe-wrap {
		min-height: 280px;
	}
}
