/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/*Style for Charity Resources*/
.cpt-list-container {
	max-width: 100%;
	margin: 20px 0;
}

.cpt-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.cpt-list-item {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: column;
}

.cpt-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.1);
	border-color: #007cba;
}

.cpt-image-container {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	justify-content: center;
	align-items: center;
}

.cpt-featured-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cpt-list-item:hover .cpt-featured-image {
	transform: scale(1.05);
}

.cpt-placeholder-image {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpt-placeholder-text {
	background: rgba(255,255,255,0.9);
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

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

.cpt-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #333;
}

.cpt-title a {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.3s ease;
}

.cpt-title a:hover {
	color: #007cba;
}

.cpt-external-link {
	font-size: 14px;
	opacity: 0.7;
}

.cpt-description {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 16px;
	flex: 1;
}

.cpt-contact-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #eee;
}

.cpt-contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.cpt-icon {
	font-size: 16px;
	color: #666;
	width: 20px;
	text-align: center;
}

.cpt-link {
	color: #007cba;
	text-decoration: none;
	transition: all 0.3s ease;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cpt-link:hover {
	color: #005a87;
	text-decoration: underline;
}

.cpt-no-results,
.cpt-error {
	padding: 20px;
	text-align: center;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	color: #666;
	font-style: italic;
}

.cpt-error {
	background: #ffeaea;
	border-color: #ffcdd2;
	color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.cpt-list {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}

	.cpt-image-container {
		height: 180px;
	}

	.cpt-content {
		padding: 16px;
	}

	.cpt-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.cpt-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.cpt-image-container {
		height: 160px;
	}
}