@font-face {
	font-family: Shabnam;
	src: url("fonts/Shabnam.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Shabnam;
	src: url("fonts/Shabnam-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.amin-home-magazine,
.amin-home-magazine * {
	box-sizing: border-box;
}

.amin-home-magazine {
	--amin-magazine-orange: #f74506;
	width: 100%;
	max-width: 100%;
	direction: rtl;
	font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.elementor-element:has(.amin-home-magazine),
.elementor-widget:has(.amin-home-magazine),
.elementor-widget-container:has(.amin-home-magazine) {
	overflow: visible !important;
}

.amin-home-magazine__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

h2.amin-home-magazine__title,
.amin-home-magazine__title,
.elementor-element h2.amin-home-magazine__title,
.elementor-widget h2.amin-home-magazine__title {
	display: inline-flex !important;
	flex: 0 0 auto;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--amin-magazine-color, #1a2332) !important;
	font-family: var(--amin-magazine-font, Vazirmatn, Tahoma, sans-serif);
	font-size: var(--amin-magazine-size, 22px);
	line-height: 1.4;
	white-space: nowrap;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.amin-home-magazine__title-a,
.amin-home-magazine__title-b {
	display: inline;
	color: inherit !important;
	font-size: inherit;
	line-height: inherit;
}

.amin-home-magazine__title-a {
	font-weight: 400;
}

.amin-home-magazine__title-b {
	font-weight: 700;
}

.amin-home-magazine__line {
	flex: 1 1 auto;
	min-width: 24px;
	height: 1px;
	background: #e6edf3;
}

.amin-home-magazine__all,
.elementor-element .amin-home-magazine__all,
.elementor-widget .amin-home-magazine__all,
.amin-home-magazine__all:hover,
.amin-home-magazine__all:focus,
.amin-home-magazine__all:focus-visible,
.amin-home-magazine__all:active {
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 7px 16px !important;
	border: 1px solid var(--amin-magazine-orange) !important;
	border-radius: 8px !important;
	background: #fff !important;
	background-color: #fff !important;
	color: var(--amin-magazine-orange) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none !important;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.amin-home-magazine__all:hover,
.elementor-element .amin-home-magazine__all:hover {
	background: var(--amin-magazine-orange) !important;
	background-color: var(--amin-magazine-orange) !important;
	color: #fff !important;
	border-color: var(--amin-magazine-orange) !important;
}

.amin-home-magazine__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.amin-home-magazine__card,
.elementor-element .amin-home-magazine__card,
.elementor-widget .amin-home-magazine__card,
.amin-home-magazine__card:hover,
.amin-home-magazine__card:focus {
	position: relative;
	display: block !important;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 18px;
	background: #2a1a16;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: none !important;
	outline: none !important;
}

.amin-home-magazine__img,
.amin-home-magazine__img--empty,
.elementor-element .amin-home-magazine__img,
.elementor-widget .amin-home-magazine__img,
.elementor-widget-container .amin-home-magazine__img,
.elementor-element .amin-home-magazine img.amin-home-magazine__img {
	position: absolute !important;
	inset: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 100% !important;
	min-height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	object-fit: cover !important;
	object-position: center center !important;
	transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.amin-home-magazine__img--empty {
	background: #5a2418;
}

.amin-home-magazine__card:hover .amin-home-magazine__img {
	transform: scale(1.045);
}

.amin-home-magazine__mask {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(247, 69, 6, 0.18) 0%, rgba(247, 69, 6, 0.38) 48%, rgba(90, 22, 8, 0.58) 100%);
	pointer-events: none;
}

.amin-home-magazine__body {
	position: absolute;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px 16px 16px;
	color: #fff;
}

.amin-home-magazine__date,
.elementor-element .amin-home-magazine__date {
	display: block;
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
}

h3.amin-home-magazine__name,
.amin-home-magazine__name,
.elementor-element h3.amin-home-magazine__name,
.elementor-widget h3.amin-home-magazine__name {
	display: block !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.45;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.amin-home-magazine__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.75;
}

.amin-home-magazine__more,
.elementor-element .amin-home-magazine__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none !important;
	color: #fff !important;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
}

.amin-home-magazine__more svg {
	display: block;
	flex: 0 0 auto;
}

@media (max-width: 1199px) {
	.amin-home-magazine__head {
		flex-wrap: wrap;
	}

	.amin-home-magazine__title,
	.elementor-element h2.amin-home-magazine__title {
		white-space: normal;
	}

	.amin-home-magazine__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	h2.amin-home-magazine__title,
	.amin-home-magazine__title,
	.elementor-element h2.amin-home-magazine__title {
		justify-content: flex-start;
		font-size: 16px;
		white-space: normal;
		text-align: right;
	}

	.amin-home-magazine__head {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		margin-bottom: 14px;
	}

	.amin-home-magazine__line {
		display: block;
		min-width: 12px;
	}

	.amin-home-magazine__all,
	.elementor-element .amin-home-magazine__all {
		align-self: auto;
		padding: 6px 12px !important;
		font-size: 12px;
	}

	.amin-home-magazine__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.amin-home-magazine__card,
	.elementor-element .amin-home-magazine__card {
		border-radius: 14px;
	}

	.amin-home-magazine__body {
		padding: 12px 10px 10px;
	}

	h3.amin-home-magazine__name,
	.amin-home-magazine__name,
	.elementor-element h3.amin-home-magazine__name {
		font-size: 13px;
		margin: 0 0 6px !important;
	}

	.amin-home-magazine__excerpt {
		-webkit-line-clamp: 2;
		line-clamp: 2;
		margin: 0 0 8px;
		font-size: 11px;
		line-height: 1.55;
	}

	.amin-home-magazine__date {
		font-size: 10.5px;
		margin: 0 0 6px;
	}
}
