/**
 * Custom Basic Posts Widget Styles
 *
 * @package Development_Plugin
 */

/* Posts Grid */
.custom-basic-posts-grid {
	display: grid;
	width: 100%;
	gap: 20px;
}

/* Post Card */
.custom-basic-post-card {
	background: #F6F6F6;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.custom-basic-post-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Post Image */
.custom-basic-post-image {
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f0f0f0;
	line-height: 0;
	position: relative;
}

.custom-basic-post-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.custom-basic-post-image .wp-post-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.custom-basic-post-image .custom-basic-placeholder-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.custom-basic-post-image a {
	display: block;
	text-decoration: none;
	height: 100%;
	width: 100%;
}

/* Post Video */
.custom-basic-post-image .custom-basic-post-video-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	padding-bottom: 0;
	overflow: hidden;
}

.custom-basic-post-image .custom-basic-post-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Post Content */
.custom-basic-post-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Post Title */
.custom-basic-post-title {
	margin: 0 0 5px 0;
	line-height: 1.3;
	font-size: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-height: calc(1.3em * 3);
}

.custom-basic-post-title a {
	text-decoration: none !important;
	color: #2C5F7C;
	transition: color 0.3s ease;
	display: block;
}

.custom-basic-post-title a:hover {
	text-decoration: underline !important;
}

/* Post Meta */
.custom-basic-post-meta {
	font-size: 0.875rem;
	color: #7A7A7A;
	margin-bottom: 15px;
	line-height: 1.5;
}

.custom-basic-post-meta span {
	display: inline-block;
}

.custom-basic-meta-separator {
	margin: 0 5px;
}

.custom-basic-post-category a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.custom-basic-post-category a:hover {
	color: var(--e-global-color-primary, #77B2CB);
	text-decoration: underline;
}

/* Post Excerpt */
.custom-basic-post-excerpt {
	margin-bottom: 15px;
	line-height: 1.6;
	color: #333;
	flex: 1;
}

/* Read More */
.custom-basic-read-more {
	display: inline-block;
	margin-top: auto;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.custom-basic-read-more:hover {
	text-decoration: underline;
}

/* Pagination */
.custom-basic-posts-pagination {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid var(--e-global-color-primary, #77B2CB);
}

.custom-basic-posts-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.custom-basic-posts-pagination .page-numbers li {
	margin: 0;
}

.custom-basic-posts-pagination .page-numbers a,
.custom-basic-posts-pagination .page-numbers span {
	font-family: var(--e-global-typography-text-font-family, "Roboto", sans-serif);
	font-weight: var(--e-global-typography-text-font-weight, 400);
	font-size: 0.9375rem;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
	color: var(--e-global-color-secondary, #3E4349);
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
	display: inline-block;
}

.custom-basic-posts-pagination .page-numbers a:hover {
	background: var(--e-global-color-primary, #77B2CB);
	color: #fff;
	border-color: var(--e-global-color-primary, #77B2CB);
	text-decoration: none;
}

.custom-basic-posts-pagination .page-numbers .current {
	background: var(--e-global-color-primary, #77B2CB);
	color: #fff;
	border-color: var(--e-global-color-primary, #77B2CB);
	font-weight: var(--e-global-typography-accent-font-weight, 500);
}

.custom-basic-posts-pagination .page-numbers .dots {
	border: none;
	padding: 8px 5px;
}

/* Responsive */
@media (max-width: 768px) {
	.custom-basic-post-image {
		height: 200px;
	}
	
	.custom-basic-post-content {
		padding: 15px;
	}
	
	.custom-basic-posts-pagination .page-numbers {
		gap: 8px;
	}
	
	.custom-basic-posts-pagination .page-numbers a,
	.custom-basic-posts-pagination .page-numbers span {
		padding: 6px 12px;
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.custom-basic-post-image {
		height: 180px;
	}
}

