/* ==========================================================================
   Video count above the grid
   ========================================================================== */
.opa90-video-count {
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #40788D;
	text-align: center;
	margin: 0 0 2em;
}

/* ==========================================================================
   Grid
   ========================================================================== */
.opa90-video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 32px;
}

/* ==========================================================================
   Card
   ========================================================================== */
.opa90-video-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.opa90-video-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.opa90-video-card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}
.opa90-video-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.opa90-video-card:hover .opa90-video-card-thumb img {
	transform: scale(1.05);
}
.opa90-video-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #40788D, #68C4EF);
}

/* Play icon overlay (white circle + teal triangle SVG as background). */
.opa90-video-card-thumb::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	background: rgba(255,255,255,0.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2340788D' d='M8 5v14l11-7z'/></svg>") no-repeat center center;
	background-size: 28px 28px;
	border-radius: 50%;
	opacity: 0.9;
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.opa90-video-card:hover .opa90-video-card-thumb::after {
	transform: scale(1.12);
	opacity: 1;
}

.opa90-video-card-duration {
	position: absolute;
	right: 10px;
	bottom: 10px;
	background: rgba(0,0,0,0.82);
	color: #fff;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 0.75em;
	font-weight: 600;
	z-index: 2;
}

.opa90-video-card-title {
	font-family: "Montserrat", sans-serif !important;
	font-weight: 600 !important;
	font-size: 1.0625em !important;
	line-height: 1.35 !important;
	text-align: center;
	padding: 18px 18px 6px;
	margin: 0 !important;
}
.opa90-video-card-title a {
	color: #34788D !important;
	text-decoration: none;
}
.opa90-video-card-title a:hover { color: #68C4EF !important; }

.opa90-video-card-excerpt {
	padding: 6px 18px 18px;
	margin: 0;
	color: #555;
	font-size: 0.9375em;
	line-height: 1.5;
	text-align: center;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.opa90-video-pagination { margin-top: 3em; text-align: center; }
.opa90-video-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #34788D;
	text-decoration: none;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
}
.opa90-video-pagination .page-numbers:hover {
	background: #f8f9fa;
	border-color: #40788D;
}
.opa90-video-pagination .page-numbers.current {
	background: #40788D;
	color: #fff;
	border-color: #40788D;
}

.opa90-video-empty {
	text-align: center;
	color: #666;
	font-size: 1.125em;
	padding: 3em 0;
}
