html,
.home {
	overflow-x: hidden;
}

body.home {
	width: 100%;
	max-width: 100vw;
}

.home .site-content-wrapper {
	padding-right: 0;
	padding-left: 0;
}
.home-overlay-card,
.home-plain-card {
	max-width: 100%;
	min-width: 0;
}

.home-section-head {
	text-align: right;
}

.home-section-head h2{
	margin-bottom: 8px;
}

.home-section-head-row {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.home-card-img,
.home-banner-img,
.home-tag-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-overlay-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--color-background-surface-disable);
	box-shadow: var(--shadow-1);
}

.home-overlay-card::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	content: "";
	background: linear-gradient(180deg, rgba(4, 10, 31, 0) 35%, rgba(4, 10, 31, 0.82) 100%);
	pointer-events: none;
}

.home-overlay-media {
	display: block;
	width: 100%;
	height: 100%;
}

.home-overlay-content {
	position: absolute;
	right: 24px;
	bottom: 24px;
	left: 24px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	text-align: justify;
}

.home-overlay-content h3 {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}

.home-overlay-content h3 a,
.home-overlay-meta {
	color: var(--Light-Mode-Background);
}

.home-cat-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 4px 8px;
	border-radius: 24px;
	color: var(--color-on-surface-high-emphasis);
	background: var(--color-background-surface-disable);
}

.home-card-stats {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	display: flex;
	gap: 8px;
}

.home-card-stats > div {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 4px 9px;
	border-radius: 999px;
	color: var(--color-on-surface-medium-emphasis);
	background: rgba(255, 255, 255, 0.86);
	font-size: 11px;
	line-height: 1;
}

.home-card-stats img {
	width: 16px;
	height: 16px;
}

.home-content-section{
	padding: 0 24px 0 24px;
}

.home-hero-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.home-hero-main {
	width: 100%;
	height: 324px;
	order: 1;
}

.home-hero-side {
	display: flex;
	order: 2;
	gap: 12px;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 4px;
	scroll-snap-type: x mandatory;
}

.home-hero-small {
	flex: 0 0 238px;
	height: 192px;
	scroll-snap-align: start;
}

.home-latest-grid,
.home-stories-grid,
.home-world-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.home-latest-card,
.home-story-card {
	height: 220px;
}

.home-stories-grid .home-list-row{
	flex-direction: row-reverse;
}

.home-stories-grid .home-list-row span img{
	width: 7px;
}

.home-stories-grid .home-list-row .home-list-text{
	flex-grow: 1;
}

.home-stories-grid .home-list-row::after{
	content: '';
	display: block;
	background-color: var(--Dark-Mode-On-Surface-Secondary-Disabled);
	width: 10px;
	height: 10px;
	border-radius: 100%;
}

.home-list-stack {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.home-list-row {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 66px;
	padding: 8px 16px;
	border: 1px solid var(--color-background-surface-disable);
	border-radius: 12px;
}

.home-list-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--color-background-surface-disable);
}

.home-list-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-list-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	line-height: 1;
}

.home-list-text {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.home-list-text h3 {
	overflow: hidden;
	color: var(--color-on-surface-high-emphasis);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-list-text small {
	color: var(--color-on-surface-medium-emphasis);
	font-size: 12px;
	line-height: 1.5;
	font-weight: 400;
}

.home-banner-wrap {
	position: relative;
	display: block;
	overflow: hidden;
}


.home-guide-tabs {
	display: flex;
	max-width: 100%;
	gap: 8px;
	overflow-x: auto;
	white-space: nowrap;
}

.home-guide-tabs button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 12px 16px;
	border: 0;
	border-radius: 24px;
	color: var(--color-on-surface-high-emphasis);
	background: transparent;
	cursor: pointer;
	font-family: 'IranSansX', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.home-guide-tabs .active {
	color: #fff;
	background: var(--Light-Mode-Secondary);
	box-shadow: 0px 5px 5px 0px rgba(97, 100, 117, 0.12);
}

.home-guide-grid.is-loading {
	opacity: .55;
	pointer-events: none;
}

.home-guide-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.home-guide-col {
	display: grid;
	gap: 12px;
}

.home-plain-card {
	overflow: hidden;
	border: 1px solid var(--color-background-surface-disable);
	background: #fff;
	/* box-shadow: var(--shadow-1); */
}

.home-plain-media {
	position: relative;
	height: 172px;
	overflow: hidden;
}

.home-plain-media .home-cat-pill {
	position: absolute;
	top: 10px;
	right: 10px;
}

.home-plain-body {
	padding: 16px;
}

.home-plain-body h3 {
	font-size: 16px;
	font-weight: 400;
	margin-bottom: 12px;
	line-height: 1.5;
	color: var(--color-on-surface-high-emphasis);
}

.home-card-author {
	margin-bottom: 4px;
}

.home-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	color: var(--color-on-surface-medium-emphasis);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
}

.home-card-meta.has-avatar {
	gap: 6px;
}

.home-author-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
}

.home-guide-featured .home-plain-media {
	height: 320px;
}

.home-guide-featured .home-plain-body {
	padding: 16px;
}

.home-guide-featured .home-plain-body h3 {
	font-size: 16px;
}

.home-stories{
	border-top: 1px solid var(--color-background-surface-disable);
    padding-top: 48px;
}

.home-story-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	color: var(--color-on-surface-medium-emphasis);
	font-size: 12px;
}

.home-story-head > span{
    min-height: 24px;
    background: var(--color-background-surface-disable);
}

.home-story-head a {
	color: var(--Light-Mode-Secondary);
}

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

.home-tag-grid .home-tag-item {
	position: relative;
}

.home-tag-grid .home-tag-item span{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--Light-Mode-Background);
}

.home-world-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.st-popular-destinations{
	margin-top: 0;
}

@media (min-width: 768px) {

	.home-hero-grid {
		display: grid;
		grid-template-areas: "side main";
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.33fr);
		gap: 16px;
		direction: ltr;
	}

	.home-hero-grid > * {
		direction: rtl;
	}

	.home-hero-main {
		grid-area: main;
		height: 520px;
		order: initial;
	}

	.home-hero-side {
		display: grid;
		grid-area: side;
		grid-template-columns: 1fr 1fr;
		gap: 16px;
		margin-inline: 0;
		padding-inline: 0;
		overflow: visible;
	}

	.home-hero-small {
		width: auto;
		height: 252px;
	}

	.home-latest-grid,
	.home-stories-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.home-latest-card,
	.home-story-card {
		height: 220px;
	}

	.home-guide-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
		gap: 16px;
		direction: ltr;
	}

	.home-guide-grid > * {
		direction: rtl;
	}

	.home-guide-col {
		gap: 16px;
	}

	.home-plain-media {
		height: 188px;
	}

	.home-guide-featured .home-plain-media {
		height: 414px;
	}

	.home-tag-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.home-world-grid {
		grid-template-columns: 320px minmax(0, 1fr);
		gap: 18px;
		direction: ltr;
	}

	.home-world-grid > * {
		direction: rtl;
	}

	.home-world-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.home-section-head-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.home-guide-tabs {
		width: 100%;
	}

	.home-world-sidebar {
		order: 2;
	}

	.home-world-main {
		min-width: 0;
	}

	.home-content-section .home-section-head h2{
		font-size: 16px;
		margin-bottom: 4px;
	}

	.home-list-row{
		padding: 12px;
	}

	.home-list-text{
		gap: 0;
	}

	.home-guide-tabs button{
		line-height: 16px;
	}

	.home-list-text h3{
		font-size: 14px;
	}

	.home-hero-side {
		max-width: none;
		margin-right: -24px;
		margin-left: -24px;
		padding-right: 24px;
		padding-left: 0;
	}

	.home-hero-side,
	.home-latest-grid,
	.home-guide-grid,
	.home-world-cards {
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 24px;
		-webkit-overflow-scrolling: touch;
	}

	.home-hero-side::-webkit-scrollbar,
	.home-latest-grid::-webkit-scrollbar,
	.home-guide-grid::-webkit-scrollbar,
	.home-world-cards::-webkit-scrollbar,
	.home-guide-tabs::-webkit-scrollbar {
		display: none;
	}

	.home-hero-side,
	.home-latest-grid,
	.home-guide-grid,
	.home-world-cards,
	.home-guide-tabs {
		scrollbar-width: none;
	}

	.home-latest-grid,
	.home-guide-grid,
	.home-world-cards {
		display: flex;
		gap: 16px;
		margin-inline: -24px;
		padding-inline: 24px;
		padding-bottom: 4px;
	}

	.home-guide-grid {
		align-items: stretch;
	}

	.home-guide-col {
		display: contents;
	}

	.home-latest-col,
	.home-world-cards > .home-plain-card {
		flex: 0 0 min(286px, calc(100vw - 72px));
		scroll-snap-align: start;
	}

	.home-guide-grid > .home-guide-col > .home-plain-card,
	.home-guide-grid > .home-guide-featured {
		flex: 0 0 min(286px, calc(100vw - 72px));
		scroll-snap-align: start;
	}

	.home-guide-grid .home-plain-card {
		display: flex;
		flex-direction: column;
	}

	.home-guide-grid .home-plain-body {
		display: flex;
		flex: 1;
		flex-direction: column;
	}

	.home-guide-grid .home-plain-media,
	.home-guide-featured .home-plain-media {
		height: 188px;
	}

	.home-guide-grid > .home-guide-featured {
		order: -1;
	}

	.home-tag-grid .home-tag-item span{
		padding: 4px 10px;
    	font-size: 15px;
	}

	.home-hero-side article:last-child{
		margin-left: 24px;
	}
}

@media (min-width: 1200px) {
	.home-content-section{
		padding-right: 0;
		padding-left: 0;
	}
}
