/* =========================================
   Bilin Blog / Magazine
   ========================================= */

.bilin-blog,
.bilin-blog-page,
.bilin-blog-category,
.bilin-single-post {
	direction: rtl;
}


/* -----------------------------------------
   Shared
   ----------------------------------------- */

.blog-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 18px;
	color: #777;
	font-size: 14px;
	line-height: 1.8;
}

.blog-category {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 15px;
	background: #eaf7fb;
	color: #0f8fb5;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: .25s ease;
}

.blog-category:hover {
	background: #0f8fb5;
	color: #fff;
}

.blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 23px;
	background: #f05a28;
	color: #fff;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.7;
	transition: .25s ease;
}

.blog-btn:hover {
	background: #d9481b;
	color: #fff;
	transform: translateY(-2px);
}


/* -----------------------------------------
   Homepage Blog Section
   ----------------------------------------- */

.bilin-blog {
	padding: 110px 0;
	background: #f8fbfd;
}

.bilin-blog .blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 35px rgba(0, 0, 0, .07);
	transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 18px 42px rgba(0, 0, 0, .11);
}

.blog-image {
	display: block;
	position: relative;
	overflow: hidden;
	height: 225px;
	background: #0f8fb5;
	text-decoration: none;
}

.blog-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s ease;
}

.blog-card:hover .blog-image img {
	transform: scale(1.04);
}

.blog-image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0f8fb5, #008f72);
	color: #fff;
	font-size: 30px;
	font-weight: 700;
}

.blog-content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 26px;
}

.blog-content h2,
.blog-content h3 {
	margin: 0 0 10px;
	color: #16324f;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.7;
}

.blog-content h2 a,
.blog-content h3 a {
	color: #16324f;
	text-decoration: none;
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
	color: #0f8fb5;
}

.blog-content h2 a,
.blog-content h3 a {
	color: #16324f;
	text-decoration: none;
}

.blog-content h2 a:hover,
.blog-content h3 a:hover {
	color: #0f8fb5;
}

.blog-content p {
	margin: 0 0 22px;
	color: #666;
	line-height: 2;
}

.blog-content .blog-btn {
	align-self: flex-start;
	margin-top: auto;
}

.blog-section-footer {
	display: flex;
	justify-content: center;
	margin-top: 45px;
}

.blog-view-all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #0f8fb5;
	font-weight: 700;
	text-decoration: none;
}

.blog-view-all:hover {
	color: #f05a28;
}


/* -----------------------------------------
   Blog Hero
   ----------------------------------------- */

.blog-hero {
	padding: 55px 0 45px;
	background: #f8fbfd;
	border-bottom: 1px solid #e5eef2;
}

.blog-hero-content {
	max-width: 980px;
	margin: 0 auto;
	text-align: center;
}

/* Main static magazine card */

.blog-hero h1 {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 22px;
	padding: 24px 52px 20px;
	background: #16324f;
	color: #fff;
	border-radius: 20px;
	box-shadow: 0 14px 35px rgba(22, 50, 79, .16);
	font-size: clamp(34px, 4.5vw, 54px);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.5px;
}


/* Hero description */

.blog-hero p {
	max-width: 820px;
	margin: 0 auto;
	color: #16324f;
	font-size: 20px;
	font-weight: 700;
	line-height: 2;
	letter-spacing: -.1px;
}


/* -----------------------------------------
   Category Navigation
   ----------------------------------------- */

.blog-category-nav {
	padding: 0 0 42px;
	background: #f8fbfd;
	border-bottom: 1px solid #e8eef1;
}

.blog-categories {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}


/* Category cards / colorful booths */

.blog-category-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 calc(25% - 11px);
	min-height: 76px;
	padding: 15px 18px;
	border: 1px solid transparent;
	border-radius: 16px;
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.7;
	box-shadow: 0 9px 22px rgba(22, 50, 79, .10);
	transition:
		transform .25s ease,
		box-shadow .25s ease,
		filter .25s ease;
}


/* Five Bilin category colors */

.blog-category-link:nth-child(1) {
	background: #0f8fb5;
}

.blog-category-link:nth-child(2) {
	background: #008f72;
}

.blog-category-link:nth-child(3) {
	background: #f05a28;
}

.blog-category-link:nth-child(4) {
	background: #e09a2d;
}

.blog-category-link:nth-child(5) {
	background: #e45535;
}

.blog-category-link:nth-child(6) {
	background: #526f8a;
}

.blog-category-link:nth-child(7) {
	background: #7b62a3;
}


/* Hover */

.blog-category-link:hover,
.blog-category-link.is-active {
	color: #fff;
	transform: translateY(-4px);
	box-shadow: 0 14px 28px rgba(22, 50, 79, .16);
	filter: brightness(.96);
}


/* -----------------------------------------
   Featured Article
   ----------------------------------------- */

.blog-featured-section {
	padding: 90px 0 70px;
	background: #fff;
}

.blog-featured-card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
	overflow: hidden;
	background: #f8fbfd;
	border-radius: 24px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, .07);
}

.blog-featured-image {
	display: block;
	min-height: 430px;
	overflow: hidden;
	background: #0f8fb5;
}

.blog-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-featured-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px;
}

.blog-featured-content h2 {
	margin: 0 0 10px;
	font-size: clamp(27px, 3vw, 40px);
	line-height: 1.65;
}

.blog-featured-content h2 a {
	color: #16324f;
	text-decoration: none;
}

.blog-featured-content h2 a:hover {
	color: #0f8fb5;
}

.blog-featured-content .blog-excerpt {
	margin: 0 0 28px;
	color: #666;
	font-size: 16px;
	line-height: 2.15;
}

.blog-featured-content .blog-btn {
	align-self: flex-start;
}


/* -----------------------------------------
   Latest Articles
   ----------------------------------------- */

.blog-latest-section {
	padding: 80px 0 100px;
	background: #f8fbfd;
}

.blog-latest-section .blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}


/* -----------------------------------------
   Pagination
   ----------------------------------------- */

.blog-pagination {
	margin-top: 55px;
	text-align: center;
}

.blog-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.blog-pagination li {
	margin: 0;
	padding: 0;
}

.blog-pagination a,
.blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 7px 12px;
	border: 1px solid #dbe7eb;
	border-radius: 9px;
	background: #fff;
	color: #16324f;
	text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination .current {
	border-color: #0f8fb5;
	background: #0f8fb5;
	color: #fff;
}


/* -----------------------------------------
   Empty State
   ----------------------------------------- */

.blog-empty {
	padding: 70px 30px;
	text-align: center;
	background: #fff;
	border-radius: 20px;
}

.blog-empty h2 {
	margin-bottom: 15px;
	color: #16324f;
}

.blog-empty p {
	color: #666;
}


/* -----------------------------------------
   Single Article
   ----------------------------------------- */

.blog-article-header {
	padding: 75px 0 50px;
	background: #f8fbfd;
	border-bottom: 1px solid #e5eef2;
}

.blog-article-container {
	max-width: 900px;
	margin-right: auto;
	margin-left: auto;
}

.blog-article-header .blog-category {
	margin-bottom: 18px;
}

.blog-article-header h1 {
	margin: 0;
	color: #16324f;
	font-size: clamp(32px, 3vw, 38px);
	line-height: 1.6;
}

.blog-article-meta {
	margin-top: 20px;
	margin-bottom: 0;
}

.blog-article-featured-image {
	margin: 55px 0 50px;
	overflow: hidden;
	border-radius: 20px;
}

.blog-article-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.blog-article-content {
	color: #303b45;
	font-size: 18px;
	line-height: 2.25;
}

.blog-article-content > * {
	max-width: 100%;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
	margin-top: 2em;
	margin-bottom: .7em;
	color: #16324f;
	line-height: 1.7;
}

.blog-article-content h2 {
	font-size: 27px;
}

.blog-article-content h3 {
	font-size: 21px;
}

.blog-article-content h4 {
	font-size: 19px;
}

.blog-article-content p {
	margin: 0 0 1.35em;
}

.blog-article-content a {
	color: #0f8fb5;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-article-content img {
	max-width: 100%;
	height: auto;
}

.blog-article-content ul,
.blog-article-content ol {
	margin: 0 0 1.5em;
	padding-right: 1.5em;
}

.blog-article-content blockquote {
	margin: 2em 0;
	padding: 20px 25px;
	border-right: 4px solid #f05a28;
	background: #f8fbfd;
	color: #4b5560;
}

.blog-article-footer {
	margin-top: 55px;
	padding-top: 30px;
	border-top: 1px solid #e1e8eb;
}

.blog-article-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.blog-nav-prev,
.blog-nav-next {
	line-height: 1.8;
}

.blog-nav-next {
	text-align: left;
}

.blog-nav-prev a,
.blog-nav-next a {
	color: #16324f;
	font-weight: 700;
	text-decoration: none;
}

.blog-nav-prev a:hover,
.blog-nav-next a:hover {
	color: #0f8fb5;
}


/* -----------------------------------------
   Related Articles
   ----------------------------------------- */

.blog-related {
	padding: 85px 0;
	background: #f8fbfd;
}

.blog-related .blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}


/* -----------------------------------------
   CTA
   ----------------------------------------- */

.blog-cta {
	padding: 80px 0;
	background: #7bacbb;
}

.blog-cta-inner {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
}

.blog-cta-inner .section-badge {
	display: inline-block;
	margin-bottom: 15px;
	padding: 6px 15px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border-radius: 30px;
}

.blog-cta-inner h2 {
    margin: 0 0 15px;
    color: #16324F;
    font-size: 34px;
    line-height: 1.6;
}

.blog-cta-inner p {
    margin: 0 auto 25px;
    color: #16324F;
    line-height: 2;
}

.blog-cta-btn {
	background: #f05a28;
}

.blog-cta-btn:hover {
	background: #e45535;
}


/* -----------------------------------------
   Responsive
   ----------------------------------------- */

@media (max-width: 992px) {

	.bilin-blog .blog-grid,
	.blog-latest-section .blog-grid,
	.blog-related .blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.blog-featured-card {
		grid-template-columns: 1fr;
	}

	.blog-featured-image {
		min-height: 330px;
	}

	.blog-categories {
		grid-template-columns: repeat(3, 1fr);
	}

}


@media (max-width: 680px) {

	.bilin-blog,
	.bilin-blog-page,
	.bilin-blog-category,
	.bilin-single-post {
		overflow-x: hidden;
	}

	.bilin-blog {
		padding: 80px 0;
	}

	.bilin-blog .blog-grid,
	.blog-latest-section .blog-grid,
	.blog-related .blog-grid {
		grid-template-columns: 1fr;
	}

	.blog-hero {
		padding: 45px 0 35px;
	}

	.blog-hero h1 {
		width: auto;
		margin-right: 15px;
		margin-left: 15px;
		padding: 20px 22px 17px;
		border-radius: 16px;
		font-size: 34px;
	}

	.blog-hero p {
		padding: 0 15px;
		font-size: 17px;
		line-height: 2;
	}

	.blog-category-nav {
		padding-bottom: 30px;
	}

	.blog-categories {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		padding: 0 15px;
	}

	.blog-category-link {
		min-height: 68px;
		padding: 12px 10px;
		border-radius: 13px;
		font-size: 14px;
	}

	.blog-featured-section,
	.blog-latest-section,
	.blog-related {
		padding: 65px 0;
	}

	.blog-featured-content {
		padding: 30px 24px;
	}

	.blog-featured-image {
		min-height: 240px;
	}

	.blog-content h2,
	.blog-content h3 {
	font-size: 18px;
	line-height: 1.7;
	}

	.blog-article-header {
		padding: 55px 0 35px;
	}

	.blog-article-header h1 {
		font-size: 30px;
	}

	.blog-article-featured-image {
		margin-top: 35px;
		border-radius: 14px;
	}

	.blog-article-content {
		font-size: 17px;
		line-height: 2.15;
	}

	.blog-article-navigation {
		grid-template-columns: 1fr;
	}

	.blog-nav-next {
		text-align: right;
	}

	.blog-cta {
		padding: 65px 0;
	}

}