section#blogs {
	font-family: var(--default-font);
	margin: 60px var(--section-margin) 0 var(--section-margin);
	position: relative;
}

section#blogs form[role='search'] {

}

section#blogs form[role='search']:before {
	content: url('/static/images/search.svg');
	filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(587%) hue-rotate(167deg) brightness(97%) contrast(89%);
	position: absolute;
	width: 20px;
	top: 13px;
	margin: auto 14px auto auto;
}

html[dir='ltr'] section#blogs form[role='search']:before {
	margin: auto auto auto 14px;
}

section#blogs input[type='search']:focus {
	outline-style: none;
	box-shadow: none;
	border-color: var(--btn-primary-color);
	color: black;
}

section#blogs input[type='search'] {
	text-align: right;
	direction: var(--default-direction);
	padding-right: 50px;
	height: 45px;
	border-radius: 30px;
	background-color: #f5f5f5;
	border: 2px solid transparent;
	caret-color: black;
	-webkit-appearance: textfield;
}

html[dir='ltr'] section#blogs input[type='search'] {
	text-align: left;
	direction: ltr;
	padding-right: 0;
	padding-left: 50px;
}

section#blogs input[type="search"]::-webkit-search-decoration,
section#blogs input[type="search"]::-webkit-search-cancel-button,
section#blogs input[type="search"]::-webkit-search-results-button,
section#blogs input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance:none;
}

section#blogs input[type='search']::placeholder {
	font-family: var(--default-font);
	color: #a8a8a8;
	font-weight: 500;
	margin-right: 20px;
	text-align: right;
}

html[dir='ltr'] section#blogs input[type='search']::placeholder {
	margin-right: 0;
	margin-left: 20px;
	text-align: left;
}

section#blogs h2 {
	font-family: var(--default-font);
	font-size: 24px;
	font-weight: 700;
	line-height: 40px;
	letter-spacing: 0;
	color: #08416E;
	padding: 0 0 0 0;
	border-radius: 0 0 0 0;
	max-width: 680px;
	margin-bottom: 40px;
}

section#blogs h2::before {
	content: "";
	display: inline-block;
	margin-left: 15px;
	background-color: var(--btn-special-color);
	width: 10px;
	aspect-ratio: 1 / 1;
	border-radius: 20%;
	transform: rotateZ(45deg);
}

html[dir='ltr'] section#blogs h2::before {
	margin-left: 0;
	margin-right: 15px;
	margin-bottom: 5px;
}

section#blogs .blogs__main-container {
	border-radius: 45px 45px 45px 45px;
	box-shadow: 0px 0px 24px 1px rgba(121, 160, 190, 0.24);
	background-color: white;
	display: flex;
	flex-direction: column;
}

section#blogs .d-grid {
	grid-template-columns: repeat(auto-fill, 360px);
}

@media only screen and (max-width: 420px) {
	section#blogs .d-grid {
		grid-template-columns: repeat(auto-fill, 320px);
	}
	.home-blog__blog-card {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

.home-blog__blogs-card {
	padding: 0;
	cursor: pointer;
	margin-top: 15px;
	height: 540px;
	width: 100vw;
}

.home-blog__blog-card {
	background-color: white;
	border-radius: 45px 45px 45px 45px;
	box-shadow: 0px 0px 24px 1px rgba(121, 160, 190, 0.24);
	max-width: 320px;
	min-width: 320px;
	height: 460px;
	direction: var(--default-direction);
	cursor: pointer;
}

.home-blog__blog-card p {
	direction: var(--default-direction);
	unicode-bidi: embed;
	font-size: 16px;
	font-weight: 400;
	word-break: break-word;
	word-wrap: break-word;
	hyphens: manual;
	text-align: justify;
	color: #404040;
	line-height: 24px;
}

.home-blog__blog-image {
	opacity: 1;
	transition: opacity ease-in-out 1s;
	width: 100%;
	max-height: 250px;
	margin: 0 auto;
}

.home-blog__blog-image img {
	max-height: 260px;
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 45px 45px 0 0;
	object-fit: cover;
}

.home-blog__blog-text {
	opacity: 1;
	transition: opacity ease-in-out 1s;
	width: 288px;
	margin: 0 auto;
}

.home-blog__blog-text h5, .home-blog__hover-content h5 {
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 500;
	color: #08416E;
	line-height: 30px;
	letter-spacing: 0;
	padding: 0 0 0 0;
	margin: 20px 0 0 0;
	border-radius: 0 0 0 0;

	text-overflow: ellipsis;
	text-wrap: nowrap;
	overflow: clip;
}

.home-blog__blog-text p, .home-blog__hover-content p {
	display: -webkit-box;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 400;
	height: 95px;
	line-height: 30px;
	direction: rtl;
	text-overflow: ellipsis;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	unicode-bidi: embed;
	word-break: break-word;
	word-wrap: break-word;
	hyphens: manual;
	text-align: justify;
	letter-spacing: 0;
	padding: 0 0 0 0;
	margin: 0 0 0 0;
	border-radius: 0 0 0 0;
}

.home-blog__blog-text span, .home-blog__hover-content span {
	place-self: end;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 30px;
	color: #08416E;
	letter-spacing: 0;
	padding: 0 0 0 0;
	margin: 20px 0 0 10px;
	border-radius: 0 0 0 0;
	direction: ltr;
}

.home-blog__hover-cover, .home-blog__hover-content {
	/*display: none !important;*/
	transition: opacity ease-in-out 1s;
	opacity: 0;
}

.home-blog__blog-card:hover .home-blog__blog-image, .home-blog__blog-card:hover .home-blog__blog-text {
	/*display: none !important;*/
	opacity: 0;
}

.home-blog__blog-card:hover .home-blog__hover-cover, .home-blog__blog-card:hover .home-blog__hover-content {
	display: flex !important;
	opacity: 1
}

.home-blog__hover-cover {
	position: absolute;
	z-index: 2;
	height: 460px;
	width: 320px;
	border-radius: 45px 45px 45px 45px;
	background-repeat: no-repeat;
	background-size: cover;
	filter: blur(5px);
}

.home-blog__hover-content {
	position: absolute;
	z-index: 3;
	height: 460px;
	width: 320px;
	background-color: rgba(0, 87, 172, 0.4);
	border-radius: 45px 45px 45px 45px;
}

.home-blog__hover-content h5, .home-blog__hover-content p, .home-blog__hover-content span {
	color: white;
}

.home-blog__hover-content h5 {
	margin: 20px 0 20px 0;
}

.home-blog__hover-content a {
	position: absolute;
	bottom: 25px;
	left: 18px;
	color: white;
	background-color: var(--btn-special-color);
	border-radius: 20px;

	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 400;
	line-height: 30px;
	direction: rtl;
}
