/* CoElementor Styles */

/* Archive Posts & Posts Widget */
.co-archive-posts-wrapper,
.co-posts-wrapper {
	gap: 20px;
}

.co-post-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	transition: transform 0.3s ease;
}

.co-post-item:hover {
	transform: translateY(-5px);
}

.co-post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.co-post-content {
	padding: 20px;
}

.co-post-title {
	margin-top: 0;
	margin-bottom: 10px;
}

.co-post-title a {
	text-decoration: none;
	color: inherit;
}

.co-post-excerpt {
	margin-bottom: 15px;
	color: #666;
}

.co-pagination {
	margin-top: 30px;
	text-align: center;
}

.co-pagination a,
.co-pagination span {
	display: inline-block;
	padding: 8px 15px;
	margin: 0 5px;
	background: #f5f5f5;
	color: #333;
	border-radius: 4px;
	text-decoration: none;
}

.co-pagination .current {
	background: #333;
	color: #fff;
}

/* Portfolio Widget */
.co-portfolio-filter {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
	text-align: center;
}

.co-portfolio-filter li {
	display: inline-block;
	margin: 0 10px;
	cursor: pointer;
	font-weight: 500;
	padding-bottom: 5px;
	border-bottom: 2px solid transparent;
	transition: all 0.3s ease;
}

.co-portfolio-filter li:hover,
.co-portfolio-filter li.active {
	color: #333;
	border-bottom-color: #333;
}

.co-portfolio-grid {
	gap: 20px;
}

.co-portfolio-item {
	transition: opacity 0.3s ease;
}

.co-portfolio-item-inner {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.co-portfolio-item-inner img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.co-portfolio-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.co-portfolio-item-inner:hover img {
	transform: scale(1.1);
}

.co-portfolio-item-inner:hover .co-portfolio-overlay {
	opacity: 1;
}

.co-portfolio-title {
	color: #fff;
	margin-bottom: 10px;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.co-portfolio-link {
	color: #fff;
	text-decoration: none;
	border: 1px solid #fff;
	padding: 5px 15px;
	border-radius: 20px;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.co-portfolio-item-inner:hover .co-portfolio-title,
.co-portfolio-item-inner:hover .co-portfolio-link {
	transform: translateY(0);
}

/* Form Widget */
.co-form-field-group {
	margin-bottom: 20px;
}

.co-form-field-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.co-form-field-group input,
.co-form-field-group textarea,
.co-form-field-group select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
}

.co-form-message {
	margin-top: 15px;
	padding: 15px;
	border-radius: 4px;
	display: none;
}

.co-form-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	display: block;
}

.co-form-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	display: block;
}
