@font-face{
	font-family: 'ITCHandelGothicArabic';
	src: url('../font/Tajawal-Regular.ttf') format('truetype');
}

@font-face{
	font-family: 'Yuzarsif';
	src: url('../font/Yuzarsif-Regular.ttf') format('truetype');
}

@font-face{
	font-family: 'Amiri';
	src: url('../font/Amiri-Regular.ttf') format('truetype');
}

@font-face{
    font-family: 'ReemKufi';
    src: url('../font/ReemKufi-Regular.ttf') format('truetype');
}

:root{
	--white: #FFF;
	--black: #000;
	--transformBG: #fffaf6;
	--border: rgba(0, 0, 0, 0.2);
	--primary: #775347;
	--primaryHover: rgb(119, 83, 71, 0.05);
	--secondery: #fdeedb;
	--seconderyHover: #e4d6c5;
	--thirdly: #c79c78;
	--thirdlyHover: #b38c6c;
	--lightGrey: #f8f8f8;
	--margin: 15px;
	--radius: 8px;
	--transition: 0.46s;
}

body[data-theme="grey"]{}

body[data-theme="dark"]{}

*,
*:before,
*:after{
	font-family: 'ITCHandelGothicArabic', serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body{
	background-color: var(--transformBG);
	display: grid;
	grid-template-areas:
		"header"
		"main"
		"footer";
	gap: var(--margin);
}

/************************ HEADER ************************/
body header{
	grid-area: header;
	display: grid;
	grid-template-columns: auto 5fr 1fr;
	height: 80px;
	margin-left: 12.5%;
	margin-right: 12.5%;
}

body header .title{
	display: flex;
	align-items: center;
	text-align: center;
}

body header .title h1{
	font-size: 32px;
	font-weight: 200;
	font-family: 'Yuzarsif', serif;
	color: var(--primary);
}

body header nav{
	display: flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
}

body header nav .box{
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	align-content: center;
	gap: 8px;
}

body header nav .box:hover{
	color: var(--primary);
	transition: var(--transition);
}

body header nav .logo{
	display: none;
}

body header nav .space{
	display: none;
}

body header nav .box p{
	font-size: 18px;
	max-width: 85px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
	word-break: break-word;
	overflow-wrap: break-word;
}

body header nav .box i{
	display: none;
	font-size: 17px;
}

body header nav .selected{
	color: var(--primary);
}

body header nav .phone{
	display: none;
}

body header .phone{
	display: none;
}

body header form{
	display: flex;
	align-items: center;
	position: relative;
}

body header form input{
	outline: none;
	background-color: white;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	height: auto;
	width: 100%;
	padding: 8px 8px 10px 40px;
	display: flex;
	align-content: center;
}

body header form input::placeholder{
	text-align: left;
}

body header form i{
	position: absolute;
	top: 30px;
	left: 15px;
	cursor: pointer;
}

body header form .pc{
	display: block;
}

body header form .phone{
	display: none;
}

body header .menu{
	display: none;
}

/************************ MAIN ************************/
body main{
	grid-area: main;
	height: auto;
	margin: 10px 12.5% 25px 12.5%;
    overflow: hidden;
}

body main .start{
	margin-bottom: 20px;
	display: grid;
	grid-template-rows: 515px 415px;
	gap: 15px;
	position: relative;
}

body main .start .header{
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

body main .start .header img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 7px;
}

body main .start .header .details{
    position: absolute;
    text-align: center;
    color: var(--primary);
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    margin: 0px 30px;
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
	text-shadow: 
		-1px -1px 1px black, 
		1px -1px 1px black, 
		-1px  1px 1px black, 
		1px  1px 1px black;
}

body main .start .header .details h1{
    font-size: 96px;
    font-family: "ReemKufi", serif;
}

body main .start .header .details h5{
    font-size: 48px;
    font-family: "Yuzarsif", serif;
	line-height: 80px;
}

body main .start .header .details p{
    font-size: 22px;
    font-family: "Amiri", serif;
}

body main .start .images{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	width: 100%;
	height: 100%;
}

body main .start .image-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

body main .start .image-container img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 7px;
    cursor: pointer;
}

body main .start .image-container p{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Yuzarsif", serif;
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    width: 150px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
	word-break: break-word;
	overflow-wrap: break-word;
}

body main h2{
    font-size: 26px;
}

body main h2 span{
	color: var(--primary);
}

body main .lastSurah{
	margin-bottom: 20px;
}

body main .lastSurah .sectionHeader{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body main .lastSurah .sectionHeader .left{
	display: flex;
	align-items: center;
}

body main .lastSurah .sectionHeader .right{
	display: flex;
	gap: 5px;
}

body main .lastSurah .sectionHeader .right i{
	cursor: pointer;
	color: var(--white);
	background-color: var(--primary);
	border-radius: var(--radius);
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body main .lastSurah .boxes{
    border-radius: 7px;
    display: flex;
    overflow-x: scroll;
    gap: 10px;
    margin-top: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body main .lastSurah .boxes::-webkit-scrollbar{
    display: none;
}

body main .lastSurah .boxes .box{
    display: grid;
    align-items: center;
    background-color: var(--secondery);
    border-radius: 5px;
    flex-shrink: 0;
	padding: 9px 20px;
    overflow: hidden;
	transition: 0.36s;
	cursor: pointer;
}

body main .lastSurah .boxes .box:hover{
	background-color: var(--seconderyHover);
	transition: 0.36s;
}

body main .lastSurah .boxes .box p{
    text-align: left;
}

body main .lastAhadith{
	margin-bottom: 20px;
}

body main .lastAhadith .sectionHeader{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body main .lastAhadith .sectionHeader .left{
	display: flex;
	align-items: center;
}

body main .lastAhadith .sectionHeader .right{
	display: flex;
	gap: 5px;
}

body main .lastAhadith .sectionHeader .right i{
	cursor: pointer;
	color: var(--white);
	background-color: var(--primary);
	border-radius: var(--radius);
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body main .lastAhadith .boxes{
    display: flex;
    flex-direction: column;
    gap: 10px;
	margin-top: 10px;
}

body main .lastAhadith .boxes .box{
    padding: 10px 15px;
    background-color: var(--secondery);
    border-radius: 5px;
    box-sizing: border-box;
	display: grid;
	grid-template-columns: 50px auto;
	gap: 7px;
	transition: 0.36s;
	cursor: pointer;
}

body main .lastAhadith .boxes .box:hover{
	background-color: var(--seconderyHover);
	transition: 0.36s;
}

body main .lastAhadith .boxes .box .number{
	background-position: left;
	background-repeat: no-repeat;
	background-size: cover;
	display: grid;
	text-align: center;
	justify-content: center;
	align-items: center;
	font-family: 'Yuzarsif', serif;
}


body main .lastAhadith .boxes .box p{
    margin: 0;
    text-align: left;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
    text-overflow: ellipsis;
}

body main .lastAhadith .boxes .box p:first-child{
    font-weight: bold;
}

body main .names{
	margin-bottom: 20px;
}

body main .names .sectionHeader{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body main .names .sectionHeader .left{
	display: flex;
	align-items: center;
}

body main .names .sectionHeader .right{
	display: flex;
	gap: 5px;
}

body main .names .sectionHeader .right i{
	cursor: pointer;
	color: var(--white);
	background-color: var(--primary);
	border-radius: var(--radius);
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body main .names .boxes{
    display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
    justify-content: center;
	margin-top: 10px;
}

body main .names .boxes .box{
    padding: var(--margin);
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
	display: grid;
    height: 180px;
    width: calc(25% - 7.5px);
	gap: 10px;
	transition: 0.36s;
	cursor: pointer;
    align-items: center;
    text-align: center;
    justify-content: center;
}

body main .names .boxes .box:hover{
	background-color: var(--thirdlyHover);
    color: var(--black);
	transition: 0.36s;
}

body main .names .boxes .box p:first-child{
    font-size: 42px;
	font-family: 'Amiri', serif;
}

body main .names .boxes .box p:nth-child(2){
    font-weight: bold;
    font-size: 21px;
}

body main .names .boxes .box p:last-child{
    font-size: 14px;
}

body main .lastArticles{
	margin-bottom: 20px;
}

body main .lastArticles .sectionHeader{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body main .lastArticles .sectionHeader .left{
	display: flex;
	align-items: center;
}

body main .lastArticles .sectionHeader .right{
	display: flex;
	gap: 5px;
}

body main .lastArticles .sectionHeader .right i{
	cursor: pointer;
	color: var(--white);
	background-color: var(--primary);
	border-radius: var(--radius);
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body main .lastArticles .slider{
	padding: 0px;
}

body main .lastArticles .slider .splide__track{
	margin-top: 25px;
	cursor: grab;
}

body main .lastArticles .slider .splide__track .splide__list .splide__slide{
	height: 200px;
	border-radius: var(--radius);
	background-size: 100% 100%; 
	background-repeat: no-repeat;
	background-position: center;
}

body main .lastArticles .slider .splide__track .splide__list .splide__slide p{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Yuzarsif", serif;
    font-size: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    width: 90%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body main .lastArticles .slider .my-slider-progress{
    background: #ccc;
    position: relative;
    width: 100%;
    height: 2px;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

body main .lastArticles .slider .my-slider-progress-bar{
    background: linear-gradient(to right, var(--primary), var(--primary));
    height: 100%;
    width: 0;
    transition: width 300ms ease;
}

body main .lastQuestions{
}

body main .lastQuestions .sectionHeader{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

body main .lastQuestions .sectionHeader .left{
	display: flex;
	align-items: center;
}

body main .lastQuestions .sectionHeader .right{
	display: flex;
	gap: 5px;
}

body main .lastQuestions .sectionHeader .right i{
	cursor: pointer;
	color: var(--white);
	background-color: var(--primary);
	border-radius: var(--radius);
	padding: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
}

body main .lastQuestions  .questions_list{
	margin-top: 10px;
	display: grid;
	grid-template-columns: 1fr 1fr;
    gap: var(--margin);
}

body main .lastQuestions  .questions_list .question{
	display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: var(--secondery);
    border-radius: var(--radius);
    padding: var(--margin);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

body main .lastQuestions  .questions_list .question .qst{
	display: grid;
	gap: 7px;
}

body main .lastQuestions  .questions_list .question .qst .header{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

body main .lastQuestions  .questions_list .question .qst .header span{
	font-family: 'Yuzarsif', serif;
	color: var(--primary);
	font-size: 24px;
}

body main .lastQuestions  .questions_list .question .qst h3{
	font-size: 20px;
	margin-top: 5px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 4;
			line-clamp: 4; 
	-webkit-box-orient: vertical;
}

body main .lastQuestions  .questions_list .question .reply{
	display: flex;
    flex-direction: column;
    gap: var(--margin);
    background-color: var(--seconderyHover);
    border-radius: var(--radius);
    padding: var(--margin);
}

body main .lastQuestions  .questions_list .question .reply span{
	font-family: 'Yuzarsif', serif;
	color: var(--primary);
	font-size: 24px;
}


body main .lastQuestions  .questions_list .question .reply p{
	font-size: 16px;
    font-weight: 300;
    color: var(--black);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
    text-overflow: ellipsis;
}

/************************ FOOTER ************************/
body footer{
	grid-area: footer;
	display: grid;
	grid-template-rows: auto auto;
	height: auto;
	width: 100%;
	background-color: var(--primary);
	color: var(--white);
	padding: var(--margin);
	font-size: 16px;
}

body footer .guide{
	margin-left: 12.5%;
	margin-right: 12.5%;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 20px;
	gap: var(--margin);
}

body footer .guide .information{
	max-width: 100%;
}

body footer .guide div{
	flex-grow: 1;
}

body footer .guide div p{
	font-size: 16px;
}

body footer .guide div h4{
	font-size: 17px;
	margin: 6px 0px;
}

body footer .guide div .links{
	margin-left: 6px;
	display: grid;
	gap: 3.5px;
	width: 100%;
}

body footer .guide div .links a{
	text-decoration: none;
	font-size: 15px;
	color: var(--white);
}

body footer hr{
	margin-left: 12.5%;
	margin-right: 12.5%;
	height: 0.001rem;
	color: grey;
	margin-top: 30px;
	margin-bottom: 10px;
}

body footer .copyright{
	margin-left: 12.5%;
	margin-right: 12.5%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: var(--margin);
}

body footer .copyright .social{
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--margin);
	font-size: 22px;
}

body footer .copyright .social a{
	text-decoration: none;
	color: var(--white);
	cursor: pointer;
	transition: var(--transition);
}

body footer .copyright .social a:hover{
	color: var(--primary);
	transition: var(--transition);
}

@media (max-width: 1400px){
	body header nav .box p{
		font-size: 16px;
		white-space: nowrap;
		overflow: hidden;
		max-width: 65px;
	}
}

@media (max-width: 1200px){
	body header nav .box p{
		max-width: 50px;
	}
}

@media (max-width: 1000px){
	body header nav .box p{
		max-width: 40px;
	}
}

@media (max-width: 768px){
	body header{
		margin: var(--margin) var(--margin) 0px var(--margin);
		grid-template-columns: auto auto 55px 55px;
		align-items: center;
		height: 70px;
	}

	body header nav{
		padding: var(--margin) var(--margin) 0px var(--margin);
		position: fixed;
		height: 100%;
		width: 279px;
		top: 0;
		left: 0;
		background-color: var(--white);
		border-top-right-radius: var(--radius);
		border-bottom-right-radius: var(--radius);
		border-right: 1px solid var(--border);
		transition: var(--transition);
		display: grid;
		grid-template-rows: 80px 15px repeat(13, 50px);
		grid-template-columns: 1fr;
		justify-content: left;
		gap: 8px;
		z-index: 3;
		color: gray;
		transform: translate(-280px);
	}

	body header nav .box{
		width: 100%;
		height: 100%;
		cursor: default;
		gap: 15px;
		border-radius: var(--radius);
	}

	body header nav .box:hover{
		color: var(--primary);
		transition: var(--transition);
		background-color: var(--thirdly);
	}

	body header nav .box:active{
		color: var(--primary);
		transition: var(--transition);
		background-color: var(--transformBG);
	}

	body header nav .box p{
		max-width: 200px;
		margin-bottom: 4px;
	}
	
	body header nav .space{
		display: block;
	}

	body header nav .logo{
		display: block;
		transition: var(--transition);
		background-color: var(--transformBG);
	}

	body header nav .logo figure{
		display: flex;
		align-items: center;
		justify-content: center;
	}

	body header nav .logo figure img{
		height: 80px;
		width: 80px;
	}

	body header nav .box i{
		display: block;
		margin-left: var(--margin);
	}
	
	body header nav .phone{
		display: flex;
	}
	
	body header .phone{
		display: inline-flex;
	}

	body header form{
		height: 50px;
		width: 50px;
		background-color: var(--white);
		border-radius: var(--radius);
		border: 1px solid var(--border);
		position: relative;
	}

	body header form input{
		display: none;
	}

	body header form i{
		top: 14px;
		left: 14px;
		cursor: default;
		font-size: 20px;
		color: var(--primary);
	}

	body header form .pc{
		display: none;
	}

	body header form .phone{
		display: block;
	}

	body header .menu{
		display: grid;
		height: 50px;
		width: 50px;
		background-color: var(--white);
		border-radius: var(--radius);
		border: 1px solid var(--border);
		justify-content: center;
		align-items: center;
		transition: background-color 0.46s ease-in-out;
	}

	body header .menu i{
		font-size: 22px;
		display: grid;
		justify-content: center;
		align-items: center;
		cursor: default;
		color: var(--primary);
	}

	/************************ MAIN ************************/
	body main{
		grid-area: main;
		height: auto;
		margin: 0px var(--margin) 20px var(--margin);
		overflow: hidden;
	}

	body main .start{
		grid-template-rows: 380px 630px;
	}

	body main .start img{
		cursor: default;
	}

	body main .start .header .details h1{
		font-size: 64px;
		z-index: 2;
		font-family: "ReemKufi", serif;
	}
	
	body main .start .header .details h5{
		font-size: 26px;
		z-index: 2;
	}
	
	body main .start .header .details p{
		font-size: 16px;
		z-index: 2;
		font-family: "ReemKufi", serif;
	}

	body main .start .images{
		grid-template-columns: 1fr 1fr;
	}

	
	body main h2{
		font-size: 24px;
	}

	body main .lastSurah .boxes .box{
		cursor: default;
	}

	body main .names .boxes .box{
		width: calc(50% - 7.5px);
	}

	body main .lastQuestions .questions_list{
		flex-direction: column;
	}

	body main .lastQuestions .questions_list .question h3{
		font-size: 24px;
	}

	body main .lastQuestions .questions_list .question .reply span{
		font-size: 18px;
	}

	body main .lastQuestions .questions_list .question .reply p{
		font-size: 14px;
	}

	/************************ FOOTER ************************/
	body footer .guide,
	body footer hr,
	body footer .copyright{
		margin: var(--margin) var(--margin) 0px var(--margin);
	}
}