/* ==========================================================================
   Patient Care Home BD - YouTube Video Showcase Section & Lightbox Modal
   ========================================================================== */

.pch-videos-section {
	width: 100%;
	background-color: var(--pch-surface, #f8fbfd);
	padding: clamp(65px, 8.5vw, 110px) 0;
	box-sizing: border-box;
	position: relative;
}

.pch-videos-section * {
	box-sizing: border-box;
}

.pch-videos-container {
	max-width: 1340px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 3.5vw, 28px);
	padding-right: clamp(16px, 3.5vw, 28px);
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */
.pch-videos-header {
	max-width: 720px;
	margin-bottom: clamp(32px, 4.5vw, 48px);
	text-align: left;
}

.pch-videos-badge {
	display: inline-block;
	color: var(--pch-primary, #2596be);
	font-size: clamp(12px, 1.2vw, 13.5px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 12px;
}

.pch-videos-title {
	font-family: inherit;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.2;
	margin: 0 0 14px 0;
	letter-spacing: -0.4px;
}

.pch-videos-desc {
	font-family: inherit;
	font-size: clamp(15px, 1.6vw, 16.5px);
	color: var(--pch-text-muted, #64748b);
	line-height: 1.65;
	margin: 0;
}

/* --------------------------------------------------------------------------
   3-Column Video Card Grid
   -------------------------------------------------------------------------- */
.pch-videos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(20px, 2.5vw, 32px);
	width: 100%;
}

.pch-video-card {
	background-color: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(11, 21, 39, 0.08);
	box-shadow: 0 10px 30px rgba(11, 21, 39, 0.05);
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pch-video-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(11, 21, 39, 0.12);
}

/* Thumbnail Area */
.pch-video-thumb-wrap {
	position: relative;
	width: 100%;
	padding-top: 58%; /* 16:9 ratio */
	background-color: #0b1527;
	overflow: hidden;
	cursor: pointer;
}

.pch-video-thumb-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.pch-video-thumb-wrap:hover .pch-video-thumb-img {
	transform: scale(1.06);
}

/* Circular Red Play Button */
.pch-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background-color: var(--pch-emergency-red, #e11d48);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(225, 29, 72, 0.45);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.3s ease;
	border: none;
	cursor: pointer;
	z-index: 2;
	padding: 0;
}

.pch-video-play-btn svg {
	margin-left: 3px; /* visual optical alignment for play triangle */
}

.pch-video-thumb-wrap:hover .pch-video-play-btn,
.pch-video-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.14);
	background-color: var(--pch-emergency-hover, #be123c);
	box-shadow: 0 12px 30px rgba(225, 29, 72, 0.6);
}

/* Card Body Content */
.pch-video-content {
	padding: clamp(22px, 2.5vw, 28px);
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.pch-video-title {
	font-family: inherit;
	font-size: clamp(18px, 1.8vw, 20px);
	font-weight: 700;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.3;
	margin: 0 0 10px 0;
	letter-spacing: -0.2px;
}

.pch-video-desc {
	font-family: inherit;
	font-size: 14px;
	color: var(--pch-text-muted, #64748b);
	line-height: 1.55;
	margin: 0 0 18px 0;
	flex-grow: 1;
}

.pch-video-action-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pch-primary, #2596be);
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	transition: color 0.2s ease;
}

.pch-video-action-link:hover {
	color: var(--pch-navy-dark, #0b1527);
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Section Footer / View All CTA
   -------------------------------------------------------------------------- */
.pch-videos-footer {
	margin-top: clamp(38px, 5.5vw, 54px);
	text-align: center;
}

.pch-videos-btn-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 50px;
	background-color: var(--pch-primary, #2596be);
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 6px 18px rgba(37, 150, 190, 0.32);
}

.pch-videos-btn-all:hover {
	background-color: #1b7a9c;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(37, 150, 190, 0.42);
}

/* --------------------------------------------------------------------------
   Interactive Video Lightbox Modal
   -------------------------------------------------------------------------- */
.pch-video-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(11, 21, 39, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 20px;
	box-sizing: border-box;
}

.pch-video-modal.is-active {
	opacity: 1;
	visibility: visible;
}

.pch-video-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 920px;
	background-color: #000000;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
	transform: scale(0.92);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pch-video-modal.is-active .pch-video-modal-dialog {
	transform: scale(1);
}

.pch-video-iframe-wrap {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background-color: #000000;
}

.pch-video-iframe-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.pch-video-modal-close {
	position: absolute;
	top: -48px;
	right: 0;
	background: none;
	border: none;
	color: #ffffff;
	cursor: pointer;
	font-size: 32px;
	line-height: 1;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, color 0.2s ease;
	opacity: 0.9;
	padding: 0;
}

.pch-video-modal-close:hover {
	color: var(--pch-emergency-red, #e11d48);
	transform: scale(1.15) rotate(90deg);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.pch-videos-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.pch-videos-grid {
		grid-template-columns: 1fr;
		max-width: 440px;
		margin: 0 auto;
	}

	.pch-videos-header {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.pch-video-modal-close {
		top: -40px;
		right: 4px;
	}
}
