/* =========================================================
   DIGBANG — HOME BLOG
========================================================= */


/* =========================================================
   SECTION
========================================================= */

.db-home-blog {
	width: 100%;

	margin: 88px 0 0;

	padding: 0;

	direction: rtl;
}


/* =========================================================
   INNER
========================================================= */

body.home .db-home-blog .db-home-blog__inner {
	width: 1320px;
	max-width: calc(100% - 32px);

	margin: 0 auto !important;
	padding: 0;

	box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.db-home-blog__header {
	width: 100%;

	margin: 0;
	padding: 0;

	text-align: right;
}


/* =========================================================
   TITLE
========================================================= */

.db-home-blog__title {
	margin: 0;

	color: #000000;

	font-family: "Vazirmatn", sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.5;

	text-align: right;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.db-home-blog__description {
	margin: 4px 0 0;

	color: #000000;

	font-family: "Vazirmatn", sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.8;

	text-align: right;
}


/* =========================================================
   CARDS ROW
========================================================= */

body.home .db-home-blog .db-home-blog__grid {
	display: flex !important;

	flex-direction: row !important;
	flex-wrap: nowrap !important;

	align-items: flex-start !important;
	justify-content: flex-start !important;

	gap: 24px !important;

	width: 1320px !important;
	max-width: 1320px !important;

	margin: 32px auto 0 !important;
	padding: 0 !important;

	direction: rtl;

	box-sizing: border-box;
}


/* =========================================================
   CARDS
========================================================= */

body.home .db-home-blog .db-home-blog__grid > .db-blog-card {
	display: block !important;

	flex: 0 0 312px !important;

	width: 312px !important;
	min-width: 312px !important;
	max-width: 312px !important;

	height: 409px !important;

	margin: 0 !important;

	border: 1px solid #DFDFDF;
	border-radius: 12px;

	box-sizing: border-box;
}

/* =========================================================
   IMAGE
========================================================= */

.db-home-blog .db-blog-card__image-link,
.db-home-blog .db-blog-card__image-wrap {
	width: 100%;
}


/* =========================================================
   HOME BLOG CARD — CONTENT STABILITY
========================================================= */

.db-home-blog .db-blog-card {
	display: flex;
	flex-direction: column;

	overflow: hidden;
}


/* تصویر اندازه خودش را حفظ کند */

.db-home-blog .db-blog-card__image-link {
	flex: 0 0 auto;
}


/* محتوای پایین کارت */

.db-home-blog .db-blog-card__content {
	display: flex;
	flex-direction: column;

	flex: 1 1 auto;
	min-height: 0;

	overflow: hidden;
}


/* =========================================================
   TITLE
   همیشه فضای دو خط برای عنوان رزرو می‌کنیم
========================================================= */

.db-home-blog .db-blog-card__title {
	display: -webkit-box;

	min-height: 62px;
	max-height: 62px;

	margin-bottom: 0;

	overflow: hidden;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	line-clamp: 2;
}


/* =========================================================
   META
========================================================= */

.db-home-blog .db-blog-card__meta {
	flex: 0 0 auto;
}


/* =========================================================
   EXCERPT
   متن توضیح هم کنترل شود
========================================================= */

.db-home-blog .db-blog-card__excerpt {
	display: -webkit-box;

	overflow: hidden;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	line-clamp: 2;
}


/* =========================================================
   FOOTER
   همیشه کف کارت
========================================================= */

.db-home-blog .db-blog-card__footer {
	flex: 0 0 auto;

	margin-top: auto;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

	body.home .db-home-blog .db-home-blog__grid {
		display: flex !important;

		flex-direction: column !important;

		align-items: center !important;

		width: 100% !important;
		max-width: 100% !important;

		margin: 24px auto 0 !important;

		gap: 20px !important;
	}


	body.home .db-home-blog .db-home-blog__grid > .db-blog-card {
		flex: none !important;

		width: 312px !important;
		min-width: 0 !important;
		max-width: 100% !important;

		height: 409px !important;
	}

/* =========================================================
   MOBILE — BLOG CARD TITLE
========================================================= */

.db-home-blog .db-blog-card__title {
	display: -webkit-box;

	width: 100%;

	min-height: 72px;
	max-height: 72px;

	margin: 0;

	overflow: hidden;

	font-size: 20px;
	line-height: 36px;

	white-space: normal;

	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;

	line-clamp: 2;
}


.db-home-blog .db-blog-card__title a {
	display: block;

	width: 100%;

	color: inherit;

	white-space: normal;

	overflow: visible;

	text-overflow: initial;

	line-height: inherit;
}

}