/* 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;
	display: flex;
	flex-direction: column;
	height: 100%;
}

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

.co-post-thumbnail {
	width: 100%;
}

.co-post-thumbnail a {
	display: block;
	width: 100%;
}

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

.co-post-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.co-post-read-more {
	margin-top: auto;
	align-self: flex-start;
	display: inline-block;
}

.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;
}

/* Image Position Support */
.elementor-widget-container.co-image-pos-left .co-posts-wrapper,
.elementor-widget-container.co-image-pos-left .co-archive-posts-wrapper,
.elementor-widget-container.co-image-pos-right .co-posts-wrapper,
.elementor-widget-container.co-image-pos-right .co-archive-posts-wrapper {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 20px;
}

.co-image-pos-left .co-post-item {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch;
}

.co-image-pos-right .co-post-item {
	display: flex !important;
	flex-direction: row-reverse !important;
	align-items: stretch;
}

.co-image-pos-left .co-post-thumbnail img,
.co-image-pos-right .co-post-thumbnail img {
	width: 100%;
	height: 100%;
	flex: 1 1 auto;
	object-fit: cover;
	display: block;
}

.co-image-pos-left .co-post-thumbnail,
.co-image-pos-right .co-post-thumbnail {
	display: flex;
	flex-direction: column;
}

.co-image-pos-left .co-post-thumbnail a,
.co-image-pos-right .co-post-thumbnail a {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.co-image-pos-left .co-post-content,
.co-image-pos-right .co-post-content {
	flex: 1;
}

@media (max-width: 767px) {
	.co-image-pos-left .co-post-item,
	.co-image-pos-right .co-post-item {
		flex-direction: column !important;
	}
	.co-image-pos-left .co-post-thumbnail,
	.co-image-pos-right .co-post-thumbnail {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

/* 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;
}

/* FAQ Widget */
.co-faq-item {
	overflow: hidden;
}

.co-faq-title {
	cursor: pointer;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.co-faq-title.icon-align-left {
	justify-content: flex-start;
}

.co-faq-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.co-faq-item:not(.active) .co-faq-icon .icon-open {
	display: none;
}

.co-faq-item.active .co-faq-icon .icon-closed {
	display: none;
}

.co-faq-title-text {
	flex: 1;
}

.co-faq-content {
	display: none;
}
