/* Blog (list, article, home carousel). Independent file: not touched by OCMOD refresh. */

/* ---------- list page ---------- */
.blog-page h1 { margin-bottom: 8px; }
.blog-lead { color: #8f8f9d; font-size: 16px; margin: 0 0 25px; }

.blog-grid { display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px; }
.blog-grid:before, .blog-grid:after { display: none; }
.blog-grid > div { display: flex; padding: 0 10px; }

/* ---------- card ---------- */
.blog-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 20px;
	transition: box-shadow .2s ease;
}
.blog-card:hover { box-shadow: 0 0 13.5px 1.5px rgba(1, 1, 1, 0.1); }

.blog-card__img {
	display: block;
	position: relative;
	padding-top: 66.66%;
	background: #ebebeb;
	overflow: hidden;
}
.blog-card__img img {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__img--empty:after {
	content: "\f03e";
	font-family: FontAwesome;
	position: absolute;
	top: 50%; left: 50%;
	margin: -22px 0 0 -22px;
	font-size: 44px;
	color: #c9c9c9;
}

.blog-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.blog-card__date { color: #8f8f9d; font-size: 12px; margin-bottom: 8px; }
.blog-card__date .fa { margin-right: 4px; }
.blog-card__title { margin: 0 0 10px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.blog-card__title a { color: #232323; text-decoration: none; }
.blog-card__title a:hover { color: #00b956; }
.blog-card__text {
	color: #555;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.blog-card__more { margin-top: auto; }

.blog-btn,
a.blog-btn {
	display: inline-block;
	background: #00b956;
	color: #fff !important;
	border-radius: 5px;
	padding: 9px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	text-decoration: none;
	transition: background .2s ease;
}
.blog-btn:hover, a.blog-btn:hover { background: #00a24c; text-decoration: none; }

.blog-empty { padding: 30px 0 60px; color: #8f8f9d; font-size: 16px; }
.blog-page .pagination { margin: 5px 0 40px; }
.blog-page .pagination > li > a, .blog-page .pagination > li > span { color: #232323; }
.blog-page .pagination > .active > span, .blog-page .pagination > .active > a { background: #00b956; border-color: #00b956; color: #fff; }

/* ---------- article ---------- */
.blog-article { max-width: 820px; margin: 0 auto; padding-bottom: 20px; }
.blog-article h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 12px; }
.blog-article__meta { color: #8f8f9d; font-size: 13px; margin-bottom: 22px; }
.blog-article__meta span { margin-right: 18px; }
.blog-article__meta .fa { margin-right: 5px; }
.blog-article__cover { margin: 0 0 28px; }
.blog-article__cover img { display: block; width: 100%; height: auto; border-radius: 12px; }

.blog-article__body { font-size: 17px; line-height: 1.75; color: #232323; word-wrap: break-word; }
.blog-article__body p { margin: 0 0 1.1em; }
.blog-article__body h2 { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 1.7em 0 .6em; color: #232323; }
.blog-article__body h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 1.5em 0 .5em; color: #232323; }
.blog-article__body a { color: #00b956; text-decoration: underline; }
.blog-article__body img { max-width: 100% !important; height: auto !important; border-radius: 10px; }
.blog-article__body figure { margin: 1.6em 0; text-align: center; }
.blog-article__body figure img { display: block; margin: 0 auto; }
.blog-article__body figcaption { color: #8f8f9d; font-size: 13px; margin-top: 8px; }
.blog-article__body ul, .blog-article__body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.blog-article__body li { margin-bottom: .4em; }
.blog-article__body blockquote {
	margin: 1.5em 0;
	padding: 14px 22px;
	border-left: 4px solid #00b956;
	background: #f6f6f6;
	border-radius: 0 10px 10px 0;
	font-size: 17px;
	color: #333;
}
.blog-article__body table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-size: 15px; }
.blog-article__body table td, .blog-article__body table th { border: 1px solid #e1e4e2; padding: 8px 12px; }
.blog-article__body table th { background: #f6f6f6; }

.blog-article__footer { margin: 35px 0 10px; padding-top: 22px; border-top: 1px solid #ececec; }

.blog-related { margin-top: 45px; }
.blog-related h2 { font-size: 25px; font-weight: 500; margin: 0 0 20px; }

/* ---------- home carousel ---------- */
.blog-home { padding: 10px 0 30px; }
.blog-home__head { display: flex; align-items: baseline; justify-content: space-between; padding: 40px 0 20px; }
.blog-home__title { font-size: 25px; font-weight: 500; margin: 0; padding: 0; color: #000; }
.blog-home__all { font-size: 14px; color: #00b956; text-decoration: none; white-space: nowrap; }
.blog-home__all:hover { text-decoration: underline; color: #00a24c; }

.blog-carousel { position: relative; }
.blog-carousel .owl-item { padding: 0 8px; box-sizing: border-box; }
.blog-carousel .blog-card { margin: 4px 0 10px; width: auto; }

@media (max-width: 767px) {
	.blog-article h1 { font-size: 24px; }
	.blog-article__body { font-size: 16px; }
	.blog-article__body h2 { font-size: 22px; }
	.blog-home__title { font-size: 22px; }
}

/* carousel arrows + pagination (same look as the home slider) */
.blog-carousel .owl-buttons div {
	position: absolute;
	top: 90px;
	margin: 0;
	width: 42px; height: 42px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	opacity: 1;
	font-size: 0; line-height: 0; color: transparent;
	z-index: 5;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.blog-carousel .owl-buttons div:before {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 10px; height: 10px;
	border: solid #232323;
	border-width: 0 2.5px 2.5px 0;
	border-radius: 1px;
	transition: border-color .2s ease;
}
.blog-carousel .owl-buttons .owl-prev { left: 4px; }
.blog-carousel .owl-buttons .owl-next { right: 4px; }
.blog-carousel .owl-buttons .owl-prev:before { transform: translate(-30%, -50%) rotate(135deg); }
.blog-carousel .owl-buttons .owl-next:before { transform: translate(-70%, -50%) rotate(-45deg); }
.blog-carousel .owl-buttons div:hover { background: #00b956; transform: scale(1.08); }
.blog-carousel .owl-buttons div:hover:before { border-color: #fff; }

.blog-carousel .owl-controls { margin-top: 6px; }
.blog-carousel .owl-controls .owl-pagination { display: block !important; text-align: center; line-height: 0; }
.blog-carousel .owl-controls .owl-page { display: inline-block; padding: 6px 4px; cursor: pointer; }
.blog-carousel .owl-controls .owl-page span {
	display: block;
	width: 8px; height: 8px;
	margin: 0;
	border-radius: 4px;
	background: #cfd3d1;
	opacity: 1;
	transition: width .3s ease, background .3s ease;
}
.blog-carousel .owl-controls .owl-page:hover span { background: #9aa09d; }
.blog-carousel .owl-controls .owl-page.active span { width: 30px; background: #00b956; }

@media (max-width: 767px) {
	.blog-carousel .owl-buttons div { top: 70px; width: 36px; height: 36px; }
}

/* keep article typography independent of the global theme rules (mobile h1 centering, uppercase h2) */
.blog-article h1 { text-align: left; }
.blog-article__body h2, .blog-article__body h3 { text-transform: none; text-align: left; }
.blog-article__body, .blog-article__body p { text-align: left; }
.blog-article__body figure { text-align: center; }
.blog-related h2, .blog-page h1 { text-transform: none; }
