/* Mobile First Styles */
.epc-carousel-container {
	position: relative;
	padding: 20px 0;
	width: 100%;
	overflow: hidden;
}

.epc-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	margin: 10px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}

.epc-card:hover {
	transform: translateY(-5px);
}

.epc-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
}

.epc-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.epc-placeholder {
	width: 100%;
	height: 100%;
	background: #eee;
}

.epc-card-content {
	padding: 15px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.epc-card-content h3 {
	margin: 0 0 10px;
	font-size: 1.2rem;
	line-height: 1.4;
}

.epc-card-excerpt {
	font-size: 0.9rem;
	color: #666;
	margin-bottom: 15px;
	flex-grow: 1;
}

.epc-read-more {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	align-self: flex-start;
	transition: background 0.3s ease;
}

.epc-read-more:hover {
	background: #005177;
}

/* Modal Styles */
.epc-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

.epc-modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.epc-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
}

.epc-modal-container {
	position: relative;
	background: #fff;
	width: 90%;
	max-width: 800px;
	max-height: 90vh;
	border-radius: 8px;
	overflow-y: auto;
	z-index: 1;
	padding: 20px;
}

.epc-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.epc-modal-header h2 {
	margin: 0;
	font-size: 1.5rem;
}

.epc-modal-close {
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
}

.epc-modal-featured-image {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
	border-radius: 4px;
}

.epc-modal-content {
	line-height: 1.6;
}

/* Loader */
.epc-loader {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 2s linear infinite;
	margin: 50px auto;
	display: none;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
	.epc-modal-container {
		width: 70%;
	}
}
