* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	min-height: 100%;
	overflow-x: hidden;
}

body, .site-main-container, .content-wrapper {
	background: transparent;
	width: 100%;
	margin: 0;
	padding: 0;
}

.slider-nextmatch-grid {
	display: none;
	margin-top: 3rem;
}

@media (max-width: 1024px) {
	.slider-nextmatch-grid {
		display: grid;
		grid-template-columns: 69% 30%;
		gap: 0.5rem;
		align-items: start;
	}
}

.slider-wrapper, .nextmatch-wrapper {
	width: 100%;
}

.front-slider, .next-match {
	background: #fff;
	box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	overflow: hidden;
	position: relative;
}

.mySwiper {
	width: 100%;
	height: 420px;
}

.swiper-slide {
	position: relative;
	width: 100%;
	height: 100%;
}

.swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.55) contrast(1.2);
}

.slide-text {
	position: absolute;
	bottom: 40px;
	right: 20px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
	z-index: 10;
}

.swiper-pagination {
	bottom: 0.5rem !important;
	z-index: 10;
}

.swiper-pagination-bullet {
	width: 0.35rem;
	height: 0.35rem;
	margin: 0 0.35rem !important;
	background-color: #555;
	opacity: 1;
}

.swiper-pagination-bullet-active {
	background-color: #fff;
}

.archive-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	margin: 0;
}

.archive-main-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 10px;
	width: 100%;
	align-items: start; 
}

.archive-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: #fff;
	padding: 0.5rem;
	height: 100%; 
}


.left-column {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: #fff;
	height: auto;
	overflow: visible;
}

.news-tabs {
	display: flex;
	width: 100%;
	gap: 0.25rem;
}

.tab-button {
	flex: 1;
	background: #fff;
	padding: 0.8rem 0;
	cursor: pointer;
	font-weight: 500;
	text-align: center;
	color: #000;
	border: 1px solid #ddd;
	font-size: 0.88rem;
}

.tab-button.active {
	border-bottom: 2px solid #eb2121;
	color: #eb2121;
}

.archive-main {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: #fff;
	padding: 0.5rem;
	height: auto;
	overflow: visible;
}

.news-content {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tab-box {
	display: none;
	flex-direction: column;
	gap: 0.8rem;
}

.tab-box.active {
	display: flex;
}

.news-item {
	display: flex;
	flex-direction: row-reverse;
	gap: 0.8rem;
	border-bottom: 1px solid #eee;
	padding: 0.5rem 0;
}

.news-thumb img {
	width: 180px;
	height: 100px;
	object-fit: cover;
	border-radius: 5px;
}

.news-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	margin-right: 0.5rem;
}

.news-title {
	margin: 0.5rem 0;
	font-size: 1rem;
	color: #222;
	font-weight: 600;
}

.meta {
	margin-top: auto;
	display: flex;
	gap: 5rem;
	font-size: 0.7rem;
	color: #a3a3a3;
	padding-bottom: 0.3rem;
}

.meta-date, .meta-time, .meta-comments {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.posts-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.post-card {
	flex: 0 0 calc(33.333% - 0.5rem);
	background: #fff;
	display: flex;
	flex-direction: column;
	border: 1px solid #ccc;
	overflow: hidden;
	height: 240px;
}

.post-card a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.post-thumb {
	width: 100%;
	height: 70%;
}

.post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-title {
	font-size: 1rem;
	text-align: center;
	margin: 0.5rem 0;
}

.post-meta {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: #555;
	margin-bottom: 0.8rem;
}

.archive-sidebar {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: #fff;
	padding: 0.5rem;
	height: auto;
}
.news-content,
.news-content-wrapper,
.archive-main,
.left-column-grid {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}


@media (min-width: 769px) {
	.news-thumb {
		overflow: hidden;
	}
	.news-item {
		align-items: center;
		overflow: hidden;
		max-height: 121px;
		min-height: 121px;
	}
	.archive-sidebar {
		height:100%;
	}
	.news-info {
		justify-content: space-between;
		min-height: 100px;
	}
	.news-title {
		margin-bottom: 0 !important;

	}
}

@media (max-width: 768px) {
	.archive-main-wrapper {
		display: block;
	}
	.page-template-template-newspapers .archive-container {
		padding:0 !important;
	}
	.sidebar,
	#sidebar,
	.site-sidebar,
	.archive-sidebar {
		display: none !important;
		visibility: hidden !important;
	}

	body, html {
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		overflow-x: hidden !important;
		background: #fff !important;
	}

	.site-main-container,
	.content-wrapper,
	.archive-main-wrapper,
	.archive-main {
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		background: #fff !important;
	}

	.archive-main-wrapper {
		padding-top: 4rem !important;
		padding-bottom: 0 !important;
		min-height: calc(100vh - 4rem);
	}

	.news-tabs-wrapper {
		margin-bottom: 0 !important;
		padding: 0 !important;
		width: 100% !important;
	}

	.news-tabs {
		width: 100% !important;
		margin: 0 !important;
		padding: 0.3rem 0 !important;
		gap: 0 !important;
		justify-content: space-between;
	}

	.tab-button {
		flex: 1 !important;
		width: 100% !important;
		text-align: center;
		padding: 0.5rem 0 !important;
		margin: 0 !important;
		font-size: 0.8rem !important;
		border: none !important;
		background: transparent !important;
		color: #000 !important;
	}

	.tab-button.active {
		border-bottom: 2px solid #eb2121 !important;
		color: #eb2121 !important;
	}

	.news-item {
		width: 100% !important;
		margin: 0 !important;
		padding: 0.3rem 0.3rem !important;
		border-bottom: 1px solid #eee;
		display: flex;
		align-items: center;
		gap: 0.6rem;
		flex-direction: row-reverse;
	}

	.news-thumb {
		width: 4rem;
		height: 4rem;
		flex-shrink: 0;
	}

	.news-thumb img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 0.3rem;
	}

	.news-info {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		margin-right: 0.5rem;
	}

	.posts-grid {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		gap: 0.5rem;
		display: flex;
		flex-wrap: wrap;
	}

	.post-card {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 0 !important;
		border: 1px solid #ddd;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		height: auto !important;
	}

	.post-card a {
		flex-direction: column !important;
		width: 100%;
		height: auto;
		display: flex;
	}

	.post-thumb {
		width: 100% !important;
		height: auto !important;
		flex-shrink: 0;
	}

	.post-thumb img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}

	.post-title {
		text-align: right;
		margin: 0.5rem 0.5rem;
		font-size: 0.95rem;
	}

	.post-meta {
		justify-content: flex-start;
		padding: 0 0.5rem 0.8rem;
		font-size: 0.7rem;
	}

	.tab-box#روزنامه-ها .posts-grid {
		display: flex;
		flex-direction: column;
		gap: 0.5rem !important;
		width: 100% !important;
	}

	.tab-box#روزنامه-ها .post-card {
		border-radius: 0 !important;
		height: auto !important;
		flex-direction: column !important;
		align-items: flex-start;
		padding: 0 !important;
	}

	.tab-box#روزنامه-ها .post-card a {
		flex-direction: column !important;
		width: 100% !important;
		height: auto !important;
		display: flex;
	}

	.tab-box#روزنامه-ها .post-thumb {
		width: 100% !important;
		height: auto !important;
	}

	.tab-box#روزنامه-ها .post-thumb img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}

	.tab-box#روزنامه-ها .post-title {
		font-size: 0.95rem;
		text-align: right;
		margin: 0.5rem 0.5rem;
	}

	.tab-box#روزنامه-ها .post-meta {
		justify-content: flex-start;
		padding: 0 0.5rem 0.5rem;
	}
}
