/**
 * Clover Simple Job Board: job listing grid cards.
 *
 * Matches the career cards on cloverinfotech.com/job-openings. Rules are scoped
 * to `.sjb-page .grid-view` so theme `.row` / `.col-*` styles cannot break them.
 */

/* Grid: two columns on tablet/desktop, one on phones. */
.sjb-page .grid-view {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 20px -15px -15px;
	padding: 0;
}

.sjb-page .grid-view::before,
.sjb-page .grid-view::after {
	display: none;
}

.sjb-page .grid-view .article--career {
	flex: 0 0 49%;
	max-width: 49%;
	float: none;
	width: auto;
	margin: 0;
	padding: 15px 10px;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.sjb-page .grid-view .article--career {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* Card. */
.sjb-page .grid-view .article--career__wrap {
	padding: 20px;
	border-radius: 10px;
	background-color: #f2f2f2;
	font-family: Poppins, sans-serif;
	color: #111111;
}

/* Header: title + share. */
.sjb-page .grid-view .article-career-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 10px;
}

.sjb-page .grid-view .article-career-header h3 {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: none;
}

.sjb-page .grid-view .article-career-header a {
	color: #1e1e1e;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
}

.sjb-page .grid-view .article-career-header a:hover,
.sjb-page .grid-view .article-share:hover {
	color: #64ae24;
}

.sjb-page .grid-view .article-career-header__right {
	position: relative;
	flex-shrink: 0;
	margin-left: 10px;
}

.sjb-page .grid-view .article-career-header a.article-share {
	font-family: Poppins, sans-serif;
	font-weight: 300;
	font-size: 13px;
	line-height: 1.8;
	white-space: nowrap;
}

.sjb-page .grid-view .article-career-header a.article-share.active {
	color: #64ae24;
}

/* Share menu. */
.sjb-page .grid-view .article-career-header__right .share-list {
	position: absolute;
	top: 24px;
	right: 0;
	z-index: 5;
	display: none;
	margin: 0;
	padding: 10px;
	list-style: none;
	border-radius: 5px;
	overflow: hidden;
}

.sjb-page .grid-view .article-career-header__right .share-list.is-active {
	display: block;
}

.sjb-page .grid-view .article-career-header__right .share-list > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sjb-page .grid-view .article-career-header__right .share-list > li + li {
	margin-top: 10px;
}

.sjb-page .grid-view .article-career-header__right .share-list > li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #ffffff;
	border-radius: 50%;
	transition: 0.3s;
}

.sjb-page .grid-view .article-career-header__right .share-list > li a:hover {
	color: #ffffff;
	transform: scale(1.2);
}

.sjb-page .grid-view a.fb-share { background-color: #385389; }
.sjb-page .grid-view a.tw-share { background-color: #3698df; }
.sjb-page .grid-view a.ln-share { background-color: #2875af; }
.sjb-page .grid-view a.em-share { background-color: #d64038; }
.sjb-page .grid-view a.wp-share { background-color: #57c063; }

/* Description: clamped to three lines. */
.sjb-page .grid-view .career-text p {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 10px;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.8;
}

/* Experience / location. */
.sjb-page .grid-view .career-data > div {
	line-height: 1.8;
	margin: 0;
}

.sjb-page .grid-view .career-data label {
	display: inline-block;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.8;
	color: #000000;
}

.sjb-page .grid-view .career-data span {
	font-size: 13px;
	font-weight: 500;
	color: #111111;
}

@media (max-width: 479px) {
	.sjb-page .grid-view .career-data span {
		overflow-wrap: break-word;
	}
}

/* Read More. */
.sjb-page .grid-view .career-action {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.sjb-page .grid-view .career-action a {
	text-decoration: none;
}

.sjb-page .grid-view .career-action .career-action__apply {
	padding: 5px 10px;
	border-radius: 3px;
	background-color: #80cb32;
	color: #ffffff;
	font-size: 13px;
	line-height: 1.8;
	text-decoration: none;
}

.sjb-page .grid-view .career-action .career-action__apply:hover {
	background-color: #64ae24;
}

@media (max-width: 767px) {
	.sjb-page .grid-view .article-career-header h3 {
		font-size: 16px;
	}

	.sjb-page .grid-view .article-career-header__right {
		flex: 0 0 52px;
	}

	.sjb-page .grid-view .article-career-header a {
		font-size: 12px;
	}
}
