.archive-sort-form{
    position: relative;
    font-family: 'IranSansX', sans-serif;
}

.archive-sort-select{
    border: 1px solid var(--color-on-surface-disable);
    background: #fff;
    padding-right: 38px;
    font-family: 'IranSansX', sans-serif;
    cursor: pointer;
    min-width: 138px;
    text-align: right;
}

.archive-sort-select:focus-visible{
    border: 1px solid var(--color-on-surface-disable);
    outline: none;
}

.select-icon{
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
    color: #666;
}

.archive-sort-menu{
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 99999;
	display: none;
	min-width: 100%;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background-color: #fff;
	border: 0;
	border-radius: 0.5rem;
	box-shadow: 0 0 #0000, 0 0 #0000, 0 8px 10px 0 #6164750f, 0 3px 14px 0 #6164751f, 0 5px 5px 0 #6164751f;
}

.archive-sort-form.is-open .archive-sort-menu{
	display: block;
}

.archive-sort-menu button{
	display: block;
	width: 100%;
	padding: 12px;
	border: 0;
	background: transparent;
	color: var(--color-on-surface-high-emphasis);
	font-family: 'IranSansX', sans-serif;
	text-align: right;
	white-space: nowrap;
	cursor: pointer;
}

.archive-sort-menu button:hover,
.archive-sort-menu button:focus-visible,
.archive-sort-menu button.active{
	color: var(--color-secondary);
	border-radius: 0.5rem;
	outline: none;
}

.archive-post-card{
    border: 1px solid var(--color-background-surface-disable);
    overflow: hidden;
}

.search-empty-state{
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 360px;
	margin: 56px auto 80px;
	text-align: center;
}

.search-empty-image{
	display: block;
	width: 160px;
	height: auto;
	margin-bottom: 32px;
}

.search-empty-title{
	margin: 0 0 12px;
}

.search-empty-text{
	max-width: 320px;
	margin: 0 0 28px;
	line-height: 1.8;
}

.search-empty-link{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 24px;
	border: 2px solid var(--Light-Mode-Secondary);
	border-radius: 8px;
	color: var(--Light-Mode-Secondary);
	background: #fff;
	text-decoration: none;
}

.search-empty-link:hover,
.search-empty-link:focus-visible{
	color: #fff;
	background: var(--Light-Mode-Secondary);
	outline: none;
}

.archive-load-more-wrap{
	width: 100%;
}

.archive-load-more-btn{
	font-feature-settings: "ss04";
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 12px 24px;
	border: 2px solid var(--Light-Mode-Secondary);
	border-radius: 32px;
	background: #fff;
	color: var(--Light-Mode-Secondary);
	font-family: 'IranSansX', sans-serif;
	cursor: pointer;
	transition:
		background .2s ease,
		color .2s ease,
		opacity .2s ease;
}

.archive-load-more-btn:hover,
.archive-load-more-btn:focus-visible{
	background: var(--Light-Mode-Secondary-Hover);
	/* color: #fff; */
	outline: none;
}

.archive-load-more-btn:disabled{
	cursor: wait;
	opacity: .65;
}


.post-thumb{
	position: relative;
	display: block;
}

.post-main-archive{
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	text-decoration: none;
	transition: .2s ease;
    background-color: var(--color-background-surface-disable);
}



.post-thumb img{
	display: block;
	width: 100%;
	height: 150px;
}

.archive-post-card .post-thumb img{
		height: 180px;
}

body.author .archive-post-card .post-thumb a:last-child{
	padding: 0;
}

body.author .archive-post-card .post-thumb img{
	border-radius: 0;
}

body.author .archive-post-card .post-thumb .post-main-archive{
	top: 12px;
	right: 12px;
}

body.search .archive-topbar{
	flex-wrap: wrap;
}

body.search .archive-sort-form{
		margin-inline-start: auto;
	}


@media (min-width: 768px) {
    .archive-page > div{
        flex-direction: row;
        gap: 24px;
    }

    .archive-content{
        width: calc(70% - 24px);
    }

    .archive-sidebar{
        width: 30%;
    }

    .archive-post-card{
        display: flex;
        gap: 16px;
        align-items: center;
    }

    .archive-post-card:hover{
        box-shadow: 0px 1px 10px 0px rgba(97, 100, 117, 0.12);
    }

    .archive-post-card .post-content{
        width: 100%;
    }

    .archive-post-card .post-thumb{
        max-width: 230px;
        align-self: stretch;
    }

	.archive-post-card .post-thumb a:last-child{
		display: block;
		height: 100%;
		padding: 16px;
		padding-left: 0;
	}

	.archive-post-card .post-thumb img{
		border-radius: 12px;
		height: 100%;
	}

    .post-meta-data{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .post-meta-data .post-meta{
        display: flex;
    }

    .post-meta-data .post-meta >div{
        background-color: var(--color-background-surface-disable);
    }

	.post-main-archive{
		position: absolute;
		top: 28px;
		right: 28px;
	}

	body.author .archive-post-card .post-thumb img{
		height: 220px;
	}

	body.category .archive-post-card .post-thumb img{
		width: 300px;
		height: 120px;
	}

	.subtitle-1{
		font-size: 19px;
		line-height: 24px;
		font-weight: 500;
	}

	body.search .archive-topbar{
		flex-wrap: nowrap;
		gap: 16px;
	}

	
}
