/**
 * Blue Arc: services area (bundle `services`): /services, the service
 * landing pages, /designer-villas and the /…/projects listings.
 *
 * Measured on bluearc.com.pk at 1440/1200/1024/768/390. Shared bands
 * (help, SEO, map, FAQ, testimonials, lead profile) live in sections.css.
 *
 * @package BlueArcChild
 */

/* ==========================================================================
   1. /services cards (live C15)
   ========================================================================== */

.ba-svc-cards {
	padding: 80px 0;
}

.ba-svc-cards .ba-svc-cards__head {
	margin-bottom: 50px;
}

.ba-svc-cards__list {
	display: flow-root;
	margin-right: calc(var(--ba-gutter) * -1);
	margin-left: calc(var(--ba-gutter) * -1);
}

/* Floated col-sm-12 on live: card margins stay inside (10px apart); below
   768px the column is a plain block and the 5px margins collapse. */
@media (min-width: 768px) {
	.ba-svc-card {
		display: flow-root;
	}
}

.ba-svc-card__icon {
	display: block;
	margin-right: auto;
	margin-left: auto;
	line-height: 0;
}

.ba-svc-card__icon img {
	display: block;
}

.ba-svc-card__title {
	margin: 0 0 10px;
	color: var(--ba-text-strong);
	font-size: var(--ba-fs-h5);
	line-height: var(--ba-lh-h5);
	text-transform: uppercase;
}

.ba-svc-card__text {
	margin-bottom: 24px;
	text-align: justify;
}

.ba-svc-card__btn.ba-btn {
	display: block;
	width: 50%;
	height: 40px;
	margin-right: auto;
	margin-left: auto;
	box-shadow: none;
	font-size: 14px;
	font-weight: var(--ba-fw-bold);
	letter-spacing: 0;
	line-height: 20px;
	text-transform: none;
	transition: all var(--ba-t-legacy);
}

.ba-svc-card__btn.ba-btn .fa {
	margin-top: 4px;
	margin-left: 5px;
	font-size: 12px;
	transition: none;
}

.ba-svc-card__btn.ba-btn:hover,
.ba-svc-card__btn.ba-btn:focus {
	box-shadow: none;
	transform: none;
}

.ba-svc-card__btn.ba-btn:hover .fa,
.ba-svc-card__btn.ba-btn:focus .fa {
	transform: none;
}

@media (max-width: 445px) {
	.ba-svc-card__btn.ba-btn {
		width: auto;
	}
}

/* ==========================================================================
   2. Landing / listing main section (live .section-full.p-t80.p-b50)
   ========================================================================== */

.ba-svc-main {
	padding: 80px 0 50px;
}

/* Live prints an empty pager (25px line) under the list. */
.ba-svc-main--pager-gap {
	padding-bottom: 75px;
}

.ba-svc-intro p {
	margin-bottom: 24px;
	line-height: 24px;
	text-align: justify;
}

.ba-svc-intro a,
.ba-svc-intro a:hover,
.ba-svc-intro a:focus {
	color: var(--ba-primary);
}

/* ==========================================================================
   3. Project list: heading, cards column, View All
   ========================================================================== */

.ba-projects {
	margin-right: calc(var(--ba-gutter) * -1);
	margin-left: calc(var(--ba-gutter) * -1);
}

.ba-projects--landing {
	margin-top: 50px;
}

.ba-projects .ba-projects__head {
	margin-bottom: 20px;
	padding-bottom: 10px;
}

.ba-projects__head .ba-sec-head__title {
	margin-bottom: 2px;
}

@media (max-width: 768px) {
	.ba-projects .ba-projects__head {
		padding-left: 10px;
	}
}

/* Live columns float, so card margins never collapse. */
.ba-listed-col {
	display: flow-root;
}

@media (min-width: 992px) {
	.ba-listed-col {
		width: 75%;
	}
}

.ba-projects__more {
	margin: 50px calc(var(--ba-gutter) * -1) 0;
	padding: 0 var(--ba-gutter);
	line-height: 20px;
	text-align: center;
}

@media (min-width: 992px) {
	.ba-projects__more {
		width: calc((100% + 2 * var(--ba-gutter)) * 2 / 3);
	}
}

.ba-projects__viewall.ba-btn {
	display: inline;
	line-height: 20px;
	vertical-align: baseline;
}

.ba-projects__viewall.ba-btn .fa {
	margin-top: 0;
	margin-left: 5px;
	font-size: 12px;
	transition: none;
}

.ba-projects__viewall.ba-btn:hover,
.ba-projects__viewall.ba-btn:focus {
	background-color: var(--ba-primary);
}

.ba-projects__viewall.ba-btn:hover .fa,
.ba-projects__viewall.ba-btn:focus .fa {
	transform: none;
}

/* ==========================================================================
   4. Project row card (live .listed-project; extends components.css K2)
   ========================================================================== */

.ba-listed {
	display: inline-flex;
	max-width: calc(100% - 10px);
	cursor: pointer;
	vertical-align: top;
}

.ba-listed__thumb {
	flex: 0 1 58%;
	height: 327px;
	background-color: transparent;
}

.ba-listed__thumb img {
	display: block;
	height: 327px;
}

.ba-listed:hover .ba-listed__thumb img {
	transform: none;
}

.ba-listed .ba-listed__thumb:hover img {
	transform: scale(1.08);
}

.ba-listed__info {
	flex: 0 1 50%;
}

.ba-listed__title {
	margin: 0 0 15px;
	color: var(--ba-text-strong);
	font-size: var(--ba-fs-h4);
	line-height: var(--ba-lh-h4);
}

.ba-listed__title a {
	color: var(--ba-text-legacy-heading);
}

.ba-listed__title a:hover,
.ba-listed__title a:focus {
	color: var(--ba-primary);
}

.ba-listed__text {
	margin-bottom: 24px;
	line-height: 24px;
}

.ba-listed__text--inline {
	margin-bottom: 14px;
}

.ba-listed__text--more {
	line-height: 20px;
}

.ba-listed__specs {
	margin-bottom: 14px;
	line-height: 24px;
}

.ba-listed__specs .fa {
	font-size: 14px;
}

.ba-listed--compact .ba-listed__title {
	margin-bottom: 12px;
}

.ba-listed--compact .ba-listed__text--inline,
.ba-listed--compact .ba-listed__specs {
	margin-bottom: 12px;
}

@media (min-width: 768px) and (max-width: 1024px) {
	.ba-listed__info p {
		line-height: normal;
	}
}

.ba-listed__buttons {
	display: inline-flex;
	justify-content: flex-end;
	vertical-align: top;
}

.ba-listed__btn.ba-btn {
	align-items: flex-start;
	height: 36px;
	margin: 0 10px 0 -1px;
	padding: 8px 17px;
	font-size: 14px;
	line-height: 20px;
}

.ba-listed__btn.ba-btn .fa {
	margin: 0;
}

.ba-listed__view.ba-btn .fa,
.ba-listed__call.ba-btn .fa {
	margin-top: 4px;
	font-size: 13px;
}

.ba-listed__view.ba-btn .fa {
	margin-left: 10px;
}

.ba-listed__quote.ba-btn,
.ba-listed__sold.ba-btn {
	display: inline-block;
	margin: 0 0 0 -1px;
	text-align: center;
}

.ba-listed__quote.ba-btn .fa,
.ba-listed__sold.ba-btn .fa {
	font-size: 14px;
}

.ba-listed__sold.ba-btn,
.ba-listed__sold.ba-btn:hover,
.ba-listed__sold.ba-btn:focus {
	background-color: #f00;
	cursor: default;
}

/* "Book Now" ribbon (villa ARC-42). */
.ba-listed__ribbon {
	position: absolute;
	top: -5px;
	right: -5px;
	z-index: 1;
	width: 75px;
	height: 75px;
	overflow: hidden;
	text-align: right;
}

.ba-listed__ribbon span {
	position: absolute;
	top: 19px;
	right: -21px;
	display: block;
	width: 100px;
	background: linear-gradient(#0daad5 0%, var(--ba-primary) 100%);
	box-shadow: 0 3px 10px -5px #000;
	color: var(--ba-white);
	font-size: 10px;
	font-weight: var(--ba-fw-bold);
	line-height: 20px;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(45deg);
}

.ba-listed__ribbon span::before,
.ba-listed__ribbon span::after {
	position: absolute;
	top: 100%;
	z-index: -1;
	border: 3px solid transparent;
	border-top-color: #1e5799;
	content: "";
}

.ba-listed__ribbon span::before {
	left: 0;
	border-left-color: #1e5799;
}

.ba-listed__ribbon span::after {
	right: 0;
	border-right-color: #1e5799;
}

@media (max-width: 658px) {
	.ba-listed {
		display: block;
		max-width: none;
		margin: 30px 10px 10px;
	}

	.ba-listed__thumb {
		display: block;
		width: 100%;
		height: auto;
		aspect-ratio: auto;
		background-color: var(--ba-black);
	}

	.ba-listed__thumb img {
		width: 100%;
		height: auto;
		object-fit: fill;
	}

	.ba-listed__info {
		width: 70%;
	}

	.ba-listed__view {
		display: none;
	}

	.ba-listed__call.ba-btn {
		display: flex;
	}
}

@media (max-width: 425px) {
	.ba-listed {
		margin-left: 5px;
	}

	.ba-listed__info {
		width: 100%;
	}
}

/* ==========================================================================
   5. Listing pager (live .custom-pagination)
   ========================================================================== */

.ba-pager {
	margin: 0 calc(var(--ba-gutter) * -1);
	line-height: 20px;
}

.ba-pager__list {
	display: inline-block;
	margin: 0;
	padding: 10px 0;
	border-radius: 4px;
	list-style: none;
	vertical-align: baseline;
}

.ba-pager__list::after {
	display: table;
	clear: both;
	content: "";
}

.ba-pager__item {
	display: inline;
}

.ba-pager__link {
	position: relative;
	float: left;
	margin-left: -1px;
	padding: 6px 12px;
	border: 1px solid #0e131b;
	background-color: var(--ba-dark);
	color: var(--ba-white);
	font-size: 12px;
	font-weight: var(--ba-fw-semibold);
	line-height: 1.42857;
	text-decoration: none;
}

.ba-pager__item:first-child .ba-pager__link {
	margin-left: 0;
}

.ba-pager__item.is-active .ba-pager__link,
a.ba-pager__link:hover,
a.ba-pager__link:focus {
	z-index: 2;
	border-color: transparent;
	background-color: var(--ba-primary);
	color: var(--ba-white);
}

@media (min-width: 425px) and (max-width: 768px) {
	.ba-pager__list {
		padding-left: 10px;
	}
}

@media (max-width: 425px) {
	.ba-pager__list {
		padding-left: 5px;
	}
}

.ba-projects__list[aria-busy="true"] {
	opacity: 0.6;
	transition: opacity 0.2s linear;
}
