/**
 * Custom Kit Premium Grid Stylesheet
 * 
 * High-performance, clean, responsive grid architecture mimicking 
 * a blueprint outline grid layout with infinite horizontal lines.
 */

/* Main Container Wrap - Span full width of screen to allow lines to touch edges */
.custom-kit-grid-container-wrap {
	width: 100%;
	margin: 0;
	padding: 80px 0;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
	position: relative;
	overflow-x: hidden; /* Hide the horizontal line scrollbar overflow */
}

/* Header Styling - Centered with normal margins */
.custom-kit-section-header {
	text-align: center;
	margin-bottom: 60px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.custom-kit-section-label {
	display: block;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 12px;
	font-size: 14px;
	transition: color 0.3s ease;
}

.custom-kit-section-title {
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
	transition: color 0.3s ease;
}

.custom-kit-section-desc {
	line-height: 1.6;
	font-weight: 400;
	margin: 0;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	transition: color 0.3s ease;
}

/* Centered Grid Layout container */
.custom-kit-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	position: relative;
	overflow: visible; /* Let horizontal lines overflow to screen edges */
}

/* Infinite Horizontal Bottom Line on the Grid container itself */
.custom-kit-features-grid::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: -9999px;
	right: -9999px;
	height: 1px;
	background-color: #e5e7eb;
	z-index: 1;
	pointer-events: none;
}

/* Card Styling - Only right borders as defaults */
.custom-kit-grid-item {
	padding: 48px 40px;
	box-sizing: border-box;
	border-right: 1px solid #e5e7eb;
	transition: background-color 0.3s ease;
	position: relative;
	background-color: #ffffff;
}

/* Infinite Horizontal Top Lines on every card cell */
.custom-kit-grid-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: -9999px;
	right: -9999px;
	height: 1px;
	background-color: #e5e7eb;
	z-index: 1;
	pointer-events: none;
}

/* Left border on first item in each row (3-columns layout) */
.custom-kit-grid-item:nth-child(3n+1) {
	border-left: 1px solid #e5e7eb;
}

/* Hover effects - Flat premium visual highlight */
.custom-kit-grid-item:hover {
	background-color: #faf9fe;
}

/* Corner Nodes for grid intersection markers */
.custom-kit-corner {
	position: absolute;
	width: 8px;
	height: 8px;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	z-index: 5;
	pointer-events: none;
}

.corner-tl { top: -4px; left: -4px; }
.corner-tr { top: -4px; right: -4px; }
.corner-bl { bottom: -4px; left: -4px; }
.corner-br { bottom: -4px; right: -4px; }

/* Icon Wrap */
.custom-kit-item-icon-wrapper {
	margin-bottom: 24px;
	display: inline-block;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-kit-grid-item:hover .custom-kit-item-icon-wrapper {
	transform: scale(1.1);
}

/* Card Content Typography */
.custom-kit-item-title {
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px 0;
	letter-spacing: -0.01em;
	transition: color 0.3s ease;
}

.custom-kit-item-desc {
	line-height: 1.5;
	font-weight: 400;
	margin: 0;
	transition: color 0.3s ease;
}

/* Responsiveness */
@media (max-width: 991px) {
	.custom-kit-features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	/* Reset and reapply left borders for 2-columns layout */
	.custom-kit-grid-item {
		border-left: none;
	}
	.custom-kit-grid-item:nth-child(2n+1) {
		border-left: 1px solid #e5e7eb;
	}
	
	.custom-kit-grid-container-wrap {
		padding: 60px 0;
	}
	
	.custom-kit-grid-item {
		padding: 36px 28px;
	}
}

@media (max-width: 600px) {
	.custom-kit-features-grid {
		grid-template-columns: 1fr;
	}
	
	/* Reapply left borders for 1-column layout */
	.custom-kit-grid-item {
		border-left: 1px solid #e5e7eb;
	}
	
	.custom-kit-grid-item {
		padding: 32px 24px;
	}
	
	.custom-kit-section-title {
		font-size: 28px !important;
	}
}

/* ==========================================================================
   Dynamic Services Grid & Cards Design
   ========================================================================== */

.custom-kit-services-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
	box-sizing: border-box;
}

.custom-kit-services-grid {
	display: grid;
	gap: 30px;
	width: 100%;
}

/* Grid columns configurations based on options/attributes */
.services-cols-1 { grid-template-columns: 1fr; }
.services-cols-2 { grid-template-columns: repeat(2, 1fr); }
.services-cols-3 { grid-template-columns: repeat(3, 1fr); }
.services-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card design matching mockups exactly */
.ck-service-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	position: relative;
	box-sizing: border-box;
}

.ck-service-card:hover {
	transform: translateY(-8px);
}

/* Image wrapper */
.ck-service-image-wrapper {
	position: relative;
	width: 100%;
	height: 280px;
	overflow: hidden;
}

.ck-service-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ck-service-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ck-service-card:hover .ck-service-img {
	transform: scale(1.08);
}

/* Absolute positioned Icon Badge */
.ck-service-icon-badge {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 2;
	pointer-events: none;
	padding: 0px;
	box-sizing: border-box;
}

.ck-service-icon-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ck-service-icon-badge svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Content Area */
.ck-service-content {
	padding: 30px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	box-sizing: border-box;
}

.ck-service-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 12px 0;
	line-height: 1.3;
}

.ck-service-title a {
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.ck-service-title a:hover {
	opacity: 0.8;
}

.ck-service-description {
	font-size: 15px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.ck-service-description p {
	margin: 0;
	line-height: 1.6;
}

/* Key benefits pill tags */
.ck-service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	margin-bottom: 24px;
}

.ck-service-tag {
	font-size: 12px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 20px;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ck-service-tag:hover {
	transform: scale(1.03);
}

/* Footer / Learn More link with moving arrow */
.ck-service-footer {
	border-top: 1px solid #f3f4f6;
	padding-top: 16px;
	margin-top: auto;
}

.ck-service-learn-more {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	gap: 6px;
	transition: gap 0.2s ease;
}

.ck-service-learn-more .arrow {
	font-size: 16px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.ck-service-learn-more:hover .arrow {
	transform: translateX(4px);
}

/* Responsiveness overrides */
@media (max-width: 991px) {
	.custom-kit-services-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px;
	}
	.ck-service-image-wrapper {
		height: 240px;
	}
	.ck-service-content {
		padding: 24px;
	}
}

@media (max-width: 600px) {
	.custom-kit-services-grid {
		grid-template-columns: 1fr !important;
	}
	.ck-service-image-wrapper {
		height: 220px;
	}
}

/* ==========================================================================
   Single Service Post Page Styles
   ========================================================================== */

.ck-single-service-container {
	max-width: 900px;
	margin: 60px auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.ck-single-service-header {
	margin-bottom: 40px;
}

.ck-single-service-title-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
}

.ck-single-service-icon {
	width: 50px;
	height: 50px;
	background-color: #5e17eb;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(94, 23, 235, 0.15);
	padding: 0px;
	box-sizing: border-box;
}

.ck-single-service-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ck-single-service-title {
	font-size: 38px;
	font-weight: 800;
	color: #111827;
	margin: 0;
	line-height: 1.2;
}

.ck-single-service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.ck-single-service-tag {
	font-size: 13px;
	font-weight: 500;
	padding: 6px 14px;
	background: #f3f4f6;
	color: #4b5563;
	border-radius: 20px;
}

/* Hero image */
.ck-single-service-featured-img {
	width: 100%;
	height: 450px;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 40px;
	box-shadow: 0 20px 25px -5px rgba(0,0,0,0.06), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.ck-single-service-featured-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Content block styling */
.ck-single-service-content {
	font-size: 17px;
	line-height: 1.7;
	color: #374151;
}

.ck-single-service-content p {
	margin-bottom: 24px;
}

.ck-single-service-content h2 {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
	margin-top: 40px;
	margin-bottom: 16px;
}

.ck-single-service-content h3 {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin-top: 30px;
	margin-bottom: 12px;
}

/* Modern Call-To-Action Box */
.ck-single-service-cta {
	background: linear-gradient(135deg, #5e17eb 0%, #3b09a3 100%);
	border-radius: 16px;
	padding: 40px;
	color: #ffffff;
	margin-top: 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 20px 25px -5px rgba(94, 23, 235, 0.2);
}

.ck-single-service-cta-text h3 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 8px 0;
	color: #ffffff !important;
}

.ck-single-service-cta-text p {
	margin: 0;
	font-size: 16px;
	opacity: 0.9;
}

.ck-single-service-cta-btn {
	background-color: #ffffff;
	color: #5e17eb;
	padding: 14px 28px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ck-single-service-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	background-color: #f9fafb;
}

.ck-single-service-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 40px;
	font-weight: 600;
	color: #5e17eb;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.ck-single-service-back-link:hover {
	gap: 10px;
}

@media (max-width: 768px) {
	.ck-single-service-featured-img {
		height: 300px;
	}
	.ck-single-service-title {
		font-size: 30px;
	}
	.ck-single-service-cta {
		flex-direction: column;
		text-align: center;
		gap: 24px;
		padding: 30px;
	}
}
