/* =========================================================
   Work results (cases) on the top page
   ========================================================= */

.kb-works {
	--kb-work-navy: #3164a2;
	background: #e8f6fc;
}

/* Centered two-thirds column, gutter-aligned with the page grid */
.kb-works__band { margin-inline: -12px; }
.kb-works__band:first-child { padding-top: 48px; }
.kb-works__col {
	display: flow-root;
	margin-inline: auto;
	padding-inline: 12px;
}
@media (min-width: 768px) {
	.kb-works__col { width: 66.66666667%; }
}
.kb-works__head { text-align: center; }

/* Tags */
.kb-work__tags {
	margin: 0;
	padding: 12px 0 16px;
}
.kb-work__tag {
	display: inline-block;
	margin-right: 8px;
	padding: 8px 16px;
	border-radius: 50rem;
	background: #03b8df;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* Customer voice */
.kb-work__voice {
	display: flex;
	flex-wrap: wrap;
	padding-top: 48px;
	background: #fff;
}
.kb-work__person,
.kb-work__story {
	width: 100%;
	padding-inline: 12px;
}
.kb-work__person { margin-bottom: 16px; }
.kb-work__person img {
	display: block;
	max-width: 100%;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.kb-work__person { width: 33.33333333%; margin-bottom: 0; }
	.kb-work__story { width: 66.66666667%; }
}
.kb-work__title {
	margin: 0 0 16px;
	color: #26983a;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
}
.kb-work__text {
	margin: 0 0 16px;
	font-size: .9rem;
	line-height: 1.8;
	text-align: justify;
}
@media (min-width: 576px) {
	.kb-work__text { padding-right: 48px; }
}

/* Before / after photos */
.kb-work__photos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	padding: 30px 8px;
	background: #fff;
}
@media (min-width: 577px) { .kb-work__photos { padding: 16px 12px 24px; } }
@media (min-width: 768px) { .kb-work__photos { padding: 48px 36px; } }

.kb-work__shot {
	position: relative;
	width: calc(100% - 24px);
	margin: 0 12px;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
}
.kb-work__shot img {
	display: block;
	width: 100%;
	height: 250px;
	border-radius: 8px;
	object-fit: cover;
}
.kb-work__label {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 8px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-weight: 700;
	text-align: center;
}
.kb-work__label--after { background: #f9c125; }

.kb-work__arrow {
	width: calc(100% - 24px);
	margin: 0 12px;
	color: #f8c92a;
	font-size: 3rem;
	line-height: 1.5;
	text-align: center;
}
@media (max-width: 768px) {
	.kb-work__shot img { height: 180px; }
	.kb-work__arrow { font-size: 2rem; }
}
@media (max-width: 576px) {
	.kb-work__arrow {
		margin-block: 10px;
		transform: rotate(90deg);
	}
}
@media (min-width: 992px) {
	.kb-work__shot { width: calc(41.66666667% - 24px); }
	.kb-work__arrow { width: calc(16.66666667% - 24px); }
}

/* Job details table */
.kb-work__facts {
	padding: 0 16px 24px;
	background: #fff;
}
.kb-work__facts table {
	width: 100%;
	margin: 0;
	border-collapse: separate;
	border-spacing: 1px;
	text-align: center;
}
.kb-work__facts th,
.kb-work__facts td {
	padding: .8rem;
	border-bottom: 1px solid #dee2e6;
	font-size: .9rem;
	line-height: 1.5;
	vertical-align: middle;
}
.kb-work__facts th {
	width: 25%;
	background: #9a9a9a;
	color: #fff;
	font-weight: 400;
}
.kb-work__facts td {
	width: 75%;
	background: #e5e5e5;
	color: #212529;
}
.kb-work__total th {
	border: 0;
	background: var(--kb-work-navy);
}
.kb-work__total td {
	border: 2px solid var(--kb-work-navy);
	background: #fff;
	color: var(--kb-work-navy);
	font-weight: 700;
}

/* Staff comment */
.kb-work__staff { margin: 24px 0 48px; }
.kb-work__bubble {
	position: relative;
	padding: 24px;
	border-radius: 6px;
	background: #2760a0;
	color: #fff;
}
.kb-work__bubble::after {
	content: "";
	position: absolute;
	right: 15%;
	bottom: -19px;
	border-style: solid;
	border-width: 20px 20px 0 0;
	border-color: #2760a0 transparent transparent;
}
.kb-work__bubble-title {
	margin: 0 0 16px;
	font-weight: 700;
}
.kb-work__bubble-text {
	margin: 0;
	font-size: .9rem;
	line-height: 1.6;
	text-align: left;
}
.kb-work__mascot {
	margin-top: -10px;
	padding-right: 24px;
	text-align: right;
}
.kb-work__mascot img {
	position: relative;
	z-index: 10;
	width: 25%;
	border-radius: 50%;
}

/* Link to the case archive */
.kb-works__more {
	display: flex;
	justify-content: center;
	margin: 48px -12px;
}
.kb-works__more-link {
	flex: 1 1 0;
	margin: 0 12px;
	padding: 16px 12px;
	border: 1px solid #d1c110;
	border-radius: 6px;
	background: #d1c110;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}
.kb-works__more-link:hover { color: #fff; }
@media (min-width: 576px) { .kb-works__more-link { flex: 0 0 calc(50% - 24px); } }
@media (min-width: 768px) { .kb-works__more-link { flex-basis: calc(41.66666667% - 24px); } }
