/* ==========================================================================
   CCSOL Redesign — /portfolio/ page (v1.6.0)
   Dark navy design matching /updates/. All rules are scoped to
   .ccsol-pf (or body.ccsol-redesign-portfolio) so nothing leaks onto
   other pages. The theme header/footer/menu are untouched.
   Fresh ccsol-pf-* classes/ids only — no theme id is reused (Site Fixes
   hides #featured-affiliates site-wide; that id is NOT used here).
   ========================================================================== */

/* --- Page-level overrides (theme is light; this page is dark) --- */
body.ccsol-redesign-portfolio {
	background: #060d1a;
}

/* The theme prints its own breadcrumbs above the page content; this page
   renders its own breadcrumb inside the dark hero instead. */
body.ccsol-redesign-portfolio .ccsol-breadcrumbs {
	display: none !important;
}

/* --- Wrapper --- */
.ccsol-pf {
	background:
		radial-gradient(900px 480px at 85% -60px, rgba(30, 144, 255, .16), transparent 60%),
		radial-gradient(700px 420px at -10% 320px, rgba(30, 144, 255, .10), transparent 60%),
		linear-gradient(180deg, #071224 0%, #060d1a 34%, #050b16 100%);
	color: #c3d0e8;
	font-family: inherit;
	overflow-x: clip;
}

.ccsol-pf-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.ccsol-pf a {
	text-decoration: none;
}

.ccsol-pf a:focus-visible,
.ccsol-pf button:focus-visible {
	outline: 2px solid #4da3ff;
	outline-offset: 2px;
}

.ccsol-pf-eyebrow {
	display: block;
	color: #4da3ff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.ccsol-pf-section-title {
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	margin: 0;
}

.ccsol-pf-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.ccsol-pf-section-link {
	color: #4da3ff;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.ccsol-pf-section-link:hover {
	color: #7dbdff;
}

/* --- Buttons --- */
.ccsol-pf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(180deg, #2f8bff, #1a6fe0);
	border: none;
	border-radius: 9px;
	color: #fff;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	padding: 13px 22px;
	box-shadow: 0 6px 22px rgba(30, 127, 255, .35);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ccsol-pf-btn:hover {
	background: linear-gradient(180deg, #4da0ff, #2f7fe8);
	box-shadow: 0 10px 28px rgba(30, 127, 255, .5);
	transform: translateY(-1px);
	color: #fff;
}

.ccsol-pf-btn-gold {
	background: linear-gradient(180deg, #ffc53d, #f0a500);
	color: #1a1200;
	box-shadow: 0 6px 22px rgba(240, 165, 0, .35);
}

.ccsol-pf-btn-gold:hover {
	background: linear-gradient(180deg, #ffd166, #f7b500);
	box-shadow: 0 10px 28px rgba(240, 165, 0, .5);
	color: #1a1200;
}

/* --- Hero --- */
.ccsol-pf-hero {
	padding: 54px 0 44px;
}

.ccsol-pf-crumb {
	color: #8ea3c8;
	font-size: 14px;
	margin-bottom: 18px;
}

.ccsol-pf-crumb a {
	color: #8ea3c8;
}

.ccsol-pf-crumb a:hover {
	color: #fff;
}

.ccsol-pf-crumb span[aria-hidden="true"] {
	margin: 0 8px;
}

.ccsol-pf-crumb span[aria-current="page"] {
	color: #fff;
	font-weight: 600;
}

.ccsol-pf-hero-title {
	color: #fff;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.01em;
	margin: 0 0 16px;
	max-width: 820px;
}

.ccsol-pf-hero-sub {
	color: #a9badd;
	font-size: 17px;
	line-height: 1.65;
	margin: 0 0 28px;
	max-width: 680px;
}

.ccsol-pf-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 34px;
	list-style: none;
	margin: 30px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(77, 163, 255, .18);
}

.ccsol-pf-hero-stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ccsol-pf-stat-num {
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
}

.ccsol-pf-stat-label {
	color: #8ea3c8;
	font-size: 13px;
	line-height: 1.3;
}

/* --- Featured projects (3 large cards) --- */
.ccsol-pf-featured {
	padding: 6px 0 44px;
}

.ccsol-pf-featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ccsol-pf-featured-card,
.ccsol-pf-card {
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #0d1b36, #0a1428);
	border: 1px solid rgba(59, 130, 246, .28);
	border-radius: 14px;
	overflow: hidden;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ccsol-pf-featured-card:hover,
.ccsol-pf-card:hover {
	transform: translateY(-4px);
	border-color: rgba(77, 163, 255, .6);
	box-shadow: 0 16px 38px rgba(2, 100, 220, .28);
}

.ccsol-pf-featured-thumb,
.ccsol-pf-card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0a1730;
}

.ccsol-pf-featured-img,
.ccsol-pf-card-img,
.ccsol-pf-featured-thumb .ccsol-rd-thumb-placeholder,
.ccsol-pf-card-thumb .ccsol-rd-thumb-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ccsol-pf-featured-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: #1a6fe0;
	border-radius: 6px;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .1em;
	padding: 6px 10px;
	text-transform: uppercase;
}

.ccsol-pf-featured-body,
.ccsol-pf-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 18px 18px 20px;
}

.ccsol-pf-featured-cat,
.ccsol-pf-card-cat {
	color: #4da3ff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.ccsol-pf-featured-title,
.ccsol-pf-card-title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 10px;
}

.ccsol-pf-featured-title {
	font-size: 19px;
}

.ccsol-pf-featured-title a,
.ccsol-pf-card-title a {
	color: #fff;
}

.ccsol-pf-featured-title a:hover,
.ccsol-pf-card-title a:hover {
	color: #9cc9ff;
}

.ccsol-pf-featured-excerpt,
.ccsol-pf-card-excerpt {
	color: #a9badd;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
}

/* Clipping lesson (from /updates/ v1.0.1 + v1.0.2): the theme shifts
   h3/p elements left inside cards, and grid card text loses the
   leftmost 1-3px of its first glyphs at the body content-box edge.
   Reset any inherited offset, then inset ALL card text 3px from the
   start so the first glyphs clear the clip edge. */
.ccsol-pf-featured-title,
.ccsol-pf-card-title,
.ccsol-pf-featured-excerpt,
.ccsol-pf-card-excerpt {
	margin-left: 0 !important;
	text-indent: 0 !important;
	position: static !important;
	left: auto !important;
	transform: none !important;
}

.ccsol-pf-featured-cat,
.ccsol-pf-card-cat,
.ccsol-pf-featured-title,
.ccsol-pf-card-title,
.ccsol-pf-featured-excerpt,
.ccsol-pf-card-excerpt {
	padding-left: 3px !important;
}

.ccsol-pf-featured-meta,
.ccsol-pf-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: #8ea3c8;
	font-size: 13px;
	margin-top: auto;
}

.ccsol-pf-card-link {
	color: #4da3ff;
	font-size: 14px;
	font-weight: 700;
	margin-top: 12px;
}

.ccsol-pf-card-link:hover {
	color: #7dbdff;
}

/* --- Thumbnail placeholder (posts without a featured image) --- */
/* Reuses the updates placeholder markup class (ccsol-rd-thumb-placeholder),
   restated here so this page never depends on updates.css loading. */
.ccsol-pf .ccsol-rd-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(420px 220px at 50% 30%, rgba(47, 139, 255, .35), transparent 70%), linear-gradient(150deg, #10264f, #081226);
}

.ccsol-pf .ccsol-rd-thumb-placeholder img {
	width: 46%;
	max-width: 210px;
	height: auto;
	object-fit: contain;
	opacity: .95;
}

/* --- Filters + project grid --- */
.ccsol-pf-projects {
	padding: 6px 0 48px;
	scroll-margin-top: 90px;
}

.ccsol-pf-projects .ccsol-pf-section-title {
	margin-bottom: 16px;
}

.ccsol-pf-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 32px;
}

.ccsol-pf-pill {
	background: rgba(13, 27, 54, .8);
	border: 1px solid rgba(77, 163, 255, .35);
	border-radius: 999px;
	color: #c3d0e8;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	padding: 11px 18px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ccsol-pf-pill:hover {
	border-color: rgba(77, 163, 255, .8);
	color: #fff;
}

.ccsol-pf-pill.is-active {
	background: #1a6fe0;
	border-color: #1a6fe0;
	color: #fff;
	box-shadow: 0 6px 18px rgba(30, 127, 255, .4);
}

.ccsol-pf-pill-count {
	opacity: .75;
	font-weight: 600;
}

.ccsol-pf-grid-head {
	margin-bottom: 22px;
}

.ccsol-pf-showing {
	color: #8ea3c8;
	font-size: 14px;
	margin: 0;
	white-space: nowrap;
}

.ccsol-pf-grid-wrap {
	position: relative;
}

.ccsol-pf-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	transition: opacity .2s ease;
}

.ccsol-pf-grid-wrap.is-loading .ccsol-pf-grid {
	opacity: .35;
	pointer-events: none;
}

.ccsol-pf-grid-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #0d1b36;
	border: 1px solid rgba(77, 163, 255, .45);
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 22px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.ccsol-pf-grid-wrap.is-loading .ccsol-pf-grid-loading {
	display: block;
}

.ccsol-pf-empty {
	grid-column: 1 / -1;
	color: #a9badd;
	font-size: 16px;
	text-align: center;
	padding: 48px 20px;
	background: rgba(13, 27, 54, .6);
	border: 1px solid rgba(59, 130, 246, .28);
	border-radius: 14px;
}

/* --- Pagination --- */
.ccsol-pf-pagination {
	margin-top: 32px;
}

.ccsol-pf-pagination-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ccsol-pf-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(13, 27, 54, .8);
	border: 1px solid rgba(77, 163, 255, .35);
	border-radius: 9px;
	color: #c3d0e8;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	min-width: 40px;
	justify-content: center;
	padding: 11px 13px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

a.ccsol-pf-page-btn:hover {
	border-color: rgba(77, 163, 255, .8);
	color: #fff;
}

.ccsol-pf-page-current {
	background: #1a6fe0;
	border-color: #1a6fe0;
	color: #fff;
}

.ccsol-pf-page-ellipsis {
	color: #8ea3c8;
	padding: 0 4px;
}

/* --- Our Approach --- */
.ccsol-pf-approach {
	padding: 10px 0 48px;
}

.ccsol-pf-approach-title {
	margin-bottom: 10px;
}

.ccsol-pf-approach-sub {
	color: #a9badd;
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0 0 26px;
	max-width: 640px;
}

.ccsol-pf-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ccsol-pf-step {
	background: linear-gradient(180deg, #0d1b36, #0a1428);
	border: 1px solid rgba(59, 130, 246, .28);
	border-radius: 14px;
	padding: 22px 20px;
}

.ccsol-pf-step-num {
	display: block;
	color: #4da3ff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 12px;
}

.ccsol-pf-step-title {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.ccsol-pf-step-text {
	color: #a9badd;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* --- Client Feedback --- */
.ccsol-pf-feedback {
	padding: 6px 0 48px;
}

.ccsol-pf-feedback .ccsol-pf-section-title {
	margin-bottom: 22px;
}

.ccsol-pf-feedback-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ccsol-pf-quote-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: linear-gradient(180deg, #0d1b36, #0a1428);
	border: 1px solid rgba(59, 130, 246, .28);
	border-radius: 14px;
	padding: 24px 22px;
	margin: 0;
}

.ccsol-pf-quote-stars {
	color: #f5b942;
	font-size: 16px;
	letter-spacing: 2px;
	line-height: 1;
}

.ccsol-pf-quote-text {
	color: #dbe6fa;
	font-size: 15px;
	line-height: 1.65;
	margin: 0;
}

.ccsol-pf-quote-by {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
}

.ccsol-pf-quote-name {
	color: #fff;
	font-size: 14.5px;
	font-weight: 700;
}

.ccsol-pf-quote-meta {
	color: #8ea3c8;
	font-size: 12.5px;
}

/* --- CTA band --- */
.ccsol-pf-cta {
	padding: 6px 0 56px;
}

.ccsol-pf-cta-card {
	text-align: center;
	background: linear-gradient(120deg, #0d1e3f, #0a152c 62%);
	border: 1px solid rgba(59, 130, 246, .32);
	border-radius: 18px;
	padding: 40px 30px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .3);
}

.ccsol-pf-cta-title {
	color: #fff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 10px;
}

.ccsol-pf-cta-sub {
	color: #a9badd;
	font-size: 15.5px;
	line-height: 1.6;
	margin: 0 auto 24px;
	max-width: 620px;
}

/* --- Screen-reader text (fallback if the theme lacks it) --- */
.ccsol-pf .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.ccsol-pf-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ccsol-pf-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ccsol-pf-hero-title {
		font-size: 40px;
	}
}

@media (max-width: 900px) {
	.ccsol-pf-featured-grid,
	.ccsol-pf-feedback-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ccsol-pf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ccsol-pf-hero {
		padding: 38px 0 34px;
	}

	.ccsol-pf-hero-title {
		font-size: 32px;
	}

	.ccsol-pf-hero-sub {
		font-size: 15.5px;
	}

	.ccsol-pf-featured-grid,
	.ccsol-pf-feedback-grid,
	.ccsol-pf-grid,
	.ccsol-pf-steps {
		grid-template-columns: 1fr;
	}

	.ccsol-pf-section-head {
		flex-direction: column;
		gap: 6px;
	}

	.ccsol-pf-cta-title {
		font-size: 23px;
	}
}
