/**
 * Public Styles for Aparat Video Plugin
 */

/* Single Video Page */
:root {
	--apart-blue-primary: #0084ff;
	--apart-bg-light-blue: #f0f7ff;
	--apart-border-color: #eef2f6;
}

.single-apart_video .apart-video-single-wrapper {
	max-width: none;
	width: 100%;
	margin: 0 auto;
	padding: 0;
}

.apart-video-main-wrapper {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 30px;
}

/* Main Content (Right Side) */
.apart-video-content-main {
	display: flex;
	flex-direction: column;
}

/* Video Container */
.apart-video-container {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #e3f2fd;
	border:unset ;
	border-radius: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.apart-video-embed-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	border-radius: 15px;
	overflow: hidden;
}

.apart-video-embed-wrapper iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 15px;
	position: absolute;
	top: 0;
	left: 0;
}

.apart-video-play-button {
	width: 80px;
	height: 80px;
	background-color: rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	z-index: 10;
}

.apart-video-h1 {
	font-size: 1.25rem;
	margin: 25px 0 15px 0;
	font-weight: bold;
	color: #333;
}

.apart-video-single-categories {
	margin-top: 15px;
	font-size: 0.9em;
	color: #666;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.apart-video-category-label {
	font-weight: bold;
	margin-left: 5px;
}

.apart-video-single-categories a {
	color: #0073aa;
	text-decoration: none;
	margin-left: 5px;
}

.apart-video-single-categories a:hover {
	color: #005177;
	text-decoration: underline;
}

.apart-video-description {
	margin-top: 0;
	line-height: 1.8;
	color: #555;
}

/* Action Bar */
.apart-video-action-bar {
	display: flex;
	gap: 12px;
	border-bottom: unset;
	padding-bottom: 20px;
	margin-bottom: 25px;
	flex-wrap: wrap;
	align-items: center;
	width: 38%;
}

/* Desktop specific styles */
@media (min-width: 769px) {
	.apart-video-action-bar {
		width: 44%;
	}
}

.apart-video-action-bar .apart-video-btn-action {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
}

.border-raduis-us .col-inner {
	border-radius: 13px 116px 86px 12px !important;
}

.apart-video-btn-action {
	padding: 10px 16px;
	border-radius: 25px;
	background: #E6E6E6;
	border: none;
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-decoration: none;
	color: #000000;
	transition: all 0.3s ease;
	font-weight: unset;
	white-space: nowrap;
	height: 2.1rem;
	margin: 0px !important;
}

.apart-video-btn-action:hover {
	background: #f5f5f5;
	border: none;
	color: #333;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apart-video-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	display: block;
}

.apart-video-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* فقط SVG قلب قرمز شود، نه کل باکس */
.apart-video-like-btn.liked .apart-video-like-icon,
.apart-video-like-btn.liked .apart-video-like-icon img {
	filter: brightness(0) saturate(100%) invert(15%) sepia(94%) saturate(7158%) hue-rotate(350deg) brightness(95%) contrast(118%) !important;
}

.apart-video-like-btn {
	background: #E6E6E6;
	border: none;
	color: #000000;
}

.apart-video-like-btn.liked {
	background: #ffebee !important;
	border: 1px solid #f44336 !important;
}

.apart-video-like-btn:hover {
	background: #f5f5f5;
	border: none;
}

.apart-video-like-btn.liked:hover {
	background: #ffcdd2 !important;
	border: 1px solid #f44336 !important;
}



/* Share Dropdown */
.apart-video-share-dropdown {
	position: relative;
}

.apart-video-share-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 150px;
	z-index: 100;
}

.apart-video-share-dropdown:hover .apart-video-share-menu {
	display: block;
}

.apart-video-share-item {
	display: block;
	padding: 10px 15px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #eee;
	transition: background 0.3s ease;
}

.apart-video-share-item:last-child {
	border-bottom: none;
}

.apart-video-share-item:hover {
	background: #f5f5f5;
	color: #333;
	text-decoration: none;
}

/* Comments Section */
.apart-video-comments-section {
	margin-top: unset;
	padding-top: unset;
	border-top: unset;
}

.apart-video-comment-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 49px;
}

.apart-video-comment-header h3 {
	color: #164282;
	font-size: 22px;
}

h3#comments,
h3.comments-title.uppercase {
	display: none;
}

.apart-video-submit-comment-btn-action {
	border: 3px solid #6a6a6a;
	background: #fff;
	color: #000000;
	height: 3rem;
	border-radius: 12px;
	width: 12rem;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
}

/* Avatar */
img.avatar.avatar-32.photo {
	border-radius: 50%;
	width: 40px !important;
	height: 40px !important;
}

/* Mobile Fixed Comment Button */
.apart-video-mobile-comment-fixed {
	display: none;
}

@media (max-width: 768px) {
	.apart-video-mobile-comment-fixed {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #fff;
		padding: 15px;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
		z-index: 9999;
		justify-content: center;
		align-items: center;
		border-top: 1.5px solid #6a6a6a;
	}
	
	.apart-video-mobile-comment-title {
		font-size: 13px;
		color: #000000;
		font-weight: 900;
		line-height: 1.5;
		width: 100%;
		margin: 0;
	}
	
	.apart-video-submit-comment-btn-action {
		display: none !important;
	}
	
	div#comments {
		margin-top: 37px;
	}
	
	.apart-video-comment-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 18px;
	}
	
	.comment-author.vcard {
		display: flex;
		flex-direction: column;
	}
	
	span.says {
		display: none;
	}
	
	/* Hide text on action buttons in mobile, keep only icons */
	.apart-video-action-bar .apart-video-btn-action {
		padding: 10px !important;
		min-width: auto !important;
		width: auto !important;
		flex: 0 0 auto !important;
		gap: 0 !important;
		font-size: 0 !important;
	}
	
	/* Restore icon size */
	.apart-video-action-bar .apart-video-btn-action .apart-video-icon {
		margin: 0 !important;
		flex-shrink: 0;
		width: 16px !important;
		height: 16px !important;
		font-size: 16px !important;
	}
	
	/* Keep like count visible */
	.apart-video-like-count {
		font-size: 13px !important;
		margin-right: 4px;
		display: inline-block !important;
	}
	
	/* Hide text in comments button - wrap text in span for better control */
	.apart-video-action-bar a[href="#comments"] {
		font-size: 0 !important;
	}
	
	/* Hide text in download button */
	.apart-video-action-bar .apart-video-download-btn {
		font-size: 0 !important;
	}
	
	/* Hide text in share button */
	.apart-video-share-btn {
		font-size: 0 !important;
	}
}

button.apart-video-mobile-comment-btn {
	font-size: 14px;
	font-weight: 900;
	line-height: 16px;
	border-style: solid;
	border-width: 2px 2px 2px 2px;
	border-radius: 15px 15px 15px 15px;
	border-color: #0084ff;
	background: transparent;
	width: 8rem;
}

@media (max-width: 768px) {
	.apart-video-mobile-comment-btn {
		border: none;
		padding: 10px 0px;
	}
}

.apart-video-comments-section .comment-list,
.apart-video-comments-section ol.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

ol.commentlist {
	padding: 0px !important;
}

.apart-video-comments-section .comment,
.apart-video-comments-section li.comment,
.apart-video-comments-section .comment-inner,
.apart-video-comments-section article.comment-inner {
	background-color: unset;
	border-radius: 15px;
	padding: 13px;
	padding-top: 9px;
	margin-bottom: 15px;
	position: relative;
	list-style: none;
	border: none;
	box-shadow: unset;
	font-weight: 700;
}

.apart-video-comments-section .comment.admin,
.apart-video-comments-section .comment.bypostauthor,
.apart-video-comments-section li.comment.bypostauthor,
.apart-video-comments-section article.comment-inner.bypostauthor {
	margin-right: unset;
	border: none;
	border-right: none;
	background-color: #ffffff;
	box-shadow: 2px 2px 30px 0 #CCCCCC40;
	border-top-left-radius: 98px;
	border-left: 4px solid #e1e1e1;
}

.apart-video-comments-section ul li {
	background: #f6f6f6 !important;
}

.apart-video-comments-section .children {
	list-style: none;
	padding: 0px;
	margin: 0px;
	margin-top: 26px;
	margin-bottom: -15px;
}

.apart-video-comments-section .children .comment,
.apart-video-comments-section .children .comment-inner {
	margin-right: 0;
	border: none;
	box-shadow: unset;
}

.apart-video-comments-section .comment-meta,
.apart-video-comments-section .commentmetadata {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #92c7ff !important;
	font-weight: 600 !important;
	margin-bottom: 10px;
	position: relative;
	text-decoration: none !important;
}

.comment-meta.commentmetadata a {
	text-decoration: none;
	color: #003E80;
	font-size: 11px;
}

.comment-meta.commentmetadata a {
	text-decoration: none;
	color: #003E80;
	font-size: 11px;
}

.apart-video-comments-section .comment-author {
	font-weight: 400 !important;
	color: #003E80;
	margin-bottom: 5px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.apart-video-comments-section .comment-author a {
	color: #003E80;
	text-decoration: none;
	font-style: normal;
	font-weight: 700 !important;
}

.apart-video-comments-section .comment-author a:hover {
	text-decoration: underline;
}

.apart-video-comments-section .comment-date,
.apart-video-comments-section .comment-time,
.apart-video-comments-section .commentmetadata time,
.apart-video-comments-section time {
	color: #aaa;
	font-weight: normal;
	font-size: 0.7rem;
	position: absolute;
	top: 30px;
	left: 0;
}

.apart-video-comments-section .comment-content,
.apart-video-comments-section .comment-content p {
	font-size: 0.9rem;
	color: #333;
	line-height: 1.6;
	margin-bottom: 10px;
	margin-top: 0;
}

.apart-video-comments-section .comment-content p:last-child {
	margin-bottom: 0;
}

.apart-video-comments-section .comment-reply-link,
.apart-video-comments-section .reply a,
.apart-video-comments-section .reply {
	color: var(--apart-blue-primary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: bold;
}

.apart-video-comments-section .comment-reply-link:hover,
.apart-video-comments-section .reply a:hover {
	text-decoration: underline;
}

/* ویرایش و پاسخ در پایین سمت چپ */
.apart-video-comments-section .commentmetadata,
.apart-video-comments-section .comment-meta {
	position: relative;
	margin-top: 15px;
	margin-bottom: 0;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 15px;
}

.apart-video-comments-section .edit-link,
.apart-video-comments-section .reply {
	display: inline-block;
	margin: 0;
}

.apart-video-comments-section .edit-link a,
.apart-video-comments-section .reply a {
	color: var(--apart-blue-primary);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: bold;
}

.apart-video-comments-section .edit-link a:hover,
.apart-video-comments-section .reply a:hover {
	text-decoration: underline;
}

.apart-video-comments-section .comment-form,
.apart-video-comments-section #commentform,
.apart-video-comments-section form.comment-form {
	margin-top: 30px;
	padding: 20px;
	background: #fff;
	border: unset;
	border-radius: 15px;
	display: block !important;
	color: black;
	box-shadow: 0 0 13px -8px silver;
}

.apart-video-comments-section .comment-form textarea,
.apart-video-comments-section #commentform textarea,
.apart-video-comments-section form.comment-form textarea,
.apart-video-comments-section #comment {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	resize: vertical;
	min-height: 120px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.apart-video-comments-section .comment-form input[type="text"],
.apart-video-comments-section .comment-form input[type="email"],
.apart-video-comments-section .comment-form input[type="url"],
.apart-video-comments-section #commentform input[type="text"],
.apart-video-comments-section #commentform input[type="email"],
.apart-video-comments-section #commentform input[type="url"],
.apart-video-comments-section form.comment-form input[type="text"],
.apart-video-comments-section form.comment-form input[type="email"],
.apart-video-comments-section form.comment-form input[type="url"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 15px;
	box-sizing: border-box;
}

.apart-video-comments-section .comment-form .form-submit,
.apart-video-comments-section #commentform .form-submit,
.apart-video-comments-section form.comment-form .form-submit {
	margin-top: 15px;
}

.apart-video-comments-section .comment-form .submit,
.apart-video-comments-section #commentform .submit,
.apart-video-comments-section #submit,
.apart-video-comments-section form.comment-form .submit {
	background: var(--apart-blue-primary);
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease;
	font-size: 1rem;
}

.apart-video-comments-section .comment-form .submit:hover,
.apart-video-comments-section #commentform .submit:hover,
.apart-video-comments-section #submit:hover,
.apart-video-comments-section form.comment-form .submit:hover {
	background: #005177;
}

.apart-video-comments-section .comment-form .form-allowed-tags,
.apart-video-comments-section .comment-form .comment-notes {
	font-size: 0.85rem;
	color: #999;
	margin-bottom: 15px;
}

.apart-video-comments-section .comment-form .required {
	color: #d63638;
}

#comments .comment-respond {
	background-color: rgba(0, 0, 0, .05);
	margin-top: 15px;
	padding: 15px 25px 1px;
	border-radius: 17px;
}

/* Hide original comment form box on page (we استفاده از پاپاپ می‌کنیم) */
.apart-video-comments-section .comment-respond,
.apart-video-comments-section form.comment-form,
.apart-video-comments-section #commentform {
	display: none !important;
}

/* Modal Styles */
.apart-video-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.apart-video-modal.active {
	display: flex;
}

.apart-video-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(2px);
}

.apart-video-modal-content {
	position: relative;
	background: #fff;
	border-radius: 15px;
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 10001;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: apart-video-modal-fade-in 0.3s ease;
}

@keyframes apart-video-modal-fade-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.apart-video-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.apart-video-modal-header h3 {
	margin: 0;
	font-size: 1.2rem;
	color: #333;
}

.apart-video-modal-close {
	background: none;
	border: none;
	font-size: 2rem;
	color: #999;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.apart-video-modal-close:hover {
	color: #333;
}

.apart-video-modal-body {
	padding: 20px;
}

.apart-video-comment-form-group {
	margin-bottom: 20px;
}

.apart-video-comment-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 0.9rem;
}

.apart-video-comment-form-group input,
.apart-video-comment-form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.9rem;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

.apart-video-comment-form-group input:focus,
.apart-video-comment-form-group textarea:focus {
	outline: none;
	border-color: var(--apart-blue-primary);
}

.apart-video-comment-form-group textarea {
	resize: vertical;
	min-height: 120px;
}

/* Comment Form Inside Modal - Base Visual Styling */
.apart-video-modal-body .comment-respond {
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: none;
}

.apart-video-modal-body .comment-form p {
	margin: 0;
}

.apart-video-modal-body .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #164282;
}

.apart-video-modal-body .comment-form input[type="text"],
.apart-video-modal-body .comment-form input[type="email"],
.apart-video-modal-body .comment-form input[type="url"],
.apart-video-modal-body #commentform input[type="text"],
.apart-video-modal-body #commentform input[type="email"],
.apart-video-modal-body #commentform input[type="url"],
.apart-video-modal-body .comment-form textarea,
.apart-video-modal-body #commentform textarea {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #dde3ee;
	background: #f8f9fc;
	padding: 10px 12px;
	font-size: 0.9rem;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apart-video-modal-body .comment-form input[type="text"]:focus,
.apart-video-modal-body .comment-form input[type="email"]:focus,
.apart-video-modal-body .comment-form input[type="url"]:focus,
.apart-video-modal-body #commentform input[type="text"]:focus,
.apart-video-modal-body #commentform input[type="email"]:focus,
.apart-video-modal-body #commentform input[type="url"]:focus,
.apart-video-modal-body .comment-form textarea:focus,
.apart-video-modal-body #commentform textarea:focus {
	outline: none;
	border-color: #0084ff;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.12);
}

.apart-video-modal-body .comment-form .form-submit,
.apart-video-modal-body #commentform .form-submit {
	margin-top: 10px;
	text-align: left;
}

/* استایل مودال روی دسکتاپ */
.apart-video-modal-content {
	position: relative;
	background: #fff;
	border-radius: 15px;
	max-width: 390px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 10001;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: apart-video-modal-fade-in 0.3s ease;
}

p.comment-notes {
	display: none !important;
}

.apart-video-modal-body .comment-form textarea,
.apart-video-modal-body #commentform textarea {
	min-height: 100px;
	resize: vertical;
	line-height: 1.7;
	height: 99px;
}

.apart-video-modal-body .comment-form,
.apart-video-modal-body #commentform,
.apart-video-modal-body form.comment-form {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
}

.apart-video-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: unset;
	padding: 8px 12px;
}

.apart-video-modal-header h3 {
	margin: 0;
	font-size: 16px;
	color: #000000;
}

.apart-video-modal-close {
	background: none;
	border: none;
	font-size: 30px;
	color: #164b88;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.comment-form-cookies-consent label {
	font-size: 11px !important;
}

p.comment-form-cookies-consent {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
}

.apart-video-modal-body .comment-form .submit,
.apart-video-modal-body #commentform .submit {
	background: #0084ff;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 10px 28px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
	width: 100%;
}

/* Toast message after successful comment */
.apart-video-comment-toast {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #23a55a;
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	z-index: 11000;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.apart-video-comment-toast.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}

/* Sidebar (Left Side) */
.apart-video-sidebar {
	display: flex;
	flex-direction: column;
	gap: 25px;
	margin-top: -32px;
	width: 22rem;
	box-sizing: border-box;
}

.apart-video-sidebar .apart-video-promo-card {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box;
}

/* Mobile-specific layout for related videos / comments / banner order */
.apart-video-related-mobile,
.apart-video-promo-mobile {
	display: none;
}

@media (max-width: 768px) {
	/* Show mobile-specific blocks inside main column */
	.apart-video-related-mobile,
	.apart-video-promo-mobile {
		display: block;
	}

	/* Hide sidebar equivalents on mobile */
	.apart-video-sidebar .apart-video-related-section,
	.apart-video-sidebar .apart-video-articles-section,
	.apart-video-sidebar .apart-video-promo-card {
		display: none;
	}
}

@media (min-width: 769px) {
	/* اطمینان از این‌که نسخه موبایل بنر روی دسکتاپ دیده نشود */
	.apart-video-promo-mobile {
		display: none !important;
	}
}

/* Desktop: make related videos + articles move با هم (بنر بالا ثابت) */
@media (min-width: 901px) {
	.apart-video-sidebar-sticky {
		position: sticky;
		top: 100px;
	}
}

/* Promo Card */
.apart-video-promo-card {
	position: relative;
	width: 100% !important;
	max-width: 100% !important;
	display: block;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box;
}

.apart-video-promo-card img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto;
	border-radius: 15px;
	display: block;
	box-sizing: border-box;
}

.apart-video-banner-link {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.apart-video-banner-link img {
	width: 100% !important;
	max-width: 100% !important;
	height: auto;
	border-radius: 15px;
	display: block;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.apart-video-banner-link:hover img {
	opacity: 0.9;
}


.apart-video-articles-section {
	box-shadow: 0 0 26px -9px #c0c0c0b3;
	border-radius: 16px;
	padding: 15px;
}

.apart-video-related-section {
	box-shadow: 0 0 26px -9px #c0c0c0b3;
	border-radius: 16px;
	padding: 15px;
	margin-bottom: 56px;
}

.apart-video-section-title {
	color: #003E80;
	font-size: 19px;
	font-weight: bold;
	margin-bottom: 15px;
	display: block;
}

/* Related Videos & Articles - Exact HTML Style */
.apart-video-related-item,
.apart-video-article-item {
	border: 2px solid #E6E6E6;
	border-radius: 15px;
	padding: 12px;
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	align-items: center;
	background: #fff;
}

.apart-video-related-link,
.apart-video-article-link {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	width: 100%;
	align-items: center;
}

.apart-video-related-thumbnail,
.apart-video-article-thumbnail {
	width: 85px;
	height: 75px;
	background-color: #eee;
	border-radius: 10px;
	flex-shrink: 0;
	overflow: hidden;
	position: relative;
}

.apart-video-related-thumbnail img,
.apart-video-article-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apart-video-related-duration {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.75em;
}

.apart-video-related-content,
.apart-video-article-content {
	flex: 1;
}

.apart-video-related-content b,
.apart-video-article-content b {
	font-size: 0.85rem;
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}

.apart-video-related-content span,
.apart-video-article-content span {
	font-size: 0.75rem;
	color: #999;
	display: block;
}

.apart-video-placeholder-thumbnail {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.apart-video-placeholder-thumbnail::before {
	content: '📹';
	font-size: 1.5em;
	opacity: 0.3;
}

.apart-video-placeholder-thumbnail {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.apart-video-placeholder-thumbnail::before {
	content: '📹';
	font-size: 2em;
	opacity: 0.3;
}

.apart-video-article-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 5px 0;
}

.apart-video-article-title {
	font-size: 0.9em;
	margin: 0 0 5px 0;
	color: #333;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.apart-video-article-time {
	font-size: 0.8em;
	color: #999;
}

/* Action Buttons */
.apart-video-action-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.apart-video-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 20px;
	color: #333;
	text-decoration: none;
	font-size: 0.9em;
	cursor: pointer;
	transition: all 0.3s ease;
}

.apart-video-action-btn:hover {
	background: #e8e8e8;
	border-color: #bbb;
	color: #333;
	text-decoration: none;
}

.apart-video-share-dropdown {
	position: relative;
}

.apart-video-share-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 5px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	min-width: 150px;
	z-index: 100;
}

.apart-video-share-dropdown:hover .apart-video-share-menu {
	display: block;
}

.apart-video-share-item {
	display: block;
	padding: 10px 15px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #eee;
	transition: background 0.3s ease;
}

.apart-video-share-item:last-child {
	border-bottom: none;
}

.apart-video-share-item:hover {
	background: #f5f5f5;
	color: #333;
	text-decoration: none;
}

.apart-video-like-icon {
	font-size: 1.1em;
}

.apart-video-like-count {
	font-weight: 600;
}

/* Comments Section */
.apart-video-comments-section {

}

.apart-video-comments-section .comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
a.comment-reply-link {
	color: #003e80 !important;
	font-weight: 500 !important;
	font-size: 12px !important;
	border: 1px solid #003e80;
	padding: 3px;
	border-radius: 6px;
}
.apart-video-comments-section .comment {
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

.apart-video-comments-section .comment:last-child {
	border-bottom: none;
}

.apart-video-comments-section .comment-author {
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}

.apart-video-comments-section .comment-content {
	color: #555;
	line-height: 1.6;
	margin-bottom: 10px;
}

.apart-video-comments-section .comment-reply-link {
	color: #0073aa;
	text-decoration: none;
	font-size: 0.9em;
}

.apart-video-comments-section .comment-reply-link:hover {
	text-decoration: underline;
}

.apart-video-comments-section .comment-form {
	margin-top: 30px;
}

.apart-video-comments-section .comment-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	resize: vertical;
}

.apart-video-comments-section .comment-form input[type="text"],
.apart-video-comments-section .comment-form input[type="email"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 15px;
}

.apart-video-comments-section .comment-form .submit {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.3s ease;
}

.apart-video-comments-section .comment-form .submit:hover {
	background: #005177;
}

/* Archive Page */
.apart-video-archive-header {
	margin-bottom: 40px;
	text-align: center;
}

.apart-video-archive-title {
	font-size: 2.5em;
	margin-bottom: 30px;
	color: #333;
}

/* Filters */
.apart-video-filters {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.apart-video-filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.apart-video-filter-group label {
	font-size: 0.9em;
	color: #666;
	font-weight: 500;
}

.apart-video-filter-select {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
	background: #fff;
	cursor: pointer;
	min-width: 200px;
	transition: border-color 0.3s ease;
}

.apart-video-filter-select:hover {
	border-color: #999;
}

.apart-video-filter-select:focus {
	outline: none;
	border-color: #0073aa;
}

/* Video Grid - 4 columns per row */
.apart-video-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 25px;
	margin-bottom: 50px;
}

/* Video Item */
.apart-video-item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: none;
	border-radius: 13px;
	overflow: visible;
	transition: transform 0.3s ease;
	box-shadow: 0 0 12px -3px silver;
	padding: 19px;
}

.apart-video-item:hover {
	transform: translateY(-3px);
}

.apart-video-item-link {
	text-decoration: none !important;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	cursor: pointer;
}

.apart-video-item-link:hover {
	text-decoration: none;
}

.apart-video-thumbnail {
	width: 100%;
	overflow: hidden;
	position: relative;
	background: #000;
	aspect-ratio: 16 / 9;
	border-radius: 13px;
	margin-bottom: 12px;
}

.apart-video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.apart-video-item:hover .apart-video-thumbnail img {
	transform: scale(1.03);
}

/* Duration Badge */
.apart-video-duration {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #E6E6E6;
	color: #525251;
	padding: 1px 8px;
	border-radius: 18px;
	font-size: 0.85em;
	font-weight: 500;
	z-index: 2;
	height: 1.4rem;
}

/* Play Icon */
.apart-video-play-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 1;
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
	z-index: 2;
}

.apart-video-play-icon img {
	width: 70px;
	height: 70px;
	display: block;
}

.apart-video-item:hover .apart-video-play-icon {
	opacity: 0.9;
	transform: translate(-50%, -50%) scale(1.1);
}

/* Title Overlay - Only for handle */
.apart-video-title-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
	padding: 12px;
	z-index: 2;
}

.apart-video-handle {
	color: #fff;
	font-size: 0.85em;
	opacity: 0.95;
}

.apart-video-no-thumbnail {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
}

.apart-video-placeholder {
	opacity: 0.3;
}

.apart-video-content {
	padding: 12px 0 0 0;
}

.apart-video-title {
	margin: 0;
	font-size: 0.95em;
	color: #333;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

.apart-video-item:hover .apart-video-title {
	color: #0073aa;
}

/* Pagination */
.apart-video-archive-content .wp-pagenavi,
.apart-video-archive-content .pagination,
.apart-video-archive-content nav.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 40px;
}

.apart-video-archive-content .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
	min-width: 40px;
}

.apart-video-archive-content .page-numbers:hover {
	background: #f5f5f5;
	border-color: #999;
}

.apart-video-archive-content .page-numbers.current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.apart-video-archive-content .page-numbers.prev,
.apart-video-archive-content .page-numbers.next {
	padding: 8px 16px;
}

/* Responsive */
@media (max-width: 1200px) {
	.apart-video-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 900px) {
	.apart-video-main-wrapper {
		grid-template-columns: 1fr;
	}
	
	.apart-video-sidebar {
		order: 2;
		width: auto !important;
		max-width: 100%;
	}
	
	.apart-video-content-main {
		order: 1;
	}
}

@media (max-width: 768px) {
	.apart-video-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
	
	.apart-video-filters {
		justify-content: center;
	}
	
	.apart-video-filter-select {
		min-width: 150px;
	}
	
	.apart-video-h1 {
		font-size: 1.1em;
	}
	
	.apart-video-action-bar {
		flex-wrap: wrap;
		gap: 8px;
		width: auto !important;
		max-width: 100%;
	}
	
	.apart-video-btn-action {
		font-size: 0.8em;
		padding: 8px 16px;
		flex: 1;
		min-width: 0;
	}
	
	.apart-video-promo-card {
		position: relative;
		width: 100% !important;
		max-width: 100% !important;
		display: block;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: border-box;
	}
	
	.apart-video-promo-card img {
		width: 100% !important;
		max-width: 100% !important;
		height: auto;
		box-sizing: border-box;
	}
	
	.apart-video-banner-link {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	.apart-video-banner-link img {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box;
	}
	
	
	.apart-video-sidebar {
		width: auto !important;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.apart-video-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.apart-video-filters {
		flex-direction: column;
		align-items: stretch;
	}
	
	.apart-video-filter-select {
		min-width: 100%;
	}
	
	.apart-video-single-wrapper {
		display: flex;
        justify-content: center;
	}
	
	.apart-video-action-bar {
		display: flex;
		gap: 8px;
		width: auto;
		max-width: 100%;
	}
	
	.apart-video-btn-action {
		flex: 1;
		min-width: 0;
		justify-content: center;
	}
	
	.apart-video-sidebar {
		width: auto !important;
		max-width: 100%;
	}
}