/**
 * Service Category pages only (6 main category URLs).
 * Scoped via body.bab-service-category-page — does not affect service-detail or other pages.
 */

body.bab-service-category-page .bab-page-hero__title {
	font-size: clamp(20px, 2.4vw, 30px);
	line-height: 1.3;
}

body.bab-service-category-page .team-one.style-two.inner-page-section {
	padding: 56px 0 64px;
}

body.bab-service-category-page .main-desc {
	margin-bottom: 36px;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

body.bab-service-category-page .main-desc p,
body.bab-service-category-page .sec-title.centered > p {
	font-size: clamp(15px, 1.6vw, 16px);
	line-height: 1.75;
	color: #555;
	margin-bottom: 14px;
}

body.bab-service-category-page .main-desc p:last-child,
body.bab-service-category-page .sec-title.centered > p:last-child {
	margin-bottom: 0;
}

body.bab-service-category-page .service-content-heading {
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	line-height: 1.35;
	color: #222;
	margin-top: 24px;
	margin-bottom: 12px;
}

body.bab-service-category-page .service-content-heading:first-of-type {
	margin-top: 0;
}

/* Card grid — equal rows, heights, and image dimensions */
body.bab-service-category-page .team-one .row.clearfix {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	row-gap: 0;
}

body.bab-service-category-page .team-block_one {
	display: flex;
	flex-direction: column;
	margin-bottom: 30px;
}

body.bab-service-category-page .team-block_one-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.bab-service-category-page .team-block_one-image {
	position: relative;
	flex-shrink: 0;
	height: 220px;
	overflow: hidden;
}

body.bab-service-category-page .team-block_one-image a {
	display: block;
	height: 100%;
}

body.bab-service-category-page .team-block_one-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.bab-service-category-page .team-block_one-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 110px;
	padding: 22px 20px;
}

body.bab-service-category-page .team-block_one-title,
body.bab-service-category-page .team-block_one-title.h4 {
	font-size: clamp(16px, 1.8vw, 18px);
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 8px;
}

body.bab-service-category-page .team-block_one-title a {
	color: var(--color-two);
}

body.bab-service-category-page .team-block_one-designation {
	font-size: 14px;
	line-height: 1.5;
	margin-top: 0;
}

@media only screen and (max-width: 991px) {
	body.bab-service-category-page .team-one.style-two.inner-page-section {
		padding: 48px 0 56px;
	}

	body.bab-service-category-page .team-block_one-image {
		height: 200px;
	}
}

@media only screen and (max-width: 767px) {
	body.bab-service-category-page .bab-page-hero__title {
		font-size: clamp(18px, 4.5vw, 24px);
	}

	body.bab-service-category-page .team-block_one-image {
		height: 190px;
	}

	body.bab-service-category-page .team-block_one-content {
		padding: 18px 16px;
		min-height: 96px;
	}
}

@media only screen and (max-width: 599px) {
	body.bab-service-category-page .team-one.style-two.inner-page-section {
		padding: 40px 0 48px;
	}

	body.bab-service-category-page .main-desc {
		margin-bottom: 28px;
	}

	body.bab-service-category-page .service-content-heading {
		font-size: 17px;
		margin-top: 20px;
	}

	body.bab-service-category-page .team-block_one {
		margin-bottom: 24px;
	}

	body.bab-service-category-page .team-block_one-image {
		height: 180px;
	}
}
