@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');
}

: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%;
    background-color: var(--secondery);
    border-radius: var(--radius);
}

body main h2{
    font-size: 26px;
}

body main h2 span{
	color: var(--primary);
}

body main .trending{
    width: 100%;
}

body main .trending h2{
    margin-top: 10px;
	padding: 0px 15px;
}

body main .trending .container{
	margin-top: 10px;
    display: grid;
	grid-template-columns: 2fr 1fr;
    width: 100%;
	gap: 10px;
	height: 400px;
	padding: 0px 15px;
}

body main .trending .container .left{
	height: 400px;
	position: relative;
}

body main .trending .container .left 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 .trending .container .left .categorie{
	position: absolute;
	top: 10px;
	right: 10px;
	font-family: "Yuzarsif", serif;
	font-size: 18px;
	color: white;
	background: rgba(0, 0, 0, 0.6);
	padding: 5px 10px;
	border-radius: 5px;
	text-align: center;
	width: max-content;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body main .trending .container .left figure{
	height: 400px;
}

body main .trending .container .left figure img{
    width: 100%;
    border-radius: var(--radius);
	height: 400px;
	cursor: pointer;
}

body main .trending .container .right{
    display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	height: 400px;
}

body main .trending .container .right figure{
	height: calc(200px - 5px);
	position: relative;
}

body main .trending .container .right figure img{
    width: 100%;
    border-radius: var(--radius);
	height: calc(200px - 5px);
	cursor: pointer;
}

body main .trending .container .right figure 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%;
	overflow: hidden;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body main .trending .container .right figure .categorie{
	position: absolute;
	top: 10px;
	right: 10px;
	font-family: "Yuzarsif", serif;
	font-size: 18px;
	color: white;
	background: rgba(0, 0, 0, 0.6);
	padding: 5px 10px;
	border-radius: 5px;
	text-align: center;
	width: max-content;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body main .articles_list{
    padding: var(--margin);
}

body main .articles_list .upper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--margin);
}

body main .articles_list .upper .more{
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--primary);
    transition: color var(--transition);
}

body main .articles_list .upper .more:hover{
    color: var(--thirdly);
}

body main .articles_list .upper .more p{
    margin-right: 8px;
    font-size: 18px;
    align-items: center;
    text-decoration: underline;
}

body main .articles_list .upper .more i{
    display: none;
}

body main .articles_list .articles_container{
    display: flex;
    flex-direction: column;
    gap: var(--margin);
}

body main .articles_list .articles_container .article{
    display: flex;
    flex-direction: column;
    gap: var(--margin);
    background-color: var(--transformBG);
    border-radius: var(--radius);
    padding: var(--margin);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

body main .articles_list .articles_container .article figure{
    margin: 0;
    width: 100%;
    height: 150px;
}

body main .articles_list .articles_container .article figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

body main .articles_list .articles_container .article .content h3{
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
	overflow: hidden;
   	display: -webkit-box;
   	-webkit-line-clamp: 2;
           	line-clamp: 2; 
   	-webkit-box-orient: vertical;
}

body main .articles_list .articles_container .article .content .description{
    font-size: 16px;
    color: var(--black);
    margin-bottom: var(--margin);
}

body main .articles_list .articles_container .article .content .author{
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: 200;
    color: var(--black);
}

body main .slider{
	padding: 0px 15px;
}

body main .slider .splide__track{
	margin-top: 25px;
	cursor: grab;
}

body main .slider .splide__track .splide__list .splide__slide{
	height: 200px;
	border-radius: var(--radius);
	background-size: 100% 100%; 
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
}

body main .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%;
}

body main .slider .my-slider-progress{
    background: #ccc;
    position: relative;
    width: 100%;
    height: 2px;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
}

body main .slider .my-slider-progress-bar{
    background: linear-gradient(to right, var(--primary), var(--primary));
    height: 100%;
    width: 0;
    transition: width 300ms ease;
}

/************************ 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: 2;
		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(--transformBG);
	}

	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 h2{
		font-size: 24px;
	}

    body main .trending .container{
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 250px 150px;
		width: 100%;
		gap: 10px;
		height: 400px;
		padding: 0px 15px;
	}
	
	body main .trending .container .left{
		height: 250px;
		overflow: hidden;
	}

	body main .trending .container .left figure{
		height: 250px;
	}
	
	body main .trending .container .left figure img{
		width: 100%;
		border-radius: var(--radius);
		height: 250px;
		cursor: default;
	}
	
	body main .trending .container .right{
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		height: 150px;
	}
	
	body main .trending .container .right figure{
		height: calc(150px - 5px);
	}
	
	body main .trending .container .right figure img{
		width: 100%;
		border-radius: var(--radius);
		height: calc(150px - 5px);
		cursor: default;
	}

    body main .articles_list .upper{
		margin-top: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--margin);
    }
    
    body main .articles_list .upper .more{
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        color: var(--primary);
        transition: color var(--transition);
    }
    
	body main .articles_list .articles_container .article{
		cursor: default;
	}

	/************************ FOOTER ************************/
	body footer .guide,
	body footer hr,
	body footer .copyright{
		margin: var(--margin) var(--margin) 0px var(--margin);
	}
}