*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
a{
    text-decoration: none;
}
html{
    --primary: #957252;
    --secondary: #CEAD84;
    --white: #F6F2E7;
--nav-links-height: 0vh;
--arrow-rotate: rotate(0deg);
--dark-gray: rgb(172, 172, 172);
scroll-behavior: smooth;
scroll-padding-block: 3rem;
-webkit-tap-highlight-color: transparent;
--load-horse: none;
}
::selection{
    background-color: #222;
    color: #eee;
}
.nav-links-open{
    --nav-links-height: 26vh;
    --arrow-rotate: rotate(180deg) translateX(-15%);
}
.loaded{
    --loaded-loader: loaderloaded .5s 4s linear forwards;
    --load-horse: loading 3s linear forwards
}
body{
    font-family: 'Noto Kufi Arabic',sans-serif;
    background-color: var(--white);
    direction: rtl;
}
.loader-wrapper{
    width: 100%;
    height: 105vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);
    z-index: 1000;
    animation: var(--loaded-loader);
}
.loader{
    position: absolute;
    left: 50%;
    top: 25%;
    transform: translateX(-50%);
    animation: var(--load-horse);
    overflow: hidden;
    width: 15rem;
    height: 15rem;
    clip-path: polygon(0 100%, 100% 100%, 100% 68%, 100% 100%, 0 100%, 0% 50%);
}
.loader:after{
    content: '';
    display: block;
    position: relative;
    background: url(logo.png) center no-repeat;
    width: 15rem;
    height: 15rem;
    background-size: contain;
}

@keyframes loading{
    0%{
    clip-path: polygon(0 100%, 100% 100%, 100% 68%, 100% 100%, 0 100%, 0% 50%);
    }
    5%{
        clip-path: polygon(0 94%, 100% 100%, 100% 68%, 100% 100%, 0 100%, 0% 50%);
    }
    15%{
        clip-path: polygon(0 94%, 100% 81%, 100% 68%, 100% 100%, 0 100%, 0% 50%);
    }
    25%{
        clip-path: polygon(0 78%, 100% 81%, 100% 68%, 100% 100%, 0 100%, 0% 50%);
    }
    35%{
        clip-path: polygon(0 78%, 100% 53%, 100% 50%, 100% 100%, 0 100%, 0% 50%);
    }
    50%{
        clip-path: polygon(0 40%, 100% 53%, 100% 50%, 100% 100%, 0 100%, 0% 50%);
    }
    70%{
        clip-path: polygon(0 40%, 100% 14%, 100% 50%, 100% 100%, 0 100%, 0% 50%);
    }
    85%{
       clip-path: polygon(0 10%, 100% 14%, 100% 50%, 100% 100%, 0 100%, 0% 50%); 
    }
    95%{
        clip-path: polygon(0 10%, 100% 0, 100% 50%, 100% 100%, 0 100%, 0% 50%);
    }
    100%{
        clip-path: polygon(0 0, 100% 0, 100% 50%, 100% 100%, 0 100%, 0% 50%);
    }
}
@keyframes loaderloaded{
    to{
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: max-content;
    align-items: center;
    display: flex;
   justify-content: space-between;
    background-color: whitesmoke;
    z-index: 100;
    padding-inline: 2rem;
    box-shadow: 0 0 15px 1px rgba(33, 33, 33, 0.1);
}
.nav-links{
    width: 55%;
    display: flex;
    justify-content: space-between;
}
.navbar > a {
    color: var(--white);
    direction: ltr;
    position: relative;
    font-size: 1.1em;
    margin-block: 1rem;
    font-weight: 600;
    transition: color .2s linear;
}
.navbar >a:after{
    display: block;
    content: '';
    background-color: var(--secondary);
    height: 95%;
    top: 0;
    position: absolute;
    z-index: -10;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-inline: .4em;
    border-radius: 4px;
    transition:.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.navbar > a:hover::after{
    height: 0%;
    bottom: 0;
    top: unset;
}
.navbar > a:hover{
    color: var(--secondary) !important;
}
.logo{
    width: 6rem;
    object-fit: contain;
    padding: 1rem;
}
.nav-links a{
    color: var(--primary);
    font-size: 1.1em;
    position: relative;
    padding: .3rem;
    margin-block: 1rem;
}

.nav-links a:after{
    display: block;
    content: '';
    border: 1px solid transparent;
    height: 0%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    z-index: -10;
    border-radius: 4px;
    width: 100%;
    transition:.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-links a:hover:after{
    height: 95%;
    top: 0;
    bottom: unset;
    border-color: var(--primary);
}
.home{
    width: 100%;
    padding-top: 2.5rem;
}
.certificate{
    width: 100%;
    object-fit: contain;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.hero{
    text-align: center;
    width: 100%;
    background-color: var(--white);
}
.hero h1{
    font-size: 4vmax;
    color: var(--secondary);
    font-weight: 400;
    box-shadow: 0 -20px 15px 0px rgb(0 0 0 / 10%);
}
.hero p {
    width: 50%;
    color: var(--primary);
    display: inline-block;
    font-weight: 600;
    margin-block: 1rem 2rem;
    font-size: 1.1em;
    line-height: 1.4;
}
.hero h3{
    font-size: 2em;
    color: var(--secondary);
    opacity: .7;
}
.activities{
    height: max-content;
    background-color: var(--secondary);
    color: var(--white);
    padding-block: 1rem;
    margin-inline: auto;
    -webkit-user-select: none;
}
.activities-container{
    width: 100%;
}
.active-container{
    padding-inline: 2rem;
    width: 70%;
}
.active-container h2{
    font-size: 2.8rem;
    background-color: var(--primary);
    width: max-content;
    padding-inline: 1rem;
    border-radius: .3em .1em;
    font-weight: 400;
    margin: 0 auto 1rem auto;
}
.activity{
    width: max-content;
    max-width: max-content;
    text-align: center;
    color: var(--secondary);
    background-color: var(--white);
    border-radius: .7rem;
    padding: 1rem;
    display: block;
    flex-direction: column;
}
.activity h3{
    font-size: 1.7em;
    margin-bottom: .1rem;
    width: 100%;
}
.activity img{
    height: 25rem;
    border-radius: .4em;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}


.contact-us{
    height: max-content;
    background-color: var(--primary);
    color: var(--white);
    width: 100%;
    padding-block: 1rem;
    color: var(--white);
}
.contact-header{
    font-size: 2em;
    width: max-content;
    margin: 1rem auto;
    position: relative;
    z-index: 10;
}
.contact-header::after{
    content: '';
    height: 25%;
    position: absolute;
    z-index: -10;
    display: block;
    bottom: 20%;
    width: 100%;
    background-color: var(--secondary);
}
.contact-card{
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    color: var(--secondary);
    flex-wrap: wrap;
    width: 50%;
    margin-inline: auto;
    border-radius: .2em;
    border-right: var(--secondary) solid .5em;
    padding: 1rem;
    text-decoration: none;
}
.card-title{
    width: 100%;
    margin-block: 1rem;
}
.card-column{
    padding-left: 1rem;
    direction: ltr;
    text-align: right;
}
.card-column a{
    color: var(--secondary);
    display: block;
}
.card-column i{
    padding-inline: .3em;
}
.map iframe{
    border-radius: 1rem;
    filter: saturate(.6);
    width: 100%;
    height: 100%;
}
.map{
    margin-inline: auto;
    margin-top: 2rem;
}
.contact-form{
    width: 50%;
    display: flex;
    flex-wrap: wrap;
    margin-inline: auto;
    margin-bottom: 5rem;
    justify-content: space-between;
}
.contact-form input{
    width: 48%;
    padding: .7rem;
    font-size: 1em;
    color: var(--primary);
    margin-block: 1rem;
    border-radius: .3em;
    outline: none;
    border: none;
    font-family: 'Noto Kufi Arabic',sans-serif;
    background-color: var(--white);
}
.contact-form button{
    font-size: 1em;
    padding: .5rem;
    color: var(--white);
    background-color: var(--secondary);
    cursor: pointer;
    border-radius: .2em;
    font-weight: bolder;
    font-family: 'Noto Kufi Arabic',sans-serif;
    border: none;
    transition: transform .3s;
    text-align: center;
    margin-inline: auto;
    cursor: pointer;
}
.contact-form button:active{
    transform: scaleX(1.2);
}
.contact-form textarea{
    width: 100%;
    height: 10rem;
    padding: .7rem;
    font-size: 1em;
    margin-block: 1rem;
    color: var(--secondary);
    resize: vertical;
    outline: none;
    border: none;
    background-color: var(--white);
    font-family: 'Noto Kufi Arabic',sans-serif;
    border-radius: .3em;
}

footer{
    font-size: 1.1em;
    font-family: sans-serif;
    text-align: center;
    background-color: var(--secondary);
    padding-block: 5rem .5rem;
    color: var(--white);
}
footer p{
    margin-top: 1rem;
}
footer a{
    text-decoration: underline;
    color: var(--white);
}
.gallery{
    padding-top: 2rem;
    background-color: var(--secondary);
}
.gallery-item{
    width: max-content;
    height: max-content;
    align-items: center;
    justify-content: center;
}
.swiper-slide.swiper-slide{
    width: max-content;
}
.gallery-item img{
    height: 20rem;
    object-fit: contain;
}
.gallery-swiper{
    width: 50%
}
.dots-toggle{
    display: none;
}
#volunteer{
    padding-block: 2rem;
    background-color: var(--white);
}
.volunteer-btn{
    padding: .3rem .6rem;
    font-size: 1.2em;
    border-radius: .3em;
    width: max-content;
    margin-inline: auto;
    display: block;
    color: var(--secondary);
    border: 3px solid var(--secondary);
    transition: .2s linear;
}
.volunteer-btn:hover{
background-color: var(--secondary);
color: var(--white);
}
.toggle{
    display: none;
}
@media (max-width:820px){
    .toggle i {
        padding-left: 0.3rem;
        transform: var(--arrow-rotate);
        transition: .3s linear transform;
    }
    .toggle {
        color: var(--secondary);
        display: unset;
        cursor: pointer;
        user-select: none;
        position: relative;
        transform: translateX(50%);
        left: -50%;
    }
    .activities{
        padding-block: 0;
    }
    .logo{
    padding-inline: 1rem;
    padding-block: 0;
    width: 6.3rem;
    }
    .contact-form{
        width: 90%;
    }
    .contact-form input{
        width: 100%;
    }
    .hero p{
        width: 93%;
    }
    .navbar{
        flex-wrap: wrap;
        padding-inline: 1rem;
    }
    .nav-links {
        width: 50%;
        position: absolute;
        top: 91%;
        height: var(--nav-links-height);
        align-items: center;
        flex-direction: column;
        overflow: hidden;
        left: 50%;
        transform: translateX(-50%);
        padding-inline: 2rem;
        background-color: whitesmoke;
        transition: .3s cubic-bezier(0.075, 0.82, 0.165, 1) height;
    }
    .navbar a{
           font-size: 1em;
           width: max-content;
           margin-block: .3rem; z-index: 10;
    }

.active-container h2{
    font-size: 2.2em;
    padding-inline: 1rem;
    margin: .5rem auto;
}
.activity h3{
    font-size: 1.3em;
    margin-bottom: .1rem;
    width: 70vw;
    line-height: 1.3;
}
.active-container{
    width: 100%;
}
.hero h1{
    font-size: 2.3em;
}
.hero h3{
    font-size: 1.8em;
}
.contact-card{
    width: 90%;
}
footer{
    font-size: .8em;
}
.gallery-swiper{
    width: 90%;
}
.activity img{
    height: unset;
    width: 70vw;
}
}