/* =====================================================
   Projects Categories Grid – front-end base styles
   Responsive columns are handled by Elementor's
   add_responsive_control() selectors. This file only
   provides structural defaults and transitions.
   ===================================================== */

.pcg-wrapper {
	width: 100%;
}

.pcg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* overridden by Elementor selectors */
	gap: 0px !important;
}

.pcg-card {
	position: relative;
	height: 350px;           /* overridden by Elementor selectors */
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	display: block;
	border-radius: 0px !important;
}

.pcg-card__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s ease, opacity 0.3s ease;
}

.pcg-card__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	transition: opacity 0.3s ease;
	z-index: 1;
}

.pcg-card__title {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 20px;
	font-family: "Old Standard TT", sans-serif;
	font-size: 30px;
	font-weight: 700;
	color: #ffffff;
	z-index: 2;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	transition: opacity 0.3s ease;
}

/* --------------------------------------------------
   Hover – opacity value injected inline by widget PHP
   -------------------------------------------------- */
.pcg-card:hover .pcg-card__bg {
	transform: scale(1.04);
}

/* --------------------------------------------------
   Mobile stack: single column on phones
   (Elementor responsive selectors take priority when
    the user sets values in the panel; this is the
    safe fallback for non-Elementor contexts)
   -------------------------------------------------- */
@media (max-width: 767px) {
	.pcg-grid {
		grid-template-columns: 1fr !important;
	}

	.pcg-card {
		height: 300px;
	}

	.pcg-card__title {
		font-size: 20px;
		padding: 16px 14px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.pcg-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.pcg-card {
		height: 280px;
	}

	.pcg-card__title {
		font-size: 24px;
	}
}
