/************************* headerMainSection *************************/
.headerMainSection {
	border-radius: 40px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transform: translateY(-13px);
	position: relative;
    justify-items: center;
	height: 85vh;
	width: 95%;
	margin: auto;
	box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.2);
	padding-top: 40px;
}

.headerMainSection > img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover; /* برای پر کردن کامل بخش */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	border-radius: 40px;
	filter: brightness(75%);
}

.headerMainSection main {
	display: grid;
    align-content: center;
	grid-template-columns: auto;
	width: 90%;
	height: 100%;
	display: grid;
    align-items: center;
    justify-items: stretch;
}

.headerMainSection main h1 {
	color: #fff;
	margin-bottom: 15px;
}

.headerMainSection main  div {
	display: flex;
	width: 100%;
	gap: 10px;
}

.headerMainSection main  a {
	display: block;
	padding: 7px 15px;
	text-align: center;
	background: #fff;
	border-radius: 7px;
	display: flex;
	align-items: center;
    align-content: center;
    justify-content: center;
} 

.headerMainSection main div a:first-child {
	background: #9B795D;
    background: linear-gradient(350deg, rgba(155, 121, 93, 1) 0%, rgba(194, 174, 151, 1) 100%);
	border: 2px solid rgba(255, 255, 255, 0.5);
	color: #fff;
}

.headerMainSection main div a:first-child svg {
	width: 20px;
	height: 20px;
	margin-left: 10px;
	fill: #fff;
}

.headerMainSection main div a:last-child {
	/* From https://css.glass */
	background: rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
}

.headerMainSection main div a:last-child svg {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	fill: #fff;
}




@media (max-width: 900px) {

	.headerMainSection {
		height: auto;
		padding: 10px;
		grid-template-columns: auto;
		padding-top: 40px;
		min-height: 200px;
		display: flex;
    	align-items: center;
    	justify-content: center;
    	align-content: center;
	}

	.headerMainSection main div a {
		padding: 5px 10px !important;
		position: absolute;
    	bottom: 20px;
    	right: 30px;
	}

	.headerMainSection main div a svg {
		margin: 0 !important;
		display: none;
	}

	.headerMainSection main div a span {
		font-size: 12px;
	}

	.headerMainSection main h1 {
		font-size: 1rem;
	}
}



.popvideo {
	position: absolute;
	z-index: 1;
	bottom: 5px;
	left: 5px;
	display: flex;
	gap: 5px;
}


.popvideo button {
	display: flex;
	position: relative;
	width: 70px;
	height: 70px;
	border-radius: 50%;
    padding: 2px;
    overflow: hidden;
    background: none;
    border: none;
}

.popvideo button::before {
	content: " ";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: -1;
    display: block;
	background: #ffffff;
	background: linear-gradient(90deg, rgba(255, 255, 255, .8) 0%, rgba(155, 121, 93, 1) 100%);
	animation: story-pulse 2s infinite both ease-in-out;
	transition: all 0.3s ease;
}





.popvideo button:nth-child(2n)::before {
	animation: story-pulse 2.5s infinite both ease-in-out;
}



@keyframes story-pulse {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}



.popvideo button video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

@media (max-width: 900px) {
	.popvideo {
		bottom: 10px;
		left: 10px;
	}

	.popvideo button {
		width: 50px;
		height: 50px;
	}
}


.video-popup{
    position:fixed;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    visibility:hidden;
    transition:.25s;
    z-index:999999;
}

.video-popup.active{
    opacity:1;
    visibility:visible;
}

.video-popup__overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.85);
    backdrop-filter:blur(8px);
}

.video-popup__content{
    position:relative;
    width:min(80vw,1200px);
    aspect-ratio:16/9;
    background:#000;
    border-radius:20px;
    overflow:hidden;
    z-index:2;
    transform:scale(.95);
    transition:.25s;
}

.video-popup.active
.video-popup__content{
    transform:scale(1);
}

.video-popup__player{
    width: 85%;
    max-width: 85%;
    height:auto;
    object-fit:contain;
    display:block;
}

.video-popup__close{
    position:absolute;
    top:24px;
    right:24px;
	display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding-top: 3px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.5);
    color:#fff;
    font-size:24px;
    cursor:pointer;
    z-index:5;
}

body.video-popup-lock{
    overflow:hidden;
}

@media(max-width:900px){

	.video-popup__content {
		width: 95%;
    	max-width: 95%;
		border-radius:14px;
	}

	.video-popup__player {
		width: 95%;
    	max-width: 95%;
	}

	.video-popup__close {
		top:12px;
		right:12px;
		width:32px;
		height:32px;
		font-size:18px;
	}
}