/* Global rules */
*{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Tajawal', 'Work Sans', sans-serif;
    list-style: none;
    text-decoration: none;
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior:smooth;
}
body{
    font-family: 'Montserrat', 'Tajawal', 'Work Sans', sans-serif;
}

body::-webkit-scrollbar{
    width: 6px;
}
body::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
/* compenents */
.main-heading{
    padding: 10px 25px;
    width: 180px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 100px;
    font-weight: normal;
    color: var(--black-color);
    position: relative;
    background-image: linear-gradient(45deg, #f2802040, #6fc8f040) ;
}
.main-heading::before{
    transition: var(--main-transition);
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 25px;
    border-style:solid;
    border-color: transparent transparent var(--secondary-color) var(--secondary-color);
    border-width: 5px;
}
.main-heading::after{
    transition: var(--main-transition);
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border-style:solid;
    border-color: var(--main-color) var(--main-color) transparent transparent;
    border-width: 5px;
}
.main-heading:hover::before,
.main-heading:hover::after{
    animation:  main-heading-animation 3s ease-in-out  infinite alternate;
}
@keyframes main-heading-animation {
    50%{
        width: 100%;
        height: 100%;   
    }
    0%,100%{
        width: 0%;
        height: 0%;
    }
    25%,75%{
        width: 50%;
        height: 50%;
    }
}




/* variables */
:root{
    --main-color:#6fc8f0;
    --secondary-color:#f28020;
    --main-transition:0.4s;
    --section-padding:100px;
    --section-background:#f6f6f6;
    --black-color:rgb(17, 18, 19);
}

.container{
    direction: rtl;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 600px;
    max-width: 100%;
}


/* small */
@media (min-width:760px){
    .container{
        width: 750px;
    }
}

/* mediam */
@media (min-width:992px){
    .container{
        width: 970px;
    }
}

/* large */
@media (min-width:1200px){
    .container{
        width: 1170px;
    }
}

/* ================================== Header ========================== */
header{
    width: 100%;
    height: 100px;
    background-color: white;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-box-shadow: 0 0 10px #ddd;
    -moz-box-shadow: 0 0 10px #ddd;
    box-shadow: 0 0 10px #ddd;
}
header .container{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
header .container .logo{
    width: 60px;
}
header .container .logo img{
    width: 100%;
}
header .container nav ul{
    display: flex;
}
@media (max-width:767px){
    header .container nav{
        width: 100%;
        top: 0;
        display: flex;
        flex-direction: row-reverse;
    }
    header .container nav ul{
        flex-direction: column;
        color: var(--main-color);
        position: absolute;
        top: 110px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.90);
        padding-top: 20px;
        padding-bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .hide-menu{
        display: none !important;
    }
    header .container nav ul::before{
        content: "";
        position: absolute;
        top: -40px;
        left: 10px;
        border-width: 20px;
        border-color: transparent transparent rgba(0, 0, 0, 0.90) transparent;
        border-style: solid;
    }
}
header .container nav ul li{
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (max-width:767px){
    header .container nav ul li:first-child{
        margin-top: 30px;
    }
    header .container nav ul li:not(:last-child){
        margin: 10px auto;
        border-bottom:1px solid var(--main-color);
        width: 90%;
    }
}
header .container nav ul li a{
    padding:40px 20px;
    height: 100%;
    color: var(--main-color);
    font-size: 18px;
    font-weight: 900;
    position: relative;
}
@media (max-width:767px){
    header .container nav ul li a{
        padding:20px;
    }
}
header .container nav ul li a::before{
    content: "";
    width: 0;
    height: 3px;
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--main-color);
    transition: var(--main-transition);
}
header .container nav ul li a:hover{
    background-color: #fafafa;
}
header .container nav ul li a:hover::before{
    width: 100%;
}
@media (max-width:767px){
    header .container nav ul li a:hover{
        background-color: rgba(0, 0, 0, 0.90);
    }
    header .container nav ul li a::before{
        display: none;
    }
}
header .container nav .menu-i{
    width: 40px;
    height: 40px;
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-end;
}
@media (max-width:767px){
    header .container nav .menu-i{
        display: flex;
        cursor: pointer;
        transition: var(--main-transition);
    }
}
header .container nav .menu-i span{
    transition: var(--main-transition);
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: var(--main-color);
}
header .container nav .menu-i span:nth-child(2){
    width: 60%;
}
.fullWidth{
    width: 100% !important;
}

/* ====================================== Landing ====================================== */
.landing{
    padding-top: calc(var(--section-padding) + 100px);
    padding-bottom: var(--section-padding);
    height: 100vh;
    background-image:url("../images/chairs.jpg");
    background-size: cover;
    position: relative;
    background-attachment:fixed;
    z-index: 1;
}
.landing .container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@media  (max-width:767px){
    .landing{
        background-image:url("../images/landingPhone.jpg");
    }
}
.landing::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to left, #f2802050, #6fc8f050) ;
    z-index: -1;
}
@media  (max-width:767px){
    .landing::before{
        background-image: linear-gradient(to top, #f2802070, #6fc8f070) ;
    }
}
.landing .container h1{
    text-align: center;
    color:var(--black-color);
    font-size: 70px;
    margin: 100px auto 50px;
}
@media (max-width:767px){
    .landing .container h1{
        font-size: 35px;
    }  
}
.landing .container p{
    text-align: center;
    color: var(--black-color);
    font-size: 25px;
    font-weight: bold;
}

/* ================================== News ========================= */
.news{
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
}
.news .container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}
.news .container .news-box{
    box-shadow: 0 2px 4px rgb(0 0 0 /7%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--main-transition);
    position: relative;
}
.news .container .news-box:hover{
    transform: translateY(-10px);
}
.news .container .last-news-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(45deg, #f2802040, #6fc8f040) ;
    border: 1px solid #54ddff;
    height: 250px;
}
.news .container .last-news-box:hover{
    animation: changeBG 2s ease-in-out  infinite;
}
@keyframes changeBG{
    0%{
        opacity: 1;
        background-image: linear-gradient(45deg, #f2802040, #6fc8f040) ;
    }
    50%{
        opacity: 0.7;
    }
    100%{
        opacity: 1;
        background-image: linear-gradient(45deg, #6fc8f040, #f2802040) ;
    }
}
.news .container .last-news-box a{
    font-size: 40px;
    color: #54ddff;
}
.news .container .news-box .image{
    width:100%;
    height:200px;
    overflow: hidden;
}
.news .container .news-box img{
    max-width: 100%;
}
.news .container .news-box .info{
    display: flex;
    flex-direction: column;
}
.news .container .news-box h3{
    padding: 10px 20px;
    margin: 10px auto 5px;
    color: var(--main-color);
}
.news .container .news-box p{
    text-align: justify;
    padding: 20px;
    line-height: 1.6;
    margin: 10px auto 60px;
}
.news .container .news-box:not(:nth-child(6)) a{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color:var(--secondary-color);
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    padding: 10px 20px;
    border-radius: 3px;
    transition-delay: .1s;
}
.news .container .news-box:not(:nth-child(6)) a::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transition: var(--main-transition);
    background-color: var(--secondary-color);
    z-index: -1;
}
.news .container .news-box:hover:not(:nth-child(6)) a{
    color: white;
}
.news .container .news-box:hover:not(:nth-child(6)) a::before{
    width: 100%;
}

/* ================================== Activities ========================================= */
.activities{
    background-color: var(--section-background);
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
}
.activities .container{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.activities .activity-box{
    box-shadow: 0 2px 4px rgb(0 0 0 /7%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--main-transition);
    background-color: white;
    position: relative;
}
.activities .activity-box::before,
.activities .activity-box::after{
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--main-color);
    transition: var(--main-transition);
}
.activities .activity-box::before{
    top: 0;
    left: 0;
}
.activities .activity-box::after{
    bottom: 0;
    right: 0;
}
.activities .activity-box:hover::before,
.activities .activity-box:hover::after{
    height: 2px;
    width: 100%;
}
.activities .activity-box .image{
    width: 100%;
    text-align: center;
    padding: 30px;
}
.activities .activity-box .image img{
    max-width: 100px;
}
.activities .activity-box .info{
    margin: 0 auto;
}
.activities .activity-box .info h2{
    margin: 0 auto 30px;
    text-align: center;
    color:var(--main-color);
}
.activities .activity-box .info p{
    padding:20px;
    padding-top: 0;
    text-align: center;
    line-height: 1.8;
    color: #777;
}
/* ================================= About ================================= */
.about{
    background-image: url("../images/about.jpg");
    background-repeat: no-repeat;
    background-size: 100%;
    padding-top:var(--section-padding);
    padding-bottom:var(--section-padding);
    height: 100vh;
}
.about .container{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.about .container p{
    width: 600px;
    text-align: justify;
    color: #777;
    margin-left: 60px;
    font-size: 20px;
}
@media (max-width:767px){
    .about{
        background-repeat: no-repeat;
        background-position: bottom;
    }
    .about .container{
        justify-content:center;
    }
    .about .container p{
        width: 600px;
        color: #777;
        margin:10px auto;
        font-size: 18px;
        word-wrap: break-word;
        padding: 10px 20px;
    }
}
/* ================================= Footer ================================= */
.footer{
    padding-top:calc(var(--section-padding) - 40px);
    padding-bottom:calc(var(--section-padding) - 60px);
    background-color: #002a52;
}
.footer .container{
    display: flex;
    flex-direction: column;
}
.footer .sub-form{
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    padding:10px 30px;
    width: 100%;
    text-align: center;
    margin: 10px auto 50px;
}
@media (max-width:767px){
    .footer .sub-form{
        flex-direction: column;
        align-items: center;
    }
}
.footer .sub-form input[type="text"]{
    height: 40px;
    width: 350px;
    max-width: 100%;
    margin: 10px 15px;
    outline: none;
    border: 2px solid white;
    text-indent: 20px;
    border-radius: 2px;
    text-transform: uppercase;
}
.footer .sub-form input[type="text"]::placeholder{
    color: var(--main-color);
}
.footer .sub-form input[type="text"]:focus{
    border: 2px solid var(--main-color);
}
.footer .sub-form input[type="submit"]{
    height: 40px;
    width: 150px;
    margin: 10px 5px;
    outline: none;
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    transition: var(--main-transition);
    border-radius: 2px;
}
.footer .sub-form input[type="submit"]:hover{
    background-color: white;
    color: var(--main-color);
    border: 2px solid white;
}
.footer .boxs{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.footer .box{
    padding: 15px;
}
.footer .box:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}
.footer .box:nth-child(1) .logo {
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.footer .box:nth-child(1) .logo img{
    width: 100%;
}
.footer .box:nth-child(1) .text{
    color: #eee;
    padding: 10px 20px;
    text-align: center;
    margin-top: 10px;
}
.footer .box:nth-child(1) .social{
    display: flex;
}
.footer .box:nth-child(1) .social a{
    width: 40px;
    height: 40px;
    background-color: #1763ab;
    color: #002a52;
    margin:20px 10px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}
.footer .box .social .facebook:hover{
    background-color: #1877f2;
    color: white;
}
.footer .box .social .i-email:hover{
    background-color: #fff;
    color: #ea4335;
}
.footer .box .social .instagram:hover{
    background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%), radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%), radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%), radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent), linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
    color: white;
}
.footer .box:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.footer .box:nth-child(2) .links li{
    margin:10px auto;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--main-color);
    width: 200px;
    cursor: pointer;
}
.footer .box:nth-child(2) .links li a{
    color: var(--main-color);
    transition: var(--main-transition);
}
.footer .box .links li a::before{
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f100";
    margin-left: 25px;
    color: var(--main-color);
}
.footer .box:nth-child(3){
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer .box:nth-child(3) .line{
    width: 100%;
    display: flex;
    margin: 10px auto;
}
@media (max-width:767px){
    .footer .box:nth-child(3) .line{
        flex-direction: column;
    } 
}
.footer .box:nth-child(3) .line i{
    margin-left: 30px;
    color: var(--main-color);
}
@media (max-width:767px){
    .footer .box:nth-child(3) .line i{
        margin: 10px auto;
    } 
}
.footer .box:nth-child(3) .line .info{
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--main-color);
}
@media (max-width:767px){
    .footer .box:nth-child(3) .line .info{
        text-align: center;
    } 
}
.footer .copyright{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin: 40px auto 0;
    border-top: 1px solid white;
    padding-top: 40px;
}
.footer #year{
    margin: auto 5px;
}
/*================= msg to user =========  */
.msg-to-user{
    position: fixed;
    left: 50%;
    top: 120%;
    transform: translateX(-50%);
    background-color: #1763ab;
    color: #fafafa;
    padding: 15px 25px;
    width: 400px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 1px;
    font-size: 20px;
    z-index: 4;
    max-width: 95%;
    transition: var(--main-transition);
}
.msg-to-user::before{
    content: '';
    position: fixed;
    right: 15px;
    bottom: -30%;
    border-width: 14px;
    border-color:#1763ab transparent transparent transparent ;
    border-style: solid;
}
.show-user-msg{
    top:200px !important;
}