/**
 * cDesogns Portfolio widget styles.
 */

.cdpf {
	--cdpf-accent: #00d4ff;
	--cdpf-text: #ffffff;
	--cdpf-bg: #000000;
	--cdpf-content-width: 32%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--cdpf-text);
}

.cdpf-sections {
	display: flex;
	flex-direction: column;
}

.cdpf-section {
	position: relative;
	overflow: hidden;
	background-color: var(--cdpf-bg);
}

.cdpf-section__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.cdpf-section__content {
	flex: 0 0 var(--cdpf-content-width);
	max-width: var(--cdpf-content-width);
	min-width: 0;
}

.cdpf-section__number {
	margin: 0 0 12px;
	font-size: clamp(48px, 6vw, 72px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--cdpf-accent);
}

.cdpf-section__title {
	margin: 0 0 20px;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--cdpf-text);
}

.cdpf-section__description {
	margin: 0 0 28px;
	font-size: clamp(15px, 1.5vw, 17px);
	font-weight: 400;
	line-height: 1.65;
	color: var(--cdpf-text);
	opacity: 0.95;
}

.cdpf-section__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--cdpf-accent);
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cdpf-section__link:hover,
.cdpf-section__link:focus {
	color: var(--cdpf-accent);
	opacity: 0.85;
}

.cdpf-section__link:hover .cdpf-section__link-arrow,
.cdpf-section__link:focus .cdpf-section__link-arrow {
	transform: translateX(4px);
}

.cdpf-section__link-arrow {
	display: inline-block;
	transition: transform 0.2s ease;
}

.cdpf-section__media {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	min-width: 0;
}

.cdpf-section__image {
	flex: 1 1 0;
	min-width: 0;
}

.cdpf-section__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
}

.cdpf-section__swirl {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	pointer-events: none;
}

.cdpf-section__swirl img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: bottom center;
}

@media screen and (max-width: 767px) {
	.cdpf-section__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cdpf .cdpf-section__content {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.cdpf-section__media {
		width: 100%;
		margin-top: 32px;
	}

	.cdpf-section__image img {
		max-height: 280px;
	}
}

@media screen and (max-width: 480px) {
	.cdpf-section__image img {
		max-height: 200px;
	}
}
