/* Play Button Overlay */
.play-button-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(255, 0, 0, 0.8);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.play-button-overlay i {
	color: #fff;
	font-size: 24px;
	margin-left: 5px;
}

/* Masonry Grid */
.grid {
	transition: height 0.4s ease;
}
.grid-item {
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.6s ease;
}
.grid-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.grid-sizer {
	width: calc(33.333% - 30px);
}
@media (max-width: 1199.98px) {
	.grid-sizer,
	.grid-item {
		width: calc(50% - 30px);
	}
}
@media (max-width: 767.98px) {
	.grid-sizer,
	.grid-item {
		width: 100%;
	}
}

/* Grid Content */
.grid-item .course__item-2 {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Image Container & Hover */
.course__thumb-2 {
	position: relative;
	overflow: hidden;
	padding-top: 75%; /* 4:3 Aspect Ratio */
}
.course__thumb-2 img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.grid-item:hover .course__thumb-2 img {
	transform: scale(1.05);
}
.photo-count-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 5px 10px;
	border-radius: 10px;
	font-size: 12px;
	z-index: 2;
}

/* Fancybox Counter */
.fancybox__counter {
	color: #fff;
	font-size: 14px;
	padding: 0 10px;
}

/* Postbox Thumbnail */
.postbox__thumb img {
	width: 100%;
	height: 425px;
	object-fit: cover;
}
.postbox__thumb iframe {
	width: 100%;
	height: 400px;
}
.postbox__slider img {
	width: 100%;
	height: auto;
}
.postbox__text p img {
	width: 100%;
	height: 400px;
}

/* Postbox Navigation */
.postbox-nav {
	position: absolute;
	top: 50%;
	width: 100%;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	z-index: 10;
}
.postbox-slider-button-prev,
.postbox-slider-button-next {
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	padding: 10px;
	cursor: pointer;
}
.postbox-slider-button-prev:hover,
.postbox-slider-button-next:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* Blog Item */
.blog__item {
	margin-bottom: 30px;
}

/* Share Buttons */
.share__buttons {
	margin-top: 20px;
	display: flex;
	gap: 15px;
	align-items: center;
}
.share__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #f1f1f1;
	color: #333;
	transition: background-color 0.3s;
	text-decoration: none;
}
.share__button:hover {
	background-color: #ddd;
}
.share__button i {
	font-size: 18px;
}
.copy__url {
	cursor: pointer;
}
.copy__message {
	display: none;
	margin-left: 10px;
	color: green;
	font-size: 14px;
}

/* Pagination */
.pagination,
.basic-pagination .pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	gap: 5px;
	margin: 40px 0;
}
.page-item {
	list-style: none;
}
.pagination a,
.basic-pagination .page-item .page-link,
.pagination-button {
	display: inline-block;
	padding: 8px 16px;
	background: #f5f5f5;
	color: #333;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
	min-width: 40px;
	text-align: center;
	font-weight: 500;
}
.pagination a:hover,
.basic-pagination .page-link:hover,
.pagination-button:hover:not(.active):not(.disabled) {
	background-color: #e9ecef;
	border-color: #dee2e6;
	color: #0056b3;
}
.pagination .active a,
.basic-pagination .page-item.active .page-link,
.pagination-button.active {
	background-color: #007bff;
	color: #fff;
	border-color: #007bff;
}
.pagination .disabled a,
.basic-pagination .page-item.disabled .page-link,
.pagination-button.disabled {
	color: #6c757d;
	pointer-events: none;
	background-color: #f8f9fa;
	border-color: #ddd;
}
