/**
 * Versatile Services Tabs Section — Click Media Lab
 *
 * Sections:
 *  1. Section Wrapper
 *  2. Heading & Sub-text
 *  3. Tab Navigation
 *  4. Tab Button (default + active)
 *  5. Tab Content Pane
 *  6. Image Block
 *  7. Content Body
 *  8. CTA Button
 *  9. Responsive
 *
 * @package clickmedialab
 */


/* =============================================================================
   1. Section Wrapper
   ============================================================================= */
.cml-services-section {
	background: #fff;
}


/* =============================================================================
   2. Heading & Sub-text
   ============================================================================= */
.cml-services-heading {
	font-size: clamp( 22px, 2.8vw, 34px );
	font-weight: 800;
	color: #1a1a2e;
	line-height: 1.25;
	margin: 0;
}

.cml-services-highlight {
	color: #e8620e;
}

.cml-services-desc {
	font-size: 13.5px;
	color: #666;
	line-height: 1.75;
	margin: 0;
}


/* =============================================================================
   3. Tab Navigation
   ============================================================================= */

/* Wrapper row needs top margin so icons have breathing room */
.cml-services-nav-row {
	margin-top: 32px;
}

.cml-services-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: none !important;
	display: flex !important;
	flex-wrap: nowrap;
	width: 100%;
	gap: 6px;
	    margin-top: 50px;
    margin-bottom: 20px;

}
@media screen and (max-width: 991px) {
.cml-services-nav{
		/* horizontal scroll on mobile without showing scrollbar */
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
}
.cml-services-nav::-webkit-scrollbar {
	display: none;
}

.cml-services-nav .nav-item {
	flex: 1 1 0;      /* equal width, fill full row */
	min-width: 0;
}


/* =============================================================================
   4. Tab Button — default + active
   ============================================================================= */
.cml-services-nav-btn {
	/* layout */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 65px;
	padding: 0 8px 14px;

	/* visual */
	background: #fff;
	border: 1.5px solid #d0d5e8;
	border-radius: 10px;
	cursor: pointer;
	color: #444;
	text-align: center;

	/* transitions */
	transition: border-color 0.2s, background 0.2s, color 0.2s;

	/* reset Bootstrap */
	outline: none !important;
	box-shadow: none !important;
	position: relative;
	overflow: visible;
}

.cml-services-nav-btn:focus {
	outline: none !important;
	box-shadow: none !important;
}

.cml-services-nav-btn:hover {
	border-color: #0a2d8f;
}

/* ── Icon circle ── */
.cml-tab-icon {
	/* Pull the icon so it sits half-above the card top edge */
	margin-top: -22px;
	margin-bottom: 10px;
	flex-shrink: 0;

	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #fff;
	border: 1.5px solid #d0d5e8;
	border-radius: 50%;
	transition: background 0.2s, border-color 0.2s;
}

.cml-tab-icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

/* ── Label ── */
.cml-tab-label {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
	word-break: break-word;
	color: #444;
	transition: color 0.2s;
}

/* ── Hover (inactive) ── */
.cml-services-nav-btn:hover .cml-tab-icon {
	border-color: #0a2d8f;
}

.cml-services-nav-btn:hover .cml-tab-label {
	color: #0a2d8f;
}

/* ── Active state ── */
.cml-services-nav-btn.active {
	background: #0a2d8f;
	border-color: #0a2d8f;
}

.cml-services-nav-btn.active .cml-tab-icon {
	background: #fff;
	border-color: transparent;
}

.cml-services-nav-btn.active .cml-tab-label {
	color: #fff;
}

/* Keep icon SVG strokes dark on active (icon bg is white) */
.cml-services-nav-btn.active .cml-tab-icon svg circle,
.cml-services-nav-btn.active .cml-tab-icon svg line,
.cml-services-nav-btn.active .cml-tab-icon svg polyline,
.cml-services-nav-btn.active .cml-tab-icon svg rect,
.cml-services-nav-btn.active .cml-tab-icon svg path,
.cml-services-nav-btn.active .cml-tab-icon svg polygon {
	stroke: #0a2d8f;
}

/* Override the orange fill back to orange — still looks good on white icon */
.cml-services-nav-btn.active .cml-tab-icon svg [fill="#e8620e"] {
	fill: #e8620e;
}

.cml-services-nav-btn.active .cml-tab-icon svg [fill="#e8f0ff"] {
	fill: #e8f0ff;
}


/* =============================================================================
   5. Tab Content Pane
   ============================================================================= */
.cml-services-pane {
	border: 1.5px solid #e8e8e8;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}


/* =============================================================================
   6. Image Block (left side)
   ============================================================================= */
.cml-services-img-wrap {
	position: relative;
	height: 100%;
	min-height: 260px;
	overflow: hidden;
	border-radius: 18px;
	background: #0a2d8f;
}

.cml-services-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	min-height: 260px;
}

/* Semi-transparent overlay so label is readable */
.cml-services-img-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(10, 45, 143, 0.65) 0%,
		rgba(10, 45, 143, 0.25) 100%
	);
}

/* Service name overlay (bottom-left of image) */
.cml-services-img-label {
	position: absolute;
	bottom: 20px;
	left: 20px;
	z-index: 2;
}

.cml-services-img-label span {
	display: inline-block;
	background: rgba(232, 98, 14, 0.92);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 6px;
	line-height: 1.3;
}


/* =============================================================================
   7. Content Body (right side)
   ============================================================================= */
.cml-services-pane-body {
	padding: 36px 40px;
}

.cml-services-pane-p1 {
	font-size: 13.5px;
	color: #333;
	line-height: 1.75;
	margin-bottom: 16px;
}

.cml-services-pane-p2 {
	font-size: 13.5px;
	color: #555;
	line-height: 1.75;
	margin-bottom: 28px;
}


/* =============================================================================
   8. CTA Button
   ============================================================================= */
.cml-services-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #0a2d8f;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
	white-space: nowrap;
}

.cml-services-cta-btn:hover {
	background: #071e60;
	color: #fff;
	transform: translateY( -1px );
}


/* =============================================================================
   9. Responsive
   ============================================================================= */
@media ( max-width: 1199px ) {
	.cml-tab-label {
		font-size: 11px;
	}

	.cml-tab-icon {
		width: 40px;
		height: 40px;
	}

	.cml-tab-icon svg {
		width: 22px;
		height: 22px;
	}
}

@media ( max-width: 991px ) {
	/* Switch to fixed min-width so they scroll horizontally on small screens */
	.cml-services-nav .nav-item {
		flex: 0 0 auto;
	}

	.cml-services-nav-btn {
		min-width: 95px;
		min-height: 84px;
		padding: 0 8px 12px;
	}

	.cml-tab-icon {
		width: 38px;
		height: 38px;
		margin-top: -19px;
		margin-bottom: 8px;
	}

	.cml-tab-icon svg {
		width: 20px;
		height: 20px;
	}
}

@media ( max-width: 767px ) {
	.cml-services-nav-row {
		margin-top: 24px;
	}

	.cml-services-img-wrap {
		border-radius: 14px 14px 0 0;
		min-height: 200px;
	}

	.cml-services-img-wrap img {
		min-height: 200px;
	}

	.cml-services-pane-body {
		padding: 24px 20px;
	}

	.cml-services-cta-btn {
		width: 100%;
		justify-content: center;
	}
}
