:root {
	--primary-color: #eb2121;
	--text-dark: #141414;
	--bg-light: #f5f5f5;
}

html, body {
	width: 100%;
	background: var(--bg-light);
	font-family: 'Vazir', sans-serif;
}

.home-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0 0.5rem;
}

.slider-nextmatch-grid {
	display: grid;
	grid-template-columns: 69% 30%;
	gap: 10px;
	width: 100%;
	align-items: start;
}

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

.front-slider, .next-match {
	background: #fff;
	box-shadow: unset;
	overflow: hidden;
	position: relative;
	min-height: 420px;
}

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

.swiper-wrapper {
	height: 100%;
}

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

.swiper-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.front-slider .swiper-slide::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 50%;
	background: linear-gradient(to top, rgba(0, 0, 0, 1.5), rgba(0, 0, 0, 0));
	z-index: 1;
	width: 100%;
}

.slide-text {
	position: absolute;
	bottom: 40px;
	right: 20px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
	background: none;
	padding: 0;
	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;
}

.next-match {
	display: flex;
	flex-direction: column;
	direction: rtl;
	padding: 0;
	background: #fff;
	min-height: 420px;
}

.next-match-header {
	background: var(--primary-color);
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 1.25rem;
	font-size: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 0 2.5rem;
}

.next-match-content {
	padding: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.match-date {
	font-size: 1rem;
	font-weight: 600;
	color: #002244;
	margin: 0 auto;
	padding-top: 1rem;
}

.teams-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.team {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 45%;
}

.team-left {
	flex-direction: row;
	justify-content: flex-start;
	padding-left: 0.5rem;
}

.team-left .team-name {
	order: 1;
}

.team-left img {
	order: 2;
}

.team-right {
	flex-direction: row;
	justify-content: flex-end;
	padding-right: 0.5rem;
}

.team-right img {
	order: 1;
}

.team-right .team-name {
	order: 2;
}

.team img {
	width: 35px;
	height: 35px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
}

.team-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: #111;
}

.match-time {
	font-size: 0.9rem;
	font-weight: 600;
	color: #111;
	width: 20%;
	text-align: center;
}

.match-timer {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.2rem;
	margin-top: 0;
	flex-wrap: nowrap;
	flex-direction: row-reverse;
}

.timer-card {
	background: var(--primary-color);
	color: #fff;
	width: 24px;
	height: 30px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	border-radius: 2px;
	text-align: center;
}

.timer-card .time {
	font-size: 0.75rem;
	font-weight: bold;
}

.timer-card .label {
	font-size: 0.42rem;
	margin-top: 0.02rem;
	opacity: 0.9;
}

.timer-end {
	background-color: #444;
	color: #fff;
	padding: 0.17rem 0.22rem;
	border-radius: 2px;
	text-align: center;
	font-weight: bold;
	margin-top: 0.22rem;
}



.news-videos-wrapper {
	display: flex;
	gap: 0.75rem;
	direction: rtl;
	margin-top: 20px;
	justify-content: flex-start;
}

.news-section {
	width: 69%;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.news-tabs {
	display: flex;
	gap:10px;
	width: 100%;
	overflow-x: auto;
}

.tab-button {
	flex: 1;
	background: #fff;
	padding: 0.8rem 0;
	cursor: pointer;
	font-weight: 500;
	text-align: center;
	color: #000;
	border: none;
	transition: 0.3s;
	font-size: 0.88rem;
	border-radius: 0;
	margin-bottom: 0.25rem;
}

.tab-button.active,
.tab-button:hover {
	background: #fff;
	color: rgb(237, 27, 36);
	border-style: solid;
	border-width: 0px 0px 3px 0px;
	border-color: #ED1B24;
}

.news-content {
	background: #fff;
	box-shadow: 0 2px 6px rgba(143, 20, 20, 0);
	height: 40rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	border-radius: 0;
}

.news-item {
	display: flex;
	flex-direction: row-reverse;
	align-items: stretch;
	gap: 0.8rem;
	border-bottom: 1px solid rgb(188, 188, 188);
	padding: 0.5rem;
}

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

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

.news-title {
	font-size: 1rem;
	color: #4E5468;
	font-weight: 400;
	margin-bottom: 3rem;
	padding: 10px 0px 0px 20px;
}

.meta {
	margin-top: auto;
	display: flex;
	gap: 3rem;
	font-size: 0.7rem;
	color: #979696;
	padding-bottom: 0rem;
}

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

.meta-icon {
	width: 10px;
	height: 10px;
	display: inline-block;
	filter: grayscale(100%) brightness(0.7);
	opacity: 0.8;
}


.date-icon {
	background: url('path-to-date-icon.svg') no-repeat center/contain;
}

.time-icon {
	background: url('path-to-time-icon.svg') no-repeat center/contain;
}

.comment-icon {
	background: url('path-to-comment-icon.svg') no-repeat center/contain;
}

.more-news-section {
	flex: 1.2;
	display: flex;
	margin: 0;
	padding: 0;
	margin-bottom: 0.5rem;
}

.more-news-bar {
	height: 2.75rem;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
	color: #222;
	padding: 1rem;
	box-sizing: border-box;
}

.more-news-bar span {
	font-size: 1rem;
}

.more-news-bar a {
	height: 1.25rem;
	width: 4.5rem;
	background: #efefef;
	color: #000;
	font-size: 0.85rem;
	line-height: 1.25rem;
	text-align: center;
	border-radius: 0;
	border-radius: 0.2pc;
}



.videos-section {
	width: 30%;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0.5rem;
	min-height: 45rem;
}

.videos-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 0.5rem;
}

.videos-header h3 {
	margin: 0;
	font-size: 1rem;
}

.videos-header .more-btn {
	height: 1.25rem;
	width: 4rem;
	background: #efefef;
	color: #000;
	font-size: 0.85rem;
	text-align: center;
	border-radius: 0.2pc;
	display: inline-block;
	text-decoration: none;
}


.videos-list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	height: 100%;
}

.video-item {
	position: relative;
	width: 100%;
	cursor: pointer;
	overflow: hidden;
	border-radius: 0;
}

.video-item video.video-player {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 100%);
	pointer-events: none;
	z-index: 1;
}

.video-item .play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 50px;
	height: 50px;
	background-color: red;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	z-index: 2;
}

.video-item .video-title {
	position: absolute;
	bottom: 2.5rem;
	right: 3rem;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 500;
	color: #fff;
	background: none;
	text-decoration: none;
	z-index: 2;
}

.photo-report-section {
	display: block;
	background: #fff;
	min-height: 19rem;
	padding: 10px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.08);
	margin-top: 0.5rem;
	margin-bottom: 3rem;
	box-sizing: border-box;
}

.photo-report-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
}

.more-btn {
	height: 1.25rem;
	width: 4.5rem;
	background: #efefef;
	color: #000;
	font-size: 0.85rem;
	line-height: 1.25rem;
	text-align: center;
	border-radius: 0.2pc;
	display: inline-block;
	text-decoration: none;
	font-weight: 500;
}


.photo-report-title {
	font-size: 16px;
	font-weight: 400;
	color: #000630;
	margin: 0;
	line-height: 1.5rem;
}

.photo-report-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 0.5rem;
	padding: 0 0.25rem 0.25rem 0.25rem;
}

.photo-report-item {
	display: flex;
	flex-direction: column;
}

.photo-report-item img {
	width: 100%;
	max-width: 248px;
	height: 150px;
	object-fit: cover;
}

.photo-report-item-title {
	margin-top: 0.4rem; 
	color: #4E5468;
	font-size: 14px;
	font-weight: 300;
	line-height: 25px;
}

.photo-report-meta {
	color: #adadad;
	line-height: 1.3em;
	font-size: 11px;
	font-weight: 400;
	margin-bottom: 5px;
	margin-top: -0.5rem;
	display: flex;
	justify-content: flex-start;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.three-flex-section {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	min-height: unset;
}

.flex-box {
	background: #fff;
	padding: 1rem;
	width: 100%;

}

.flex-box.flex-28 { max-width: 28rem; }
.flex-box.flex-34 { max-width: 34rem; }

.flex-header {
	text-align: center;
	color: #000;
	font-size: 1.1rem;
	margin-bottom: 0.75rem;
	font-weight: normal;
}

.flex-box .tabs {
	display: flex;
	justify-content: space-between;
	gap: 0.05rem;
	margin-bottom: 0.75rem;
}

.flex-box .tab {
	background: #ececec;
	border: none;
	color: #000;
	padding: 0.4rem 0;
	cursor: pointer;
	font-size: 0.85rem;
	flex: 1;
	text-align: center;
	border-radius: 0;
	transition: none;
}

.flex-box .tab.active {
	background: var(--primary-color);
	color: #fff;
}

.flex-box .tab:hover {
	background: #ececec !important;
	color: #000 !important;
}

.flex-box .tab-content {
	width: 100%;
}

.flex-box table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.75rem;
	border: none;
	background: #fff;
}

.flex-box table th,
.flex-box table td {
	text-align: center;
	padding: 0.25rem 0.25rem;
	border: none;
}

.flex-box table td img {
	width: 2rem;
	height: 2rem;
	object-fit: cover;
	border-radius: 50%;
}

.flex-box table td span {
	font-size: 0.7rem;
}

.newspaper-section {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-bottom: 0;
	margin-top: 20px;
}
.wrapper {
	height: calc(100% - 29px);
	display: flex;
	flex-wrap: wrap;
}
.newspaper-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-right: 0.5rem;
	font-size: 0.95rem;
	font-weight: normal;
	margin-bottom: 0.5rem;
}

.newspaper-slider {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: auto;
}

.newspaper-slider img.np-img {
	width: auto;
	height: auto;
	object-fit: cover;
	object-position: top;
	cursor: zoom-in;
	display: block;
	filter: brightness(0.85);
	transition: transform 0.3s ease, filter 0.3s ease;
}

.newspaper-slider img.np-img.zoomed {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 750px;
	height: 550px;
	object-fit: cover;
	object-position: top;
	z-index: 9999;
	cursor: zoom-out;
	box-shadow: 0 8px 30px rgba(0,0,0,0.5);
	border-radius: 0.25rem;
}

.np-title {
	position: absolute;
	bottom: 2rem;
	right: 2rem;
	color: #fff;
	font-weight: 600;
	font-size: 0.9rem;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
	z-index: 10;
	pointer-events: none;
}

.np-img.zoomed + .np-title {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	z-index: 10000;
}

.np-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.5);
	border: none;
	color: #fff;
	width: 2.5rem;
	height: 2.5rem;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.6rem;
	font-weight: bold;
	border-radius: 0.25rem;
	z-index: 20;
}

.np-prev {
	left: 0.5rem;
}

.np-next {
	right: 0.5rem;
}

.np-prev::before { content: "❮"; }
.np-next::before { content: "❯"; }

.np-btn:hover {
	background: #e60023;
	color: #fff;
}

.np-img.zoomed ~ .np-btn {
	display: flex;
}

.weekly-schedule-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #fff;
	padding: 10px;
	border-radius: 0;
	font-size: 0.9rem;
	font-weight: 400;
}

.weekly-schedule-header {
	font-size: 16px;
	font-weight: 400;
	color: #000630;
	text-align:center;
	padding-top:10px;
}

.weekly-schedule-flex {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.weekly-tabs {
	display: flex;
	gap: 0.05rem;
	margin-bottom: 1rem;
	border-radius: 0;
}

.week-tab {
	flex: 1.2;
	background: #f5f5f5;
	color: #000;
	border: none;
	border-radius: 0;
	padding: 0.4rem 0;
	cursor: pointer;
	text-align: center;
	box-shadow: none;
}

.week-tab.active {
	background: var(--primary-color);
	color: #fff;
}

.week-tab:hover {
	background: #f5f5f5 !important;
	color: #000 !important;
}

.week-content {
	width: 100%;
}

.week-content p span:nth-child(2) {
	color: #003366;
}

.match-tabs {
	display: flex;
	gap: 0.3rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
	border-radius: 0;
}

.match-tab {
	padding: 0.4rem 1.2rem;
	background: #f1f1f1;
	border: none;
	border-radius: 0;
	cursor: pointer;
	font-weight: 500;
	color: #000;
	transition: none;
}

.match-tab.active {
	background: var(--primary-color);
	color: #fff;
}

.match-tab:hover {
	background: #f1f1f1 !important;
	color: #000 !important;
}

.match-tab-contents {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.match-tab-box {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-radius: 0;
	background: #fff;
	padding: 0;
}

.match-card {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	padding: 1rem;
	display: flex;
	flex-direction: column;
	direction: rtl;
	border-radius: 0;
	margin-bottom: 0.5rem;
}

.match-date {
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	text-align: right;
	color: #003366;
}

.match-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
}

.team {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	width: 45%;
	padding: 0 0.2rem;
}

.team img.team-logo {
	width: 35px;
	height: 35px;
	object-fit: cover;
	border-radius: 0;
	margin: 0;
}

.team span {
	font-weight: 400;
	font-size: 0.8rem;
	color: #111;
}

.match-center {
	font-weight: 500;
	font-size: 0.85rem;
	text-align: center;
	width: 20%;
}


.match-date {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.8rem;
	text-align: right;
	color: #003366;
}

.match-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
}

.team {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	width: 45%;
	padding: 0 0.2rem;
}

.team-left {
	flex-direction: row;
}

.team-right {
	flex-direction: row-reverse;
}

.team img.team-logo {
	width: 35px;
	height: 35px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0;
}

.team span {
	font-weight: 600;
	font-size: 0.8rem;
	color: #111;
}

.match-center {
	font-weight: 600;
	font-size: 0.9rem;
	text-align: center;
	width: 20%;
}


.nostalgia-section {
	display: block;
	background: #fff;
	min-height: 19rem;
	padding: 0.5rem 0.25rem 0 0.25rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.08);
	margin-top: 0.5rem;
	margin-bottom: 0;
	box-sizing: border-box;
}

.nostalgia-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 0.25rem 0.25rem 0 0.25rem;
}

.nostalgia-title {
	font-size: 0.9rem;
	color: #222;
	line-height: 1.5rem;
	font-weight: bold;
	margin-top: 0.5rem;
}

.nostalgia-header a {
	background: #e0e0e0;
	color: #000;
	text-decoration: none;
	padding: 0.25rem 0.5rem;
	display: inline-block;
	font-size: 0.75rem;
	line-height: 1.2rem;
}

.nostalgia-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-top: 0.5rem;
	padding: 0 0.25rem 0.25rem 0.25rem;
}
.nostalgia-item {
	display: flex;
	flex-direction: column;
}

.nostalgia-item img {
	width: 100%;
	max-width: 248px;
	height: 150px;
	object-fit: cover;
}

.nostalgia-item-title {
	margin-top: 0.4rem;
	color: #000630;
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
}


.nostalgia-meta {
	color: #adadad;
	font-size: 11px;
	line-height: 1.3em;
	margin-top: -0.5rem;
	display: flex;
	justify-content: flex-start;
	gap: 0.5rem;
	flex-wrap: wrap;
}



@media (max-width: 1024px) {
	.news-videos-wrapper {
		flex-direction: column;
		gap: 1rem;
		width: 100%;
	}

	.news-section,
	.videos-section {
		width: 100%;
		margin: 0;
		padding: 0;
	}
}

@media (min-width: 769px) {
	.home .news-tabs > button:last-child {
		display: none;
	}
	.tab-button {
		margin-bottom:0;
	}
	.news-section {
		gap: 10px;
	}
	.news-videos-wrapper {
		gap: 10px;
	}
	.more-news-section {
		margin-bottom: 12px;
	}
	.nextmatch-wrapper .next-match .match-date {
		color: var(--primary-color);
		font-weight: 500;
		font-size: 17px;
		margin-bottom:0 !important;	
	}
	.photo-report-section {
		margin-bottom: 4px;
		box-shadow: unset;
	}
	.three-flex-section {
		gap: 10px !important;
	}
	.nostalgia-section {
		margin-top: 20px;
		box-shadow: unset;
	}
	.nextmatch-wrapper .next-match .teams-row {
		width: 100%;
		text-align: center;
		justify-content: center;
		align-items: center;
	}
	.nextmatch-wrapper .next-match .team.team-left {
		justify-content: flex-end;
	}
	.nextmatch-wrapper .next-match .next-match-content .team {
		justify-content: space-between;
	}
	.nextmatch-wrapper .next-match .team.team-right {
		flex-direction: row;
	}
	.nextmatch-wrapper .next-match  .next-match-content .team-name {
		font-weight:400 !important;
		flex: 1;
	}
	.nextmatch-wrapper .next-match .match-time {
		font-size: 15px;
		color: #000630;
		font-weight: 400;
	}
	.nextmatch-wrapper .next-match .next-match-header {
		font-size:12px !important;
		font-weight:400;
		padding: 0 20px;
	}
	.nextmatch-wrapper .next-match .teams-row {
		gap:0;
	}
	.next-match-content {
		padding: 1rem 7px !important;
	}
	.timer-card {
		width: 25.5px;
		height: 22px;
	}
	.meta {
		font-size: 10px;
		color: rgb(151, 150, 150);
	}
	.news-title {
		font-size: 14px;
	}
	.news-items-container {
		padding: 0 10px;
	}

	.news-items-container .news-item {
		padding-right: 0;
		padding-left: 0;
	}
	.news-info {
		margin-right: 0;
	}
	#روزنامه-ها .news-items-container {
		display: flex;
		gap: 20px;
		flex-wrap: wrap;
	}
	#روزنامه-ها .news-items-container > div {
		flex: 0 1 calc(33% - 11px);
	}
	#روزنامه-ها .news-title {
		margin-bottom: 9px;
		margin-top: 0;
		font-size: 14px;
		font-weight: 300;
		color: #000630;
		line-height: 20px;
		padding: 0;
	}
	#روزنامه-ها .meta {
		justify-content: center;
		color: #adadad;
		font-size: 11px;
		gap: 5px;
	}
	.video-title {
		font-size: 13px !important;
		font-weight: 400 !important;
		line-height: 25px !important;
		color: #FFF !important;
		right: 20px !important;
		bottom: 23px !important;
	}
	.more-btn,.more-news-bar a {
		background-color: #EFF3FF !important;
		font-size: 13px !important;
		font-weight: 300;
		fill: #000630;
		color: #000630 !important;
		padding: 3px 20px 3px 10px;
		min-width: 76px;
		display: flex !important;
		align-items: center;
		justify-content: center;
		transition: all .3s;
	}
	.more-btn:hover,.more-news-bar a:hover {
		background: red !important;
		color: #fff !important;
		transition: all .3s;
	}
	.videos-header {
		padding: 0;
	}
	.videos-section {
		padding: 10px;
	}
	.more-news-bar span {
		font-size: 14px;
		font-weight: 400;
		color: #000630;
	}
	.newspaper-header span {
		font-size: 16px;
		font-weight: 400;
		color: #000630;
	}
	.newspaper-header  {
		padding-right:0;
	}
	.nostalgia-title {
		font-size: 16px;
		font-weight: 400;
		color: #000630;
		margin:0;
	}
	.nostalgia-item img {
		width: 100%;
		max-width: 100%;
	}
	.team-rank {
		font-weight: 400;
		font-size: 13px;
		color: #666;
		width: 13px;
		text-align: center;
	}

	.team-info {
		display: flex;
		align-items: center;
		gap: 3px;
	}
	/*my style*/
	.league-table {
		table-layout: fixed;
		width: 100%;
	}

	.league-table th:nth-child(1),
	.league-table td:nth-child(1) {
		width: 60%; /* نام تیم (بزرگ) */
		text-align: right;
	}

	.league-table th:nth-child(2),
	.league-table td:nth-child(2),
	.league-table th:nth-child(3),
	.league-table td:nth-child(3),
	.league-table th:nth-child(4),
	.league-table td:nth-child(4) {
		width: 10%; /* 3 ستون کوچیک */
		text-align: center;
	}

	/* ترتیب راست به چپ */
	.league-table {
		direction: rtl;
	}
	.tabs-container {
		width: 100%;
	}
	.points-cell {
		color: #002F5F;
		font-weight: bold;
	}
	.league-table tbody > tr:nth-child(2n+1) > td {
		background-color:#fff !important
	}
	.league-table thead {
		border-bottom: 1px solid #E7E7E7;
	}
	.league-table thead > tr {
		color: #6C6C6C;
		background-color:#fff;
	}
	.tabs-header {
		display: flex;
		gap: 10px;
		background-color:#fff !important;
		border-bottom: 2px solid #e0e0e0;
	}
	.league-table tbody > tr {
		border-bottom: 1px solid #F2F2F2 !important;

	}
	.league-table thead > tr > th:first-child {
		padding-right: 10px;
	}
	.table-three .p-0.flex-box .flex-box {
		padding: 10px;
		max-height: 694px;
		overflow-y: auto;
	}
	.table-three .flex-box:not(.p-0) .tab-content {
		max-height: 335px;
		overflow-y: scroll;
	}
	.weekly-schedule-wrapper {
		max-height: 749px;
		overflow-y: scroll;
	}
	.table-three  .goal-table thead > tr ,.league-table thead > tr{
		position: sticky;
		top: 0;
	}
	/* 1. تغییر جهت اسکرول به راست برای هر ۳ کانتینر */
	.table-three .p-0.flex-box,
	.table-three .flex-box:not(.p-0) .tab-content,
	.weekly-schedule-wrapper {
		direction: rtl; /* این خط اسکرول را به سمت راست می‌برد */
		text-align: left; /* برای اینکه متن‌ها و محتوا به هم نریزند، محتوا را چپ‌چین نگه می‌داریم */
	}

	/* 2. استایل‌دهی به اسکرول بار (رنگ قرمز، ضخامت و ...) */
	/* برای مرورگرهای مبتنی بر Webkit (کروم، فایرفاکس، سافاری، اج) */

	.table-three .p-0.flex-box .flex-box::-webkit-scrollbar,
	.table-three .flex-box:not(.p-0) .tab-content::-webkit-scrollbar,
	.weekly-schedule-wrapper::-webkit-scrollbar {
		width: 8px; /* ضخامت اسکرول */
	}

	/* پس زمینه اسکرول (تراک) */
	.table-three .p-0.flex-box .flex-box::-webkit-scrollbar-track,
	.table-three .flex-box:not(.p-0) .tab-content::-webkit-scrollbar-track,
	.weekly-schedule-wrapper::-webkit-scrollbar-track {
		background: #E7E5E6; /* رنگ خاکستری روشن */
		border-radius: 10px;
	}

	/* دستگیره اسکرول (همان قرمز رنگ) */
	.table-three .p-0.flex-box .flex-box::-webkit-scrollbar-thumb,
	.table-three .flex-box:not(.p-0) .tab-content::-webkit-scrollbar-thumb,
	.weekly-schedule-wrapper::-webkit-scrollbar-thumb {
		background: #dc3545; /* رنگ قرمز */
		border-radius: 10px;
	}

	/* افکت هاور روی دستگیره اسکرول */
	.table-three .p-0.flex-box .flex-box::-webkit-scrollbar-thumb:hover,
	.table-three .flex-box:not(.p-0) .tab-content::-webkit-scrollbar-thumb:hover,
	.weekly-schedule-wrapper::-webkit-scrollbar-thumb:hover {
		background: #b02a37; /* قرمز تیره‌تر هنگام هاور */
	}
	.p-0 {
		padding:0 !important;
	}
	.p-0 .flex-header {
		padding: 20px 0px 0 0px !important;
		font-size: 16px;
		font-weight: 400;
		color: #000630;
	}

	.arrow {
		color: #999;
		font-size: 20px;
	}

	.team {
		display: flex;
		align-items: center;
		gap: 6px;
		font-size: 12px;
	}

	.team img {
		width: 30px;
		height: 30px;
	}

	.team.left {
		flex-direction: row-reverse;
	}

	.score {
		text-align: center;
		min-width: 60px;
		font-weight: bold;
		color: #0b3558;
	}

	.status {
		font-size: 11px;
		color: #888;
	}

	.team.right {
		display: flex;
		flex: 2 1;
		align-items: center;
		justify-content: flex-start;
		flex-direction: row-reverse;
	}
	.score {
		flex: 1 1;
		margin: 0 8px;
		width: 72px;
		max-width: 72px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}
	.team.left {
		display: flex;
		flex: 2 1;
		align-items: center;
		justify-content: flex-end;
	}

	/* جدول */
	.goal-table {
		width: 100%;
		border-collapse: separate;
		border-spacing: 0;
		font-size: 13px;
	}

	/* هدر */
	.goal-table th {
		color: #999;
		font-weight: bold;
		padding: 10px 6px;
		border-bottom: 1px solid #eee;
		text-align: center;
		font-size:10px;
	}
	.goal-table td {
		font-size: 10px;
	}
	.player-name {
		font-size: 10px !important;
	}
	.scorer-row.top-player-row td:last-child span {
		background: var(--primary-color) !important;
		color: #fff !important;
		border-radius: 20px;
		padding: 6px 10px;
		display: flex;
		justify-content: center;
		width: 28.8px;
	}
	.table-three .tabs {
		border: unset;
		margin: 0;
	}
	/* ردیف */
	.scorer-row {
		background: #fff;
	}

	/* یکی درمیون */
	.scorer-row:nth-child(even) {
		background: #f5f5f5;
	}
	.table-three .tabs > button:not(.active) {
		color: #383E65;
		background: #EFF3FF;
		transition: all 0.3s;
	}
	.table-three .tabs > button:hover {
		background: #ED1B24 !important;
		color: #fff !important;

	}
	.table-three table thead:first-child tr:first-child th {
		border: unset;
	}
	.table-three .team-info {
		padding-right: 6px;
	}

	.table-three .team-name {
		font-size: 13px !important;
		font-weight: 400;
		color: #6C6C6C;
	}
	.table-three .flex-box.p-0 .flex-box {
		padding: 0 !important;
	}
	.table-three .team span {
		font-weight: 600;
		font-size: 10px;
		color: #111;
	}
	.table-three .match-score-simple.score {
		font-size: 14px;
	}
	.team-cell {
		padding: 14px 0 !important;
	}
	/* سلول‌ها */
	.goal-table td {
		padding: 12px 6px;
		text-align: center;
		border-bottom: 1px solid #eee;
	}

	/* ستون شماره (#) */
	.rank-col {
		width: 30px;
		color: #666;
		font-size: 12px;
	}

	/* ستون بازیکن */
	.player-col {
		text-align: right;
	}

	/* چسبیده بودن عکس + اسم */
	.player-wrap {
		display: flex;
		align-items: center;
		gap: 6px;
	}

	/* عکس */
	.player-thumb {
		width: 34px;
		height: 34px;
		border-radius: 50%;
		object-fit: cover;
	}

	/* اسم */
	.name {
		white-space: nowrap;
		font-size: 13px;
	}

	/* ستون گل */
	.goals-col {
		font-weight: bold;
		color: #0b3558;
	}


	/* حذف بوردر آخر */
	.goal-table tr:last-child td {
		border-bottom: none;
	}
	#tab-scorers table thead tr {
		background-color: #F6F7F9;
	}
	.scorer-row:nth-child(2n) > td {
		background-color:transparent !important;
	}
	.scorer-row:nth-child(odd) > td {
		background-color:#fff;
	}
	/* فقط نفر اول → ستون گل */
	.top-player .goals-col span {
		background: var(--primary-color) !important;
		color: #fff;
		border-radius: 20px;
		padding: 6px 10px;
		display: flex;
		justify-content: center;
		width: 28.8px;
	}
	.goals-col {
		display: flex;
		justify-content: center;
		min-height:45px;
		align-items:center
	}
	#tab-scorers .flex-box table td {
		padding: 0.5em 0.25rem;
	}
	table td {
		vertical-align: middle !important; 
	}
	.match-date-header {
		font-size: 14px;
		font-weight: 500;
		color: #0b3558;
		text-align: right;
		background: #fff;
	}
	.match-date-header {
		margin-bottom: 11px;
	}
	.match-date-header:not(:first-child) {
		margin-top: 16px;
	}
	.match-row-new {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0;
		border-bottom: 1px solid #eee;
		background: #fff;
	}

	.arrow {
		color: #999;
		font-size: 20px;
	}


	.team {
		display: flex;
		align-items: center;
		gap: 6px;
		font-size: 12px;
	}

	.team img {
		width: 30px;
		height: 30px;
	}

	.team.left {
		flex-direction: row-reverse;
	}

	.score {
		text-align: center;
		min-width: 60px;
		font-weight: bold;
		color: #0b3558;
	}

	.status {
		font-size: 11px;
		color: #888;
	}

	.team.right {
		display: flex;
		flex: 2 1;
		align-items: center;
		justify-content: flex-start;
		flex-direction: row-reverse;
	}
	.score {
		flex: 1 1;
		margin: 0 0;
		width: 72px;
		max-width: 72px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
	}
	.team.left {
		display: flex;
		flex: 2 1;
		align-items: center;
		justify-content: flex-end;
	}
	.match-row-new:last-child {
		border-bottom: 0;
	}
	.table-three .flex-header {
		font-size: 16px;
		font-weight: 400;
		color: #000630;
		padding-top:10px;
	}

}
@media (max-width: 768px) {
	.home .tab-button[data-tab="akhbar-perspolis"] {
		font-size: 0 !important;
	}

	.home .tab-button[data-tab="akhbar-perspolis"]::after {
		content: "اخبار سرخپوشان";
		font-size: 0.875rem;
	}
	.news-tabs .tab-button:not(.active) {
		border-bottom: 1px solid rgb(209, 209, 209);
	}
	.home-layout,
	.slider-nextmatch-grid,
	.slider-wrapper,
	.front-slider,
	.mySwiper,
	.swiper-wrapper,
	.swiper-slide,
	.site-content,
	.page,
	.home,
	.news-section,
	.news-videos-wrapper {
		margin: 0;
		padding: 0;
		width: 100vw;
		max-width: 100vw;
		background: none;
		box-sizing: border-box;
	}

	.slider-nextmatch-grid {
		display: block;
		margin: 0;
		width: 100%;
		max-height: 50vh;
		overflow: hidden;
	}

	.front-slider,
	.mySwiper,
	.swiper-wrapper,
	.swiper-slide {
		width: 100%;
		height: 230px;
	}
	.front-slider, .next-match {
		min-height: 230px;
	}

	.swiper-slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: top;
	}

	.slide-text {
		font-size: 1rem;
		bottom: 10%;
		font-weight: 500;
		right: 1.25rem;
	}

	.nextmatch-wrapper {
		display: none !important;
	}

	.news-videos-wrapper {
		display: flex;
		flex-direction: column;
		gap: 1rem;
		width: 100%;
		margin-top: 0;
	}

	.news-section {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.news-section {
		gap:0 !important;
	}
	.news-tabs {
		display: flex;
		gap: 0;
		margin: 0;
		padding: 0;
	}

	.news-tabs .tab-button {
		flex: auto;
		padding: 0.625rem 0;
		margin: 0;
		font-size: 0.875rem;
		text-align: center;
	}

	.news-content {
		height: auto;
		max-height: none;
	}

	.news-item {
		align-items: flex-start;
		gap: 0.5rem;
	}

	.news-thumb {
		width: auto;
	}

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

	.news-info {
		width: 65%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		min-height: auto;
	}

	.news-title {
		font-size: 0.8125rem;
		margin-right: 0.25rem;
		line-height:2;
	}

	.meta {
		flex-wrap: wrap;
		gap: 0.5rem;
		margin-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.meta-left {
		gap: 0.5rem;
	}

	.meta-left .meta-date,
	.meta-left .meta-time {
		gap: 0.5rem;
	}

	.meta-right {
		gap: 0.5rem;
		margin-bottom: 0.5rem;
	}

	.videos-section,
	.photo-report-section,
	.nostalgia-section,
	.three-flex-section {
		display: none !important;
	}
	.meta i {
		margin-left: 5px;
	}
	.slider-nextmatch-grid {
		margin-top: 60px;
	}
	.news-items-container {
		margin: 10px 15px;
		gap: 10px;
		display: flex;
		flex-direction: column;
	}
	.news-info {
		margin-right:0;
	}
}
@media (min-width: 480px) and (max-width: 768px) {
	.meta-date, .meta-time, .meta-comments {
		display: flex;
		align-items: center;
		margin-right: calc(47px/2);
		margin-left: calc(47px/2);
	}
	.news-title {
		color: #4E5468;
		font-weight: 400;
		margin-bottom: 24px;
		padding: 10px 0px 0px 20px;
	}
	.news-thumb {
		width: 165px;
	}
}
@media (max-width: 480px) {
	.news-item {
		flex-direction: row-reverse;
		gap: 0.5rem;
		padding: 0 0 5px 0 !important;
	}

	.news-thumb {
		width: auto;
	}

	.news-thumb img {
		height: 100px;
		width:116px;
	}

	.news-info {
		width: 55%;
		min-height: 100px;
		margin-left:10px;
	}

	.news-title {
		font-size: 13px;
		line-height: 2em;
		padding: 0;
		margin: 0 !important;
	}


	.meta {
		font-size: 0.6rem;
		padding-bottom: 0.5rem;
		justify-content: space-between;
	}

	.meta-left {
		gap: 0.5rem;
	}

	.meta-left .meta-date,
	.meta-left .meta-time {
		gap: 0.5rem;
	}

	.meta-right {
		gap: 0.5rem;
		margin-bottom: 0.5rem;
	}
}
@media (max-width: 768px) {
	.more-news-section{
		display: none !important;
	} 
	.news-videos-wrapper {
		display: block !important;
		overflow: visible !important;
	}
}


/*new style*/
/* لودر اسکرول بی‌نهایت */
.loading-spinner {
	text-align: center;
	padding: 20px;
	color: #888;
}

.loading-spinner::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid #ddd;
	border-top-color: #e53e3e;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-right: 10px;
	vertical-align: middle;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.no-more-news {
	text-align: center;
	padding: 20px;
	color: #999;
	font-size: 14px;
}

#روزنامه-ها .news-items-container .news-item {
	flex-direction: column;
}
#روزنامه-ها .news-items-container .news-thumb,#روزنامه-ها .news-items-container .news-thumb img {
	width: 100%;
	height: 100%;
}
#روزنامه-ها .news-items-container .news-item {
	gap: 0;
	border-style: solid;
	border-width: 1px 1px 1px 1px;
	border-radius: 0px;
	border-color: #D6D6D6;
}
#روزنامه-ها .news-items-container .news-thumb,#روزنامه-ها .news-items-container .news-thumb img {
	width: 100%;
	height: 100%;
}
#روزنامه-ها .news-items-container .news-info {
	width: 100%;
	text-align: center;
	gap: 0;
	height: auto;
	flex: unset;
	justify-content: center;
	min-height: auto;
	margin-top: 10px;
}

#روزنامه-ها .meta-time {
	display: none;
}
#روزنامه-ها .meta {
	justify-content: center;
	color: rgb(173, 173, 173);
}
.video-item {
    position: relative;
}

.custom-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border:0;
    font-size: 35px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.custom-play-btn:hover ,.custom-play-btn:active{
    background: transparent !important;
}
.nostalgia-item::after {
  content: url("/wp-content/themes/hello-elementor/assets/images/video-ply.svg");
  position: absolute;
  width: 40px;
  z-index: 9;
  top: calc(50% - 20px);
  transform: translate(50%,-50%);
  right: 50%;
}
.nostalgia-item {
  position: relative;
}
.transfers_list {
  margin-top: 16px;
}
.photo-report-section.column-layout.transfers_list {
  margin-top: 20px !important;
}